@googlemaps/js-api-loader
Advanced tools
Comparing version 1.13.11 to 1.14.0
@@ -155,2 +155,15 @@ /** | ||
retries?: number; | ||
/** | ||
* Maps JS customers can configure HTTP Referrer Restrictions in the Cloud | ||
* Console to limit which URLs are allowed to use a particular API Key. By | ||
* default, these restrictions can be configured to allow only certain paths | ||
* to use an API Key. If any URL on the same domain or origin may use the API | ||
* Key, you can set `auth_referrer_policy=origin` to limit the amount of data | ||
* sent when authorizing requests from the Maps JavaScript API. This is | ||
* available starting in version 3.46. When this parameter is specified and | ||
* HTTP Referrer Restrictions are enabled on Cloud Console, Maps JavaScript | ||
* API will only be able to load if there is an HTTP Referrer Restriction that | ||
* matches the current website's domain without a path specified. | ||
*/ | ||
authReferrerPolicy?: "origin"; | ||
} | ||
@@ -235,2 +248,6 @@ /** | ||
readonly url: string; | ||
/** | ||
* See [[LoaderOptions.authReferrerPolicy]] | ||
*/ | ||
readonly authReferrerPolicy: "origin"; | ||
private CALLBACK; | ||
@@ -251,3 +268,3 @@ private callbacks; | ||
*/ | ||
constructor({ apiKey, channel, client, id, libraries, language, region, version, mapIds, nonce, retries, url, }: LoaderOptions); | ||
constructor({ apiKey, authReferrerPolicy, channel, client, id, language, libraries, mapIds, nonce, region, retries, url, version, }: LoaderOptions); | ||
get options(): LoaderOptions; | ||
@@ -254,0 +271,0 @@ get status(): LoaderStatus; |
@@ -101,3 +101,3 @@ // do not edit .js files directly - edit src/index.jst | ||
*/ | ||
constructor({ apiKey, channel, client, id = DEFAULT_ID, libraries = [], language, region, version, mapIds, nonce, retries = 3, url = "https://maps.googleapis.com/maps/api/js", }) { | ||
constructor({ apiKey, authReferrerPolicy, channel, client, id = DEFAULT_ID, language, libraries = [], mapIds, nonce, region, retries = 3, url = "https://maps.googleapis.com/maps/api/js", version, }) { | ||
this.CALLBACK = "__googleMapsCallback"; | ||
@@ -108,14 +108,15 @@ this.callbacks = []; | ||
this.errors = []; | ||
this.version = version; | ||
this.apiKey = apiKey; | ||
this.authReferrerPolicy = authReferrerPolicy; | ||
this.channel = channel; | ||
this.client = client; | ||
this.id = id || DEFAULT_ID; // Do not allow empty string | ||
this.language = language; | ||
this.libraries = libraries; | ||
this.language = language; | ||
this.region = region; | ||
this.mapIds = mapIds; | ||
this.nonce = nonce; | ||
this.region = region; | ||
this.retries = retries; | ||
this.url = url; | ||
this.version = version; | ||
if (Loader.instance) { | ||
@@ -142,2 +143,3 @@ if (!fastDeepEqual(this.options, Loader.instance.options)) { | ||
url: this.url, | ||
authReferrerPolicy: this.authReferrerPolicy, | ||
}; | ||
@@ -192,2 +194,5 @@ } | ||
} | ||
if (this.authReferrerPolicy) { | ||
url += `&auth_referrer_policy=${this.authReferrerPolicy}`; | ||
} | ||
return url; | ||
@@ -194,0 +199,0 @@ } |
@@ -1,1 +0,1 @@ | ||
this.google=this.google||{},this.google.maps=this.google.maps||{},this.google.maps.plugins=this.google.maps.plugins||{},this.google.maps.plugins.loader=function(t){"use strict";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||function(){return this}()||Function("return this")(),i={},c=function(t){try{return!!t()}catch(t){return!0}},a=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=u,f=Function.prototype.call,l=s?f.bind(f):function(){return f.apply(f,arguments)},h={},p={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,v=d&&!p.call({1:2},1);h.f=v?function(t){var e=d(this,t);return!!e&&e.enumerable}:p;var g,y,b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=u,w=Function.prototype,S=w.bind,j=w.call,O=m&&S.bind(j,j),E=m?function(t){return t&&O(t)}:function(t){return t&&function(){return j.apply(t,arguments)}},L=E,T=L({}.toString),k=L("".slice),I=function(t){return k(T(t),8,-1)},P=E,A=c,C=I,x=o.Object,M=P("".split),F=A((function(){return!x("z").propertyIsEnumerable(0)}))?function(t){return"String"==C(t)?M(t,""):x(t)}:x,_=o.TypeError,D=function(t){if(null==t)throw _("Can't call method on "+t);return t},R=F,N=D,G=function(t){return R(N(t))},U=function(t){return"function"==typeof t},B=U,K=function(t){return"object"==typeof t?null!==t:B(t)},z=o,V=U,H=function(t){return V(t)?t:void 0},J=function(t,e){return arguments.length<2?H(z[t]):z[t]&&z[t][e]},q=E({}.isPrototypeOf),W=J("navigator","userAgent")||"",Z=o,$=W,X=Z.process,Y=Z.Deno,Q=X&&X.versions||Y&&Y.version,tt=Q&&Q.v8;tt&&(y=(g=tt.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!y&&$&&(!(g=$.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=$.match(/Chrome\/(\d+)/))&&(y=+g[1]);var et=y,nt=et,rt=c,ot=!!Object.getOwnPropertySymbols&&!rt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),it=ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ct=J,at=U,ut=q,st=it,ft=o.Object,lt=st?function(t){return"symbol"==typeof t}:function(t){var e=ct("Symbol");return at(e)&&ut(e.prototype,ft(t))},ht=o.String,pt=function(t){try{return ht(t)}catch(t){return"Object"}},dt=U,vt=pt,gt=o.TypeError,yt=function(t){if(dt(t))return t;throw gt(vt(t)+" is not a function")},bt=yt,mt=function(t,e){var n=t[e];return null==n?void 0:bt(n)},wt=l,St=U,jt=K,Ot=o.TypeError,Et={exports:{}},Lt=o,Tt=Object.defineProperty,kt=function(t,e){try{Tt(Lt,t,{value:e,configurable:!0,writable:!0})}catch(n){Lt[t]=e}return e},It=kt,Pt="__core-js_shared__",At=o[Pt]||It(Pt,{}),Ct=At;(Et.exports=function(t,e){return Ct[t]||(Ct[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var xt=D,Mt=o.Object,Ft=function(t){return Mt(xt(t))},_t=Ft,Dt=E({}.hasOwnProperty),Rt=Object.hasOwn||function(t,e){return Dt(_t(t),e)},Nt=E,Gt=0,Ut=Math.random(),Bt=Nt(1..toString),Kt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Bt(++Gt+Ut,36)},zt=o,Vt=Et.exports,Ht=Rt,Jt=Kt,qt=ot,Wt=it,Zt=Vt("wks"),$t=zt.Symbol,Xt=$t&&$t.for,Yt=Wt?$t:$t&&$t.withoutSetter||Jt,Qt=function(t){if(!Ht(Zt,t)||!qt&&"string"!=typeof Zt[t]){var e="Symbol."+t;qt&&Ht($t,t)?Zt[t]=$t[t]:Zt[t]=Wt&&Xt?Xt(e):Yt(e)}return Zt[t]},te=l,ee=K,ne=lt,re=mt,oe=function(t,e){var n,r;if("string"===e&&St(n=t.toString)&&!jt(r=wt(n,t)))return r;if(St(n=t.valueOf)&&!jt(r=wt(n,t)))return r;if("string"!==e&&St(n=t.toString)&&!jt(r=wt(n,t)))return r;throw Ot("Can't convert object to primitive value")},ie=Qt,ce=o.TypeError,ae=ie("toPrimitive"),ue=function(t,e){if(!ee(t)||ne(t))return t;var n,r=re(t,ae);if(r){if(void 0===e&&(e="default"),n=te(r,t,e),!ee(n)||ne(n))return n;throw ce("Can't convert object to primitive value")}return void 0===e&&(e="number"),oe(t,e)},se=lt,fe=function(t){var e=ue(t,"string");return se(e)?e:e+""},le=K,he=o.document,pe=le(he)&&le(he.createElement),de=function(t){return pe?he.createElement(t):{}},ve=de,ge=!a&&!c((function(){return 7!=Object.defineProperty(ve("div"),"a",{get:function(){return 7}}).a})),ye=a,be=l,me=h,we=b,Se=G,je=fe,Oe=Rt,Ee=ge,Le=Object.getOwnPropertyDescriptor;i.f=ye?Le:function(t,e){if(t=Se(t),e=je(e),Ee)try{return Le(t,e)}catch(t){}if(Oe(t,e))return we(!be(me.f,t,e),t[e])};var Te={},ke=a&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ie=o,Pe=K,Ae=Ie.String,Ce=Ie.TypeError,xe=function(t){if(Pe(t))return t;throw Ce(Ae(t)+" is not an object")},Me=a,Fe=ge,_e=ke,De=xe,Re=fe,Ne=o.TypeError,Ge=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Be="enumerable",Ke="configurable",ze="writable";Te.f=Me?_e?function(t,e,n){if(De(t),e=Re(e),De(n),"function"==typeof t&&"prototype"===e&&"value"in n&&ze in n&&!n.writable){var r=Ue(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:Ke in n?n.configurable:r.configurable,enumerable:Be in n?n.enumerable:r.enumerable,writable:!1})}return Ge(t,e,n)}:Ge:function(t,e,n){if(De(t),e=Re(e),De(n),Fe)try{return Ge(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ne("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ve=Te,He=b,Je=a?function(t,e,n){return Ve.f(t,e,He(1,n))}:function(t,e,n){return t[e]=n,t},qe={exports:{}},We=U,Ze=At,$e=E(Function.toString);We(Ze.inspectSource)||(Ze.inspectSource=function(t){return $e(t)});var Xe,Ye,Qe,tn=Ze.inspectSource,en=U,nn=tn,rn=o.WeakMap,on=en(rn)&&/native code/.test(nn(rn)),cn=Et.exports,an=Kt,un=cn("keys"),sn={},fn=on,ln=o,hn=E,pn=K,dn=Je,vn=Rt,gn=At,yn=function(t){return un[t]||(un[t]=an(t))},bn=sn,mn="Object already initialized",wn=ln.TypeError,Sn=ln.WeakMap;if(fn||gn.state){var jn=gn.state||(gn.state=new Sn),On=hn(jn.get),En=hn(jn.has),Ln=hn(jn.set);Xe=function(t,e){if(En(jn,t))throw new wn(mn);return e.facade=t,Ln(jn,t,e),e},Ye=function(t){return On(jn,t)||{}},Qe=function(t){return En(jn,t)}}else{var Tn=yn("state");bn[Tn]=!0,Xe=function(t,e){if(vn(t,Tn))throw new wn(mn);return e.facade=t,dn(t,Tn,e),e},Ye=function(t){return vn(t,Tn)?t[Tn]:{}},Qe=function(t){return vn(t,Tn)}}var kn={set:Xe,get:Ye,has:Qe,enforce:function(t){return Qe(t)?Ye(t):Xe(t,{})},getterFor:function(t){return function(e){var n;if(!pn(e)||(n=Ye(e)).type!==t)throw wn("Incompatible receiver, "+t+" required");return n}}},In=a,Pn=Rt,An=Function.prototype,Cn=In&&Object.getOwnPropertyDescriptor,xn=Pn(An,"name"),Mn=xn&&"something"===function(){}.name,Fn=xn&&(!In||In&&Cn(An,"name").configurable),_n=o,Dn=U,Rn=Rt,Nn=Je,Gn=kt,Un=tn,Bn={EXISTS:xn,PROPER:Mn,CONFIGURABLE:Fn}.CONFIGURABLE,Kn=kn.get,zn=kn.enforce,Vn=String(String).split("String");(qe.exports=function(t,e,n,r){var o,i=!!r&&!!r.unsafe,c=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet,u=r&&void 0!==r.name?r.name:e;Dn(n)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Rn(n,"name")||Bn&&n.name!==u)&&Nn(n,"name",u),(o=zn(n)).source||(o.source=Vn.join("string"==typeof u?u:""))),t!==_n?(i?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=n:Nn(t,e,n)):c?t[e]=n:Gn(e,n)})(Function.prototype,"toString",(function(){return Dn(this)&&Kn(this).source||Un(this)}));var Hn={},Jn=Math.ceil,qn=Math.floor,Wn=function(t){var e=+t;return e!=e||0===e?0:(e>0?qn:Jn)(e)},Zn=Wn,$n=Math.max,Xn=Math.min,Yn=Wn,Qn=Math.min,tr=function(t){return t>0?Qn(Yn(t),9007199254740991):0},er=function(t){return tr(t.length)},nr=G,rr=function(t,e){var n=Zn(t);return n<0?$n(n+e,0):Xn(n,e)},or=er,ir=function(t){return function(e,n,r){var o,i=nr(e),c=or(i),a=rr(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},cr={includes:ir(!0),indexOf:ir(!1)},ar=Rt,ur=G,sr=cr.indexOf,fr=sn,lr=E([].push),hr=function(t,e){var n,r=ur(t),o=0,i=[];for(n in r)!ar(fr,n)&&ar(r,n)&&lr(i,n);for(;e.length>o;)ar(r,n=e[o++])&&(~sr(i,n)||lr(i,n));return i},pr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Hn.f=Object.getOwnPropertyNames||function(t){return hr(t,pr)};var dr={};dr.f=Object.getOwnPropertySymbols;var vr=J,gr=Hn,yr=dr,br=xe,mr=E([].concat),wr=vr("Reflect","ownKeys")||function(t){var e=gr.f(br(t)),n=yr.f;return n?mr(e,n(t)):e},Sr=Rt,jr=wr,Or=i,Er=Te,Lr=c,Tr=U,kr=/#|\.prototype\./,Ir=function(t,e){var n=Ar[Pr(t)];return n==xr||n!=Cr&&(Tr(e)?Lr(e):!!e)},Pr=Ir.normalize=function(t){return String(t).replace(kr,".").toLowerCase()},Ar=Ir.data={},Cr=Ir.NATIVE="N",xr=Ir.POLYFILL="P",Mr=Ir,Fr=o,_r=i.f,Dr=Je,Rr=qe.exports,Nr=kt,Gr=function(t,e,n){for(var r=jr(e),o=Er.f,i=Or.f,c=0;c<r.length;c++){var a=r[c];Sr(t,a)||n&&Sr(n,a)||o(t,a,i(e,a))}},Ur=Mr,Br=function(t,e){var n,r,o,i,c,a=t.target,u=t.global,s=t.stat;if(n=u?Fr:s?Fr[a]||Nr(a,{}):(Fr[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=_r(n,r))&&c.value:n[r],!Ur(u?r:a+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Gr(i,o)}(t.sham||o&&o.sham)&&Dr(i,"sham",!0),Rr(n,r,i,t)}},Kr=I,zr=Array.isArray||function(t){return"Array"==Kr(t)},Vr=fe,Hr=Te,Jr=b,qr={};qr[Qt("toStringTag")]="z";var Wr="[object z]"===String(qr),Zr=o,$r=Wr,Xr=U,Yr=I,Qr=Qt("toStringTag"),to=Zr.Object,eo="Arguments"==Yr(function(){return arguments}()),no=$r?Yr:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=to(t),Qr))?n:eo?Yr(e):"Object"==(r=Yr(e))&&Xr(e.callee)?"Arguments":r},ro=E,oo=c,io=U,co=no,ao=tn,uo=function(){},so=[],fo=J("Reflect","construct"),lo=/^\s*(?:class|function)\b/,ho=ro(lo.exec),po=!lo.exec(uo),vo=function(t){if(!io(t))return!1;try{return fo(uo,so,t),!0}catch(t){return!1}},go=function(t){if(!io(t))return!1;switch(co(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return po||!!ho(lo,ao(t))}catch(t){return!0}};go.sham=!0;var yo=!fo||oo((function(){var t;return vo(vo.call)||!vo(Object)||!vo((function(){t=!0}))||t}))?go:vo,bo=o,mo=zr,wo=yo,So=K,jo=Qt("species"),Oo=bo.Array,Eo=function(t){var e;return mo(t)&&(e=t.constructor,(wo(e)&&(e===Oo||mo(e.prototype))||So(e)&&null===(e=e[jo]))&&(e=void 0)),void 0===e?Oo:e},Lo=function(t,e){return new(Eo(t))(0===e?0:e)},To=c,ko=et,Io=Qt("species"),Po=Br,Ao=o,Co=c,xo=zr,Mo=K,Fo=Ft,_o=er,Do=function(t,e,n){var r=Vr(e);r in t?Hr.f(t,r,Jr(0,n)):t[r]=n},Ro=Lo,No=function(t){return ko>=51||!To((function(){var e=[];return(e.constructor={})[Io]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Go=et,Uo=Qt("isConcatSpreadable"),Bo=9007199254740991,Ko="Maximum allowed index exceeded",zo=Ao.TypeError,Vo=Go>=51||!Co((function(){var t=[];return t[Uo]=!1,t.concat()[0]!==t})),Ho=No("concat"),Jo=function(t){if(!Mo(t))return!1;var e=t[Uo];return void 0!==e?!!e:xo(t)};Po({target:"Array",proto:!0,forced:!Vo||!Ho},{concat:function(t){var e,n,r,o,i,c=Fo(this),a=Ro(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Jo(i=-1===e?c:arguments[e])){if(u+(o=_o(i))>Bo)throw zo(Ko);for(n=0;n<o;n++,u++)n in i&&Do(a,u,i[n])}else{if(u>=Bo)throw zo(Ko);Do(a,u++,i)}return a.length=u,a}});var qo=u,Wo=Function.prototype,Zo=Wo.apply,$o=Wo.call,Xo="object"==typeof Reflect&&Reflect.apply||(qo?$o.bind(Zo):function(){return $o.apply(Zo,arguments)}),Yo=Br,Qo=J,ti=Xo,ei=E,ni=c,ri=o.Array,oi=Qo("JSON","stringify"),ii=ei(/./.exec),ci=ei("".charAt),ai=ei("".charCodeAt),ui=ei("".replace),si=ei(1..toString),fi=/[\uD800-\uDFFF]/g,li=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,pi=function(t,e,n){var r=ci(n,e-1),o=ci(n,e+1);return ii(li,t)&&!ii(hi,o)||ii(hi,t)&&!ii(li,r)?"\\u"+si(ai(t,0),16):t},di=ni((function(){return'"\\udf06\\ud834"'!==oi("\udf06\ud834")||'"\\udead"'!==oi("\udead")}));oi&&Yo({target:"JSON",stat:!0,forced:di},{stringify:function(t,e,n){for(var r=0,o=arguments.length,i=ri(o);r<o;r++)i[r]=arguments[r];var c=ti(oi,null,i);return"string"==typeof c?ui(c,fi,pi):c}});var vi=c,gi=function(t,e){var n=[][t];return!!n&&vi((function(){n.call(null,e||function(){return 1},1)}))},yi=Br,bi=F,mi=G,wi=gi,Si=E([].join),ji=bi!=Object,Oi=wi("join",",");yi({target:"Array",proto:!0,forced:ji||!Oi},{join:function(t){return Si(mi(this),void 0===t?",":t)}});var Ei=no,Li=Wr?{}.toString:function(){return"[object "+Ei(this)+"]"},Ti=Wr,ki=qe.exports,Ii=Li;Ti||ki(Object.prototype,"toString",Ii,{unsafe:!0});var Pi=o.Promise,Ai=qe.exports,Ci=o,xi=U,Mi=Ci.String,Fi=Ci.TypeError,_i=E,Di=xe,Ri=function(t){if("object"==typeof t||xi(t))return t;throw Fi("Can't set "+Mi(t)+" as a prototype")},Ni=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=_i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Di(n),Ri(r),e?t(n,r):n.__proto__=r,n}}():void 0),Gi=Te.f,Ui=Rt,Bi=Qt("toStringTag"),Ki=J,zi=Te,Vi=a,Hi=Qt("species"),Ji=q,qi=o.TypeError,Wi=yt,Zi=u,$i=E(E.bind),Xi=function(t,e){return Wi(t),void 0===e?t:Zi?$i(t,e):function(){return t.apply(e,arguments)}},Yi={},Qi=Yi,tc=Qt("iterator"),ec=Array.prototype,nc=no,rc=mt,oc=Yi,ic=Qt("iterator"),cc=function(t){if(null!=t)return rc(t,ic)||rc(t,"@@iterator")||oc[nc(t)]},ac=l,uc=yt,sc=xe,fc=pt,lc=cc,hc=o.TypeError,pc=l,dc=xe,vc=mt,gc=Xi,yc=l,bc=xe,mc=pt,wc=function(t){return void 0!==t&&(Qi.Array===t||ec[tc]===t)},Sc=er,jc=q,Oc=function(t,e){var n=arguments.length<2?lc(t):e;if(uc(n))return sc(ac(n,t));throw hc(fc(t)+" is not iterable")},Ec=cc,Lc=function(t,e,n){var r,o;dc(t);try{if(!(r=vc(t,"return"))){if("throw"===e)throw n;return n}r=pc(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return dc(r),n},Tc=o.TypeError,kc=function(t,e){this.stopped=t,this.result=e},Ic=kc.prototype,Pc=Qt("iterator"),Ac=!1;try{var Cc=0,xc={next:function(){return{done:!!Cc++}},return:function(){Ac=!0}};xc[Pc]=function(){return this},Array.from(xc,(function(){throw 2}))}catch(t){}var Mc,Fc,_c,Dc,Rc=yo,Nc=pt,Gc=o.TypeError,Uc=xe,Bc=function(t){if(Rc(t))return t;throw Gc(Nc(t)+" is not a constructor")},Kc=Qt("species"),zc=J("document","documentElement"),Vc=E([].slice),Hc=o.TypeError,Jc=/(?:ipad|iphone|ipod).*applewebkit/i.test(W),qc="process"==I(o.process),Wc=o,Zc=Xo,$c=Xi,Xc=U,Yc=Rt,Qc=c,ta=zc,ea=Vc,na=de,ra=function(t,e){if(t<e)throw Hc("Not enough arguments");return t},oa=Jc,ia=qc,ca=Wc.setImmediate,aa=Wc.clearImmediate,ua=Wc.process,sa=Wc.Dispatch,fa=Wc.Function,la=Wc.MessageChannel,ha=Wc.String,pa=0,da={},va="onreadystatechange";try{Mc=Wc.location}catch(t){}var ga=function(t){if(Yc(da,t)){var e=da[t];delete da[t],e()}},ya=function(t){return function(){ga(t)}},ba=function(t){ga(t.data)},ma=function(t){Wc.postMessage(ha(t),Mc.protocol+"//"+Mc.host)};ca&&aa||(ca=function(t){ra(arguments.length,1);var e=Xc(t)?t:fa(t),n=ea(arguments,1);return da[++pa]=function(){Zc(e,void 0,n)},Fc(pa),pa},aa=function(t){delete da[t]},ia?Fc=function(t){ua.nextTick(ya(t))}:sa&&sa.now?Fc=function(t){sa.now(ya(t))}:la&&!oa?(Dc=(_c=new la).port2,_c.port1.onmessage=ba,Fc=$c(Dc.postMessage,Dc)):Wc.addEventListener&&Xc(Wc.postMessage)&&!Wc.importScripts&&Mc&&"file:"!==Mc.protocol&&!Qc(ma)?(Fc=ma,Wc.addEventListener("message",ba,!1)):Fc=va in na("script")?function(t){ta.appendChild(na("script")).onreadystatechange=function(){ta.removeChild(this),ga(t)}}:function(t){setTimeout(ya(t),0)});var wa,Sa,ja,Oa,Ea,La,Ta,ka,Ia={set:ca,clear:aa},Pa=o,Aa=/ipad|iphone|ipod/i.test(W)&&void 0!==Pa.Pebble,Ca=/web0s(?!.*chrome)/i.test(W),xa=o,Ma=Xi,Fa=i.f,_a=Ia.set,Da=Jc,Ra=Aa,Na=Ca,Ga=qc,Ua=xa.MutationObserver||xa.WebKitMutationObserver,Ba=xa.document,Ka=xa.process,za=xa.Promise,Va=Fa(xa,"queueMicrotask"),Ha=Va&&Va.value;Ha||(wa=function(){var t,e;for(Ga&&(t=Ka.domain)&&t.exit();Sa;){e=Sa.fn,Sa=Sa.next;try{e()}catch(t){throw Sa?Oa():ja=void 0,t}}ja=void 0,t&&t.enter()},Da||Ga||Na||!Ua||!Ba?!Ra&&za&&za.resolve?((Ta=za.resolve(void 0)).constructor=za,ka=Ma(Ta.then,Ta),Oa=function(){ka(wa)}):Ga?Oa=function(){Ka.nextTick(wa)}:(_a=Ma(_a,xa),Oa=function(){_a(wa)}):(Ea=!0,La=Ba.createTextNode(""),new Ua(wa).observe(La,{characterData:!0}),Oa=function(){La.data=Ea=!Ea}));var Ja=Ha||function(t){var e={fn:t,next:void 0};ja&&(ja.next=e),Sa||(Sa=e,Oa()),ja=e},qa={},Wa=yt,Za=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=Wa(e),this.reject=Wa(n)};qa.f=function(t){return new Za(t)};var $a=xe,Xa=K,Ya=qa,Qa=o,tu=function(){this.head=null,this.tail=null};tu.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var eu,nu,ru,ou,iu=tu,cu="object"==typeof window,au=Br,uu=o,su=J,fu=l,lu=Pi,hu=qe.exports,pu=function(t,e,n){for(var r in e)Ai(t,r,e[r],n);return t},du=Ni,vu=function(t,e,n){t&&!n&&(t=t.prototype),t&&!Ui(t,Bi)&&Gi(t,Bi,{configurable:!0,value:e})},gu=function(t){var e=Ki(t),n=zi.f;Vi&&e&&!e[Hi]&&n(e,Hi,{configurable:!0,get:function(){return this}})},yu=yt,bu=U,mu=K,wu=function(t,e){if(Ji(e,t))return t;throw qi("Incorrect invocation")},Su=tn,ju=function(t,e,n){var r,o,i,c,a,u,s,f=n&&n.that,l=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),d=gc(e,f),v=function(t){return r&&Lc(r,"normal",t),new kc(!0,t)},g=function(t){return l?(bc(t),p?d(t[0],t[1],v):d(t[0],t[1])):p?d(t,v):d(t)};if(h)r=t;else{if(!(o=Ec(t)))throw Tc(mc(t)+" is not iterable");if(wc(o)){for(i=0,c=Sc(t);c>i;i++)if((a=g(t[i]))&&jc(Ic,a))return a;return new kc(!1)}r=Oc(t,o)}for(u=r.next;!(s=yc(u,r)).done;){try{a=g(s.value)}catch(t){Lc(r,"throw",t)}if("object"==typeof a&&a&&jc(Ic,a))return a}return new kc(!1)},Ou=function(t,e){if(!e&&!Ac)return!1;var n=!1;try{var r={};r[Pc]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Eu=function(t,e){var n,r=Uc(t).constructor;return void 0===r||null==(n=Uc(r)[Kc])?e:Bc(n)},Lu=Ia.set,Tu=Ja,ku=function(t,e){if($a(t),Xa(e)&&e.constructor===t)return e;var n=Ya.f(t);return(0,n.resolve)(e),n.promise},Iu=function(t,e){var n=Qa.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))},Pu=qa,Au=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Cu=iu,xu=kn,Mu=Mr,Fu=cu,_u=qc,Du=et,Ru=Qt("species"),Nu="Promise",Gu=xu.getterFor(Nu),Uu=xu.set,Bu=xu.getterFor(Nu),Ku=lu&&lu.prototype,zu=lu,Vu=Ku,Hu=uu.TypeError,Ju=uu.document,qu=uu.process,Wu=Pu.f,Zu=Wu,$u=!!(Ju&&Ju.createEvent&&uu.dispatchEvent),Xu=bu(uu.PromiseRejectionEvent),Yu="unhandledrejection",Qu=!1,ts=Mu(Nu,(function(){var t=Su(zu),e=t!==String(zu);if(!e&&66===Du)return!0;if(Du>=51&&/native code/.test(t))return!1;var n=new zu((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[Ru]=r,!(Qu=n.then((function(){}))instanceof r)||!e&&Fu&&!Xu})),es=ts||!Ou((function(t){zu.all(t).catch((function(){}))})),ns=function(t){var e;return!(!mu(t)||!bu(e=t.then))&&e},rs=function(t,e){var n,r,o,i=e.value,c=1==e.state,a=c?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{a?(c||(2===e.rejection&&us(e),e.rejection=1),!0===a?n=i:(f&&f.enter(),n=a(i),f&&(f.exit(),o=!0)),n===t.promise?s(Hu("Promise-chain cycle")):(r=ns(n))?fu(r,n,u,s):u(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},os=function(t,e){t.notified||(t.notified=!0,Tu((function(){for(var n,r=t.reactions;n=r.get();)rs(n,t);t.notified=!1,e&&!t.rejection&&cs(t)})))},is=function(t,e,n){var r,o;$u?((r=Ju.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),uu.dispatchEvent(r)):r={promise:e,reason:n},!Xu&&(o=uu["on"+t])?o(r):t===Yu&&Iu("Unhandled promise rejection",n)},cs=function(t){fu(Lu,uu,(function(){var e,n=t.facade,r=t.value;if(as(t)&&(e=Au((function(){_u?qu.emit("unhandledRejection",r,n):is(Yu,n,r)})),t.rejection=_u||as(t)?2:1,e.error))throw e.value}))},as=function(t){return 1!==t.rejection&&!t.parent},us=function(t){fu(Lu,uu,(function(){var e=t.facade;_u?qu.emit("rejectionHandled",e):is("rejectionhandled",e,t.value)}))},ss=function(t,e,n){return function(r){t(e,r,n)}},fs=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,os(t,!0))},ls=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Hu("Promise can't be resolved itself");var r=ns(e);r?Tu((function(){var n={done:!1};try{fu(r,e,ss(ls,n,t),ss(fs,n,t))}catch(e){fs(n,e,t)}})):(t.value=e,t.state=1,os(t,!1))}catch(e){fs({done:!1},e,t)}}};if(ts&&(Vu=(zu=function(t){wu(this,Vu),yu(t),fu(eu,this);var e=Gu(this);try{t(ss(ls,e),ss(fs,e))}catch(t){fs(e,t)}}).prototype,(eu=function(t){Uu(this,{type:Nu,done:!1,notified:!1,parent:!1,reactions:new Cu,rejection:!1,state:0,value:void 0})}).prototype=pu(Vu,{then:function(t,e){var n=Bu(this),r=Wu(Eu(this,zu));return n.parent=!0,r.ok=!bu(t)||t,r.fail=bu(e)&&e,r.domain=_u?qu.domain:void 0,0==n.state?n.reactions.add(r):Tu((function(){rs(r,n)})),r.promise},catch:function(t){return this.then(void 0,t)}}),nu=function(){var t=new eu,e=Gu(t);this.promise=t,this.resolve=ss(ls,e),this.reject=ss(fs,e)},Pu.f=Wu=function(t){return t===zu||t===ru?new nu(t):Zu(t)},bu(lu)&&Ku!==Object.prototype)){ou=Ku.then,Qu||(hu(Ku,"then",(function(t,e){var n=this;return new zu((function(t,e){fu(ou,n,t,e)})).then(t,e)}),{unsafe:!0}),hu(Ku,"catch",Vu.catch,{unsafe:!0}));try{delete Ku.constructor}catch(t){}du&&du(Ku,Vu)}au({global:!0,wrap:!0,forced:ts},{Promise:zu}),vu(zu,Nu,!1),gu(Nu),ru=su(Nu),au({target:Nu,stat:!0,forced:ts},{reject:function(t){var e=Wu(this);return fu(e.reject,void 0,t),e.promise}}),au({target:Nu,stat:!0,forced:ts},{resolve:function(t){return ku(this,t)}}),au({target:Nu,stat:!0,forced:es},{all:function(t){var e=this,n=Wu(e),r=n.resolve,o=n.reject,i=Au((function(){var n=yu(e.resolve),i=[],c=0,a=1;ju(t,(function(t){var u=c++,s=!1;a++,fu(n,e,t).then((function(t){s||(s=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Wu(e),r=n.reject,o=Au((function(){var o=yu(e.resolve);ju(t,(function(t){fu(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var hs=de("span").classList,ps=hs&&hs.constructor&&hs.constructor.prototype,ds=ps===Object.prototype?void 0:ps,vs=Xi,gs=F,ys=Ft,bs=er,ms=Lo,ws=E([].push),Ss=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,s,f,l){for(var h,p,d=ys(u),v=gs(d),g=vs(s,f),y=bs(v),b=0,m=l||ms,w=e?m(u,y):n||c?m(u,0):void 0;y>b;b++)if((a||b in v)&&(p=g(h=v[b],b,d),t))if(e)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return b;case 2:ws(w,h)}else switch(t){case 4:return!1;case 7:ws(w,h)}return i?-1:r||o?o:w}},js={forEach:Ss(0),map:Ss(1),filter:Ss(2),some:Ss(3),every:Ss(4),find:Ss(5),findIndex:Ss(6),filterReject:Ss(7)}.forEach,Os=o,Es={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ls=ds,Ts=gi("forEach")?[].forEach:function(t){return js(this,t,arguments.length>1?arguments[1]:void 0)},ks=Je,Is=function(t){if(t&&t.forEach!==Ts)try{ks(t,"forEach",Ts)}catch(e){t.forEach=Ts}};for(var Ps in Es)Es[Ps]&&Is(Os[Ps]&&Os[Ps].prototype);Is(Ls);var As,Cs="__googleMapsScriptId";t.LoaderStatus=void 0,(As=t.LoaderStatus||(t.LoaderStatus={}))[As.INITIALIZED=0]="INITIALIZED",As[As.LOADING=1]="LOADING",As[As.SUCCESS=2]="SUCCESS",As[As.FAILURE=3]="FAILURE";var xs=function(){function n(t){var e=t.apiKey,r=t.channel,o=t.client,i=t.id,c=void 0===i?Cs:i,a=t.libraries,u=void 0===a?[]:a,s=t.language,f=t.region,l=t.version,h=t.mapIds,p=t.nonce,d=t.retries,v=void 0===d?3:d,g=t.url,y=void 0===g?"https://maps.googleapis.com/maps/api/js":g;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=l,this.apiKey=e,this.channel=r,this.client=o,this.id=c||Cs,this.libraries=u,this.language=s,this.region=f,this.mapIds=h,this.nonce=p,this.retries=v,this.url=y,n.instance){if(!function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var c=i[o];if(!t(e[c],n[c]))return!1}return!0}return e!=e&&n!=n}(this.options,n.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(n.instance.options)));return n.instance}n.instance=this}var r,o,i;return r=n,(o=[{key:"options",get:function(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}},{key:"status",get:function(){return this.errors.length?t.LoaderStatus.FAILURE:this.done?t.LoaderStatus.SUCCESS:this.loading?t.LoaderStatus.LOADING:t.LoaderStatus.INITIALIZED}},{key:"failed",get:function(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}},{key:"createUrl",value:function(){var t=this.url;return t+="?callback=".concat(this.CALLBACK),this.apiKey&&(t+="&key=".concat(this.apiKey)),this.channel&&(t+="&channel=".concat(this.channel)),this.client&&(t+="&client=".concat(this.client)),this.libraries.length>0&&(t+="&libraries=".concat(this.libraries.join(","))),this.language&&(t+="&language=".concat(this.language)),this.region&&(t+="®ion=".concat(this.region)),this.version&&(t+="&v=".concat(this.version)),this.mapIds&&(t+="&map_ids=".concat(this.mapIds.join(","))),t}},{key:"deleteScript",value:function(){var t=document.getElementById(this.id);t&&t.remove()}},{key:"load",value:function(){return this.loadPromise()}},{key:"loadPromise",value:function(){var t=this;return new Promise((function(e,n){t.loadCallback((function(t){t?n(t.error):e(window.google)}))}))}},{key:"loadCallback",value:function(t){this.callbacks.push(t),this.execute()}},{key:"setScript",value:function(){if(document.getElementById(this.id))this.callback();else{var t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}}},{key:"reset",value:function(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}},{key:"resetIfRetryingFailed",value:function(){this.failed&&this.reset()}},{key:"loadErrorCallback",value:function(t){var e=this;if(this.errors.push(t),this.errors.length<=this.retries){var n=this.errors.length*Math.pow(2,this.errors.length);console.log("Failed to load Google Maps script, retrying in ".concat(n," ms.")),setTimeout((function(){e.deleteScript(),e.setScript()}),n)}else this.onerrorEvent=t,this.callback()}},{key:"setCallback",value:function(){window.__googleMapsCallback=this.callback.bind(this)}},{key:"callback",value:function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]}},{key:"execute",value:function(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}])&&e(r.prototype,o),i&&e(r,i),n}();return t.DEFAULT_ID=Cs,t.Loader=xs,Object.defineProperty(t,"__esModule",{value:!0}),t}({}); | ||
this.google=this.google||{},this.google.maps=this.google.maps||{},this.google.maps.plugins=this.google.maps.plugins||{},this.google.maps.plugins.loader=function(t){"use strict";function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r&&r)||function(){return this}()||Function("return this")(),i={},c=function(t){try{return!!t()}catch(t){return!0}},a=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=u,f=Function.prototype.call,l=s?f.bind(f):function(){return f.apply(f,arguments)},h={},p={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,v=d&&!p.call({1:2},1);h.f=v?function(t){var e=d(this,t);return!!e&&e.enumerable}:p;var g,y,b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=u,w=Function.prototype,S=w.bind,j=w.call,O=m&&S.bind(j,j),E=m?function(t){return t&&O(t)}:function(t){return t&&function(){return j.apply(t,arguments)}},L=E,T=L({}.toString),k=L("".slice),P=function(t){return k(T(t),8,-1)},I=E,A=c,C=P,x=o.Object,M=I("".split),F=A((function(){return!x("z").propertyIsEnumerable(0)}))?function(t){return"String"==C(t)?M(t,""):x(t)}:x,R=o.TypeError,_=function(t){if(null==t)throw R("Can't call method on "+t);return t},D=F,N=_,G=function(t){return D(N(t))},U=function(t){return"function"==typeof t},B=U,K=function(t){return"object"==typeof t?null!==t:B(t)},z=o,V=U,H=function(t){return V(t)?t:void 0},J=function(t,e){return arguments.length<2?H(z[t]):z[t]&&z[t][e]},q=E({}.isPrototypeOf),W=J("navigator","userAgent")||"",Z=o,$=W,X=Z.process,Y=Z.Deno,Q=X&&X.versions||Y&&Y.version,tt=Q&&Q.v8;tt&&(y=(g=tt.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!y&&$&&(!(g=$.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=$.match(/Chrome\/(\d+)/))&&(y=+g[1]);var et=y,rt=et,nt=c,ot=!!Object.getOwnPropertySymbols&&!nt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),it=ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ct=J,at=U,ut=q,st=it,ft=o.Object,lt=st?function(t){return"symbol"==typeof t}:function(t){var e=ct("Symbol");return at(e)&&ut(e.prototype,ft(t))},ht=o.String,pt=function(t){try{return ht(t)}catch(t){return"Object"}},dt=U,vt=pt,gt=o.TypeError,yt=function(t){if(dt(t))return t;throw gt(vt(t)+" is not a function")},bt=yt,mt=function(t,e){var r=t[e];return null==r?void 0:bt(r)},wt=l,St=U,jt=K,Ot=o.TypeError,Et={exports:{}},Lt=o,Tt=Object.defineProperty,kt=function(t,e){try{Tt(Lt,t,{value:e,configurable:!0,writable:!0})}catch(r){Lt[t]=e}return e},Pt=kt,It="__core-js_shared__",At=o[It]||Pt(It,{}),Ct=At;(Et.exports=function(t,e){return Ct[t]||(Ct[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var xt=_,Mt=o.Object,Ft=function(t){return Mt(xt(t))},Rt=Ft,_t=E({}.hasOwnProperty),Dt=Object.hasOwn||function(t,e){return _t(Rt(t),e)},Nt=E,Gt=0,Ut=Math.random(),Bt=Nt(1..toString),Kt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Bt(++Gt+Ut,36)},zt=o,Vt=Et.exports,Ht=Dt,Jt=Kt,qt=ot,Wt=it,Zt=Vt("wks"),$t=zt.Symbol,Xt=$t&&$t.for,Yt=Wt?$t:$t&&$t.withoutSetter||Jt,Qt=function(t){if(!Ht(Zt,t)||!qt&&"string"!=typeof Zt[t]){var e="Symbol."+t;qt&&Ht($t,t)?Zt[t]=$t[t]:Zt[t]=Wt&&Xt?Xt(e):Yt(e)}return Zt[t]},te=l,ee=K,re=lt,ne=mt,oe=function(t,e){var r,n;if("string"===e&&St(r=t.toString)&&!jt(n=wt(r,t)))return n;if(St(r=t.valueOf)&&!jt(n=wt(r,t)))return n;if("string"!==e&&St(r=t.toString)&&!jt(n=wt(r,t)))return n;throw Ot("Can't convert object to primitive value")},ie=Qt,ce=o.TypeError,ae=ie("toPrimitive"),ue=function(t,e){if(!ee(t)||re(t))return t;var r,n=ne(t,ae);if(n){if(void 0===e&&(e="default"),r=te(n,t,e),!ee(r)||re(r))return r;throw ce("Can't convert object to primitive value")}return void 0===e&&(e="number"),oe(t,e)},se=lt,fe=function(t){var e=ue(t,"string");return se(e)?e:e+""},le=K,he=o.document,pe=le(he)&&le(he.createElement),de=function(t){return pe?he.createElement(t):{}},ve=de,ge=!a&&!c((function(){return 7!=Object.defineProperty(ve("div"),"a",{get:function(){return 7}}).a})),ye=a,be=l,me=h,we=b,Se=G,je=fe,Oe=Dt,Ee=ge,Le=Object.getOwnPropertyDescriptor;i.f=ye?Le:function(t,e){if(t=Se(t),e=je(e),Ee)try{return Le(t,e)}catch(t){}if(Oe(t,e))return we(!be(me.f,t,e),t[e])};var Te={},ke=a&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pe=o,Ie=K,Ae=Pe.String,Ce=Pe.TypeError,xe=function(t){if(Ie(t))return t;throw Ce(Ae(t)+" is not an object")},Me=a,Fe=ge,Re=ke,_e=xe,De=fe,Ne=o.TypeError,Ge=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Be="enumerable",Ke="configurable",ze="writable";Te.f=Me?Re?function(t,e,r){if(_e(t),e=De(e),_e(r),"function"==typeof t&&"prototype"===e&&"value"in r&&ze in r&&!r.writable){var n=Ue(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:Ke in r?r.configurable:n.configurable,enumerable:Be in r?r.enumerable:n.enumerable,writable:!1})}return Ge(t,e,r)}:Ge:function(t,e,r){if(_e(t),e=De(e),_e(r),Fe)try{return Ge(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ne("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Ve=Te,He=b,Je=a?function(t,e,r){return Ve.f(t,e,He(1,r))}:function(t,e,r){return t[e]=r,t},qe={exports:{}},We=U,Ze=At,$e=E(Function.toString);We(Ze.inspectSource)||(Ze.inspectSource=function(t){return $e(t)});var Xe,Ye,Qe,tr=Ze.inspectSource,er=U,rr=tr,nr=o.WeakMap,or=er(nr)&&/native code/.test(rr(nr)),ir=Et.exports,cr=Kt,ar=ir("keys"),ur={},sr=or,fr=o,lr=E,hr=K,pr=Je,dr=Dt,vr=At,gr=function(t){return ar[t]||(ar[t]=cr(t))},yr=ur,br="Object already initialized",mr=fr.TypeError,wr=fr.WeakMap;if(sr||vr.state){var Sr=vr.state||(vr.state=new wr),jr=lr(Sr.get),Or=lr(Sr.has),Er=lr(Sr.set);Xe=function(t,e){if(Or(Sr,t))throw new mr(br);return e.facade=t,Er(Sr,t,e),e},Ye=function(t){return jr(Sr,t)||{}},Qe=function(t){return Or(Sr,t)}}else{var Lr=gr("state");yr[Lr]=!0,Xe=function(t,e){if(dr(t,Lr))throw new mr(br);return e.facade=t,pr(t,Lr,e),e},Ye=function(t){return dr(t,Lr)?t[Lr]:{}},Qe=function(t){return dr(t,Lr)}}var Tr={set:Xe,get:Ye,has:Qe,enforce:function(t){return Qe(t)?Ye(t):Xe(t,{})},getterFor:function(t){return function(e){var r;if(!hr(e)||(r=Ye(e)).type!==t)throw mr("Incompatible receiver, "+t+" required");return r}}},kr=a,Pr=Dt,Ir=Function.prototype,Ar=kr&&Object.getOwnPropertyDescriptor,Cr=Pr(Ir,"name"),xr=Cr&&"something"===function(){}.name,Mr=Cr&&(!kr||kr&&Ar(Ir,"name").configurable),Fr=o,Rr=U,_r=Dt,Dr=Je,Nr=kt,Gr=tr,Ur={EXISTS:Cr,PROPER:xr,CONFIGURABLE:Mr}.CONFIGURABLE,Br=Tr.get,Kr=Tr.enforce,zr=String(String).split("String");(qe.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,c=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet,u=n&&void 0!==n.name?n.name:e;Rr(r)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_r(r,"name")||Ur&&r.name!==u)&&Dr(r,"name",u),(o=Kr(r)).source||(o.source=zr.join("string"==typeof u?u:""))),t!==Fr?(i?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=r:Dr(t,e,r)):c?t[e]=r:Nr(e,r)})(Function.prototype,"toString",(function(){return Rr(this)&&Br(this).source||Gr(this)}));var Vr={},Hr=Math.ceil,Jr=Math.floor,qr=function(t){var e=+t;return e!=e||0===e?0:(e>0?Jr:Hr)(e)},Wr=qr,Zr=Math.max,$r=Math.min,Xr=qr,Yr=Math.min,Qr=function(t){return t>0?Yr(Xr(t),9007199254740991):0},tn=function(t){return Qr(t.length)},en=G,rn=function(t,e){var r=Wr(t);return r<0?Zr(r+e,0):$r(r,e)},nn=tn,on=function(t){return function(e,r,n){var o,i=en(e),c=nn(i),a=rn(n,c);if(t&&r!=r){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},cn={includes:on(!0),indexOf:on(!1)},an=Dt,un=G,sn=cn.indexOf,fn=ur,ln=E([].push),hn=function(t,e){var r,n=un(t),o=0,i=[];for(r in n)!an(fn,r)&&an(n,r)&&ln(i,r);for(;e.length>o;)an(n,r=e[o++])&&(~sn(i,r)||ln(i,r));return i},pn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Vr.f=Object.getOwnPropertyNames||function(t){return hn(t,pn)};var dn={};dn.f=Object.getOwnPropertySymbols;var vn=J,gn=Vr,yn=dn,bn=xe,mn=E([].concat),wn=vn("Reflect","ownKeys")||function(t){var e=gn.f(bn(t)),r=yn.f;return r?mn(e,r(t)):e},Sn=Dt,jn=wn,On=i,En=Te,Ln=c,Tn=U,kn=/#|\.prototype\./,Pn=function(t,e){var r=An[In(t)];return r==xn||r!=Cn&&(Tn(e)?Ln(e):!!e)},In=Pn.normalize=function(t){return String(t).replace(kn,".").toLowerCase()},An=Pn.data={},Cn=Pn.NATIVE="N",xn=Pn.POLYFILL="P",Mn=Pn,Fn=o,Rn=i.f,_n=Je,Dn=qe.exports,Nn=kt,Gn=function(t,e,r){for(var n=jn(e),o=En.f,i=On.f,c=0;c<n.length;c++){var a=n[c];Sn(t,a)||r&&Sn(r,a)||o(t,a,i(e,a))}},Un=Mn,Bn=function(t,e){var r,n,o,i,c,a=t.target,u=t.global,s=t.stat;if(r=u?Fn:s?Fn[a]||Nn(a,{}):(Fn[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(c=Rn(r,n))&&c.value:r[n],!Un(u?n:a+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Gn(i,o)}(t.sham||o&&o.sham)&&_n(i,"sham",!0),Dn(r,n,i,t)}},Kn=P,zn=Array.isArray||function(t){return"Array"==Kn(t)},Vn=fe,Hn=Te,Jn=b,qn={};qn[Qt("toStringTag")]="z";var Wn="[object z]"===String(qn),Zn=o,$n=Wn,Xn=U,Yn=P,Qn=Qt("toStringTag"),to=Zn.Object,eo="Arguments"==Yn(function(){return arguments}()),ro=$n?Yn:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=to(t),Qn))?r:eo?Yn(e):"Object"==(n=Yn(e))&&Xn(e.callee)?"Arguments":n},no=E,oo=c,io=U,co=ro,ao=tr,uo=function(){},so=[],fo=J("Reflect","construct"),lo=/^\s*(?:class|function)\b/,ho=no(lo.exec),po=!lo.exec(uo),vo=function(t){if(!io(t))return!1;try{return fo(uo,so,t),!0}catch(t){return!1}},go=function(t){if(!io(t))return!1;switch(co(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return po||!!ho(lo,ao(t))}catch(t){return!0}};go.sham=!0;var yo=!fo||oo((function(){var t;return vo(vo.call)||!vo(Object)||!vo((function(){t=!0}))||t}))?go:vo,bo=o,mo=zn,wo=yo,So=K,jo=Qt("species"),Oo=bo.Array,Eo=function(t){var e;return mo(t)&&(e=t.constructor,(wo(e)&&(e===Oo||mo(e.prototype))||So(e)&&null===(e=e[jo]))&&(e=void 0)),void 0===e?Oo:e},Lo=function(t,e){return new(Eo(t))(0===e?0:e)},To=c,ko=et,Po=Qt("species"),Io=Bn,Ao=o,Co=c,xo=zn,Mo=K,Fo=Ft,Ro=tn,_o=function(t,e,r){var n=Vn(e);n in t?Hn.f(t,n,Jn(0,r)):t[n]=r},Do=Lo,No=function(t){return ko>=51||!To((function(){var e=[];return(e.constructor={})[Po]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Go=et,Uo=Qt("isConcatSpreadable"),Bo=9007199254740991,Ko="Maximum allowed index exceeded",zo=Ao.TypeError,Vo=Go>=51||!Co((function(){var t=[];return t[Uo]=!1,t.concat()[0]!==t})),Ho=No("concat"),Jo=function(t){if(!Mo(t))return!1;var e=t[Uo];return void 0!==e?!!e:xo(t)};Io({target:"Array",proto:!0,forced:!Vo||!Ho},{concat:function(t){var e,r,n,o,i,c=Fo(this),a=Do(c,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Jo(i=-1===e?c:arguments[e])){if(u+(o=Ro(i))>Bo)throw zo(Ko);for(r=0;r<o;r++,u++)r in i&&_o(a,u,i[r])}else{if(u>=Bo)throw zo(Ko);_o(a,u++,i)}return a.length=u,a}});var qo=u,Wo=Function.prototype,Zo=Wo.apply,$o=Wo.call,Xo="object"==typeof Reflect&&Reflect.apply||(qo?$o.bind(Zo):function(){return $o.apply(Zo,arguments)}),Yo=Bn,Qo=J,ti=Xo,ei=E,ri=c,ni=o.Array,oi=Qo("JSON","stringify"),ii=ei(/./.exec),ci=ei("".charAt),ai=ei("".charCodeAt),ui=ei("".replace),si=ei(1..toString),fi=/[\uD800-\uDFFF]/g,li=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,pi=function(t,e,r){var n=ci(r,e-1),o=ci(r,e+1);return ii(li,t)&&!ii(hi,o)||ii(hi,t)&&!ii(li,n)?"\\u"+si(ai(t,0),16):t},di=ri((function(){return'"\\udf06\\ud834"'!==oi("\udf06\ud834")||'"\\udead"'!==oi("\udead")}));oi&&Yo({target:"JSON",stat:!0,forced:di},{stringify:function(t,e,r){for(var n=0,o=arguments.length,i=ni(o);n<o;n++)i[n]=arguments[n];var c=ti(oi,null,i);return"string"==typeof c?ui(c,fi,pi):c}});var vi=c,gi=function(t,e){var r=[][t];return!!r&&vi((function(){r.call(null,e||function(){return 1},1)}))},yi=Bn,bi=F,mi=G,wi=gi,Si=E([].join),ji=bi!=Object,Oi=wi("join",",");yi({target:"Array",proto:!0,forced:ji||!Oi},{join:function(t){return Si(mi(this),void 0===t?",":t)}});var Ei=ro,Li=Wn?{}.toString:function(){return"[object "+Ei(this)+"]"},Ti=Wn,ki=qe.exports,Pi=Li;Ti||ki(Object.prototype,"toString",Pi,{unsafe:!0});var Ii=o.Promise,Ai=qe.exports,Ci=o,xi=U,Mi=Ci.String,Fi=Ci.TypeError,Ri=E,_i=xe,Di=function(t){if("object"==typeof t||xi(t))return t;throw Fi("Can't set "+Mi(t)+" as a prototype")},Ni=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Ri(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return _i(r),Di(n),e?t(r,n):r.__proto__=n,r}}():void 0),Gi=Te.f,Ui=Dt,Bi=Qt("toStringTag"),Ki=J,zi=Te,Vi=a,Hi=Qt("species"),Ji=q,qi=o.TypeError,Wi=yt,Zi=u,$i=E(E.bind),Xi=function(t,e){return Wi(t),void 0===e?t:Zi?$i(t,e):function(){return t.apply(e,arguments)}},Yi={},Qi=Yi,tc=Qt("iterator"),ec=Array.prototype,rc=ro,nc=mt,oc=Yi,ic=Qt("iterator"),cc=function(t){if(null!=t)return nc(t,ic)||nc(t,"@@iterator")||oc[rc(t)]},ac=l,uc=yt,sc=xe,fc=pt,lc=cc,hc=o.TypeError,pc=l,dc=xe,vc=mt,gc=Xi,yc=l,bc=xe,mc=pt,wc=function(t){return void 0!==t&&(Qi.Array===t||ec[tc]===t)},Sc=tn,jc=q,Oc=function(t,e){var r=arguments.length<2?lc(t):e;if(uc(r))return sc(ac(r,t));throw hc(fc(t)+" is not iterable")},Ec=cc,Lc=function(t,e,r){var n,o;dc(t);try{if(!(n=vc(t,"return"))){if("throw"===e)throw r;return r}n=pc(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return dc(n),r},Tc=o.TypeError,kc=function(t,e){this.stopped=t,this.result=e},Pc=kc.prototype,Ic=Qt("iterator"),Ac=!1;try{var Cc=0,xc={next:function(){return{done:!!Cc++}},return:function(){Ac=!0}};xc[Ic]=function(){return this},Array.from(xc,(function(){throw 2}))}catch(t){}var Mc,Fc,Rc,_c,Dc=yo,Nc=pt,Gc=o.TypeError,Uc=xe,Bc=function(t){if(Dc(t))return t;throw Gc(Nc(t)+" is not a constructor")},Kc=Qt("species"),zc=J("document","documentElement"),Vc=E([].slice),Hc=o.TypeError,Jc=/(?:ipad|iphone|ipod).*applewebkit/i.test(W),qc="process"==P(o.process),Wc=o,Zc=Xo,$c=Xi,Xc=U,Yc=Dt,Qc=c,ta=zc,ea=Vc,ra=de,na=function(t,e){if(t<e)throw Hc("Not enough arguments");return t},oa=Jc,ia=qc,ca=Wc.setImmediate,aa=Wc.clearImmediate,ua=Wc.process,sa=Wc.Dispatch,fa=Wc.Function,la=Wc.MessageChannel,ha=Wc.String,pa=0,da={},va="onreadystatechange";try{Mc=Wc.location}catch(t){}var ga=function(t){if(Yc(da,t)){var e=da[t];delete da[t],e()}},ya=function(t){return function(){ga(t)}},ba=function(t){ga(t.data)},ma=function(t){Wc.postMessage(ha(t),Mc.protocol+"//"+Mc.host)};ca&&aa||(ca=function(t){na(arguments.length,1);var e=Xc(t)?t:fa(t),r=ea(arguments,1);return da[++pa]=function(){Zc(e,void 0,r)},Fc(pa),pa},aa=function(t){delete da[t]},ia?Fc=function(t){ua.nextTick(ya(t))}:sa&&sa.now?Fc=function(t){sa.now(ya(t))}:la&&!oa?(_c=(Rc=new la).port2,Rc.port1.onmessage=ba,Fc=$c(_c.postMessage,_c)):Wc.addEventListener&&Xc(Wc.postMessage)&&!Wc.importScripts&&Mc&&"file:"!==Mc.protocol&&!Qc(ma)?(Fc=ma,Wc.addEventListener("message",ba,!1)):Fc=va in ra("script")?function(t){ta.appendChild(ra("script")).onreadystatechange=function(){ta.removeChild(this),ga(t)}}:function(t){setTimeout(ya(t),0)});var wa,Sa,ja,Oa,Ea,La,Ta,ka,Pa={set:ca,clear:aa},Ia=o,Aa=/ipad|iphone|ipod/i.test(W)&&void 0!==Ia.Pebble,Ca=/web0s(?!.*chrome)/i.test(W),xa=o,Ma=Xi,Fa=i.f,Ra=Pa.set,_a=Jc,Da=Aa,Na=Ca,Ga=qc,Ua=xa.MutationObserver||xa.WebKitMutationObserver,Ba=xa.document,Ka=xa.process,za=xa.Promise,Va=Fa(xa,"queueMicrotask"),Ha=Va&&Va.value;Ha||(wa=function(){var t,e;for(Ga&&(t=Ka.domain)&&t.exit();Sa;){e=Sa.fn,Sa=Sa.next;try{e()}catch(t){throw Sa?Oa():ja=void 0,t}}ja=void 0,t&&t.enter()},_a||Ga||Na||!Ua||!Ba?!Da&&za&&za.resolve?((Ta=za.resolve(void 0)).constructor=za,ka=Ma(Ta.then,Ta),Oa=function(){ka(wa)}):Ga?Oa=function(){Ka.nextTick(wa)}:(Ra=Ma(Ra,xa),Oa=function(){Ra(wa)}):(Ea=!0,La=Ba.createTextNode(""),new Ua(wa).observe(La,{characterData:!0}),Oa=function(){La.data=Ea=!Ea}));var Ja=Ha||function(t){var e={fn:t,next:void 0};ja&&(ja.next=e),Sa||(Sa=e,Oa()),ja=e},qa={},Wa=yt,Za=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Wa(e),this.reject=Wa(r)};qa.f=function(t){return new Za(t)};var $a=xe,Xa=K,Ya=qa,Qa=o,tu=function(){this.head=null,this.tail=null};tu.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var eu,ru,nu,ou,iu=tu,cu="object"==typeof window,au=Bn,uu=o,su=J,fu=l,lu=Ii,hu=qe.exports,pu=function(t,e,r){for(var n in e)Ai(t,n,e[n],r);return t},du=Ni,vu=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Ui(t,Bi)&&Gi(t,Bi,{configurable:!0,value:e})},gu=function(t){var e=Ki(t),r=zi.f;Vi&&e&&!e[Hi]&&r(e,Hi,{configurable:!0,get:function(){return this}})},yu=yt,bu=U,mu=K,wu=function(t,e){if(Ji(e,t))return t;throw qi("Incorrect invocation")},Su=tr,ju=function(t,e,r){var n,o,i,c,a,u,s,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),d=gc(e,f),v=function(t){return n&&Lc(n,"normal",t),new kc(!0,t)},g=function(t){return l?(bc(t),p?d(t[0],t[1],v):d(t[0],t[1])):p?d(t,v):d(t)};if(h)n=t;else{if(!(o=Ec(t)))throw Tc(mc(t)+" is not iterable");if(wc(o)){for(i=0,c=Sc(t);c>i;i++)if((a=g(t[i]))&&jc(Pc,a))return a;return new kc(!1)}n=Oc(t,o)}for(u=n.next;!(s=yc(u,n)).done;){try{a=g(s.value)}catch(t){Lc(n,"throw",t)}if("object"==typeof a&&a&&jc(Pc,a))return a}return new kc(!1)},Ou=function(t,e){if(!e&&!Ac)return!1;var r=!1;try{var n={};n[Ic]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Eu=function(t,e){var r,n=Uc(t).constructor;return void 0===n||null==(r=Uc(n)[Kc])?e:Bc(r)},Lu=Pa.set,Tu=Ja,ku=function(t,e){if($a(t),Xa(e)&&e.constructor===t)return e;var r=Ya.f(t);return(0,r.resolve)(e),r.promise},Pu=function(t,e){var r=Qa.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},Iu=qa,Au=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Cu=iu,xu=Tr,Mu=Mn,Fu=cu,Ru=qc,_u=et,Du=Qt("species"),Nu="Promise",Gu=xu.getterFor(Nu),Uu=xu.set,Bu=xu.getterFor(Nu),Ku=lu&&lu.prototype,zu=lu,Vu=Ku,Hu=uu.TypeError,Ju=uu.document,qu=uu.process,Wu=Iu.f,Zu=Wu,$u=!!(Ju&&Ju.createEvent&&uu.dispatchEvent),Xu=bu(uu.PromiseRejectionEvent),Yu="unhandledrejection",Qu=!1,ts=Mu(Nu,(function(){var t=Su(zu),e=t!==String(zu);if(!e&&66===_u)return!0;if(_u>=51&&/native code/.test(t))return!1;var r=new zu((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[Du]=n,!(Qu=r.then((function(){}))instanceof n)||!e&&Fu&&!Xu})),es=ts||!Ou((function(t){zu.all(t).catch((function(){}))})),rs=function(t){var e;return!(!mu(t)||!bu(e=t.then))&&e},ns=function(t,e){var r,n,o,i=e.value,c=1==e.state,a=c?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{a?(c||(2===e.rejection&&us(e),e.rejection=1),!0===a?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===t.promise?s(Hu("Promise-chain cycle")):(n=rs(r))?fu(n,r,u,s):u(r)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},os=function(t,e){t.notified||(t.notified=!0,Tu((function(){for(var r,n=t.reactions;r=n.get();)ns(r,t);t.notified=!1,e&&!t.rejection&&cs(t)})))},is=function(t,e,r){var n,o;$u?((n=Ju.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),uu.dispatchEvent(n)):n={promise:e,reason:r},!Xu&&(o=uu["on"+t])?o(n):t===Yu&&Pu("Unhandled promise rejection",r)},cs=function(t){fu(Lu,uu,(function(){var e,r=t.facade,n=t.value;if(as(t)&&(e=Au((function(){Ru?qu.emit("unhandledRejection",n,r):is(Yu,r,n)})),t.rejection=Ru||as(t)?2:1,e.error))throw e.value}))},as=function(t){return 1!==t.rejection&&!t.parent},us=function(t){fu(Lu,uu,(function(){var e=t.facade;Ru?qu.emit("rejectionHandled",e):is("rejectionhandled",e,t.value)}))},ss=function(t,e,r){return function(n){t(e,n,r)}},fs=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,os(t,!0))},ls=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Hu("Promise can't be resolved itself");var n=rs(e);n?Tu((function(){var r={done:!1};try{fu(n,e,ss(ls,r,t),ss(fs,r,t))}catch(e){fs(r,e,t)}})):(t.value=e,t.state=1,os(t,!1))}catch(e){fs({done:!1},e,t)}}};if(ts&&(Vu=(zu=function(t){wu(this,Vu),yu(t),fu(eu,this);var e=Gu(this);try{t(ss(ls,e),ss(fs,e))}catch(t){fs(e,t)}}).prototype,(eu=function(t){Uu(this,{type:Nu,done:!1,notified:!1,parent:!1,reactions:new Cu,rejection:!1,state:0,value:void 0})}).prototype=pu(Vu,{then:function(t,e){var r=Bu(this),n=Wu(Eu(this,zu));return r.parent=!0,n.ok=!bu(t)||t,n.fail=bu(e)&&e,n.domain=Ru?qu.domain:void 0,0==r.state?r.reactions.add(n):Tu((function(){ns(n,r)})),n.promise},catch:function(t){return this.then(void 0,t)}}),ru=function(){var t=new eu,e=Gu(t);this.promise=t,this.resolve=ss(ls,e),this.reject=ss(fs,e)},Iu.f=Wu=function(t){return t===zu||t===nu?new ru(t):Zu(t)},bu(lu)&&Ku!==Object.prototype)){ou=Ku.then,Qu||(hu(Ku,"then",(function(t,e){var r=this;return new zu((function(t,e){fu(ou,r,t,e)})).then(t,e)}),{unsafe:!0}),hu(Ku,"catch",Vu.catch,{unsafe:!0}));try{delete Ku.constructor}catch(t){}du&&du(Ku,Vu)}au({global:!0,wrap:!0,forced:ts},{Promise:zu}),vu(zu,Nu,!1),gu(Nu),nu=su(Nu),au({target:Nu,stat:!0,forced:ts},{reject:function(t){var e=Wu(this);return fu(e.reject,void 0,t),e.promise}}),au({target:Nu,stat:!0,forced:ts},{resolve:function(t){return ku(this,t)}}),au({target:Nu,stat:!0,forced:es},{all:function(t){var e=this,r=Wu(e),n=r.resolve,o=r.reject,i=Au((function(){var r=yu(e.resolve),i=[],c=0,a=1;ju(t,(function(t){var u=c++,s=!1;a++,fu(r,e,t).then((function(t){s||(s=!0,i[u]=t,--a||n(i))}),o)})),--a||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Wu(e),n=r.reject,o=Au((function(){var o=yu(e.resolve);ju(t,(function(t){fu(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var hs=de("span").classList,ps=hs&&hs.constructor&&hs.constructor.prototype,ds=ps===Object.prototype?void 0:ps,vs=Xi,gs=F,ys=Ft,bs=tn,ms=Lo,ws=E([].push),Ss=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,s,f,l){for(var h,p,d=ys(u),v=gs(d),g=vs(s,f),y=bs(v),b=0,m=l||ms,w=e?m(u,y):r||c?m(u,0):void 0;y>b;b++)if((a||b in v)&&(p=g(h=v[b],b,d),t))if(e)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return b;case 2:ws(w,h)}else switch(t){case 4:return!1;case 7:ws(w,h)}return i?-1:n||o?o:w}},js={forEach:Ss(0),map:Ss(1),filter:Ss(2),some:Ss(3),every:Ss(4),find:Ss(5),findIndex:Ss(6),filterReject:Ss(7)}.forEach,Os=o,Es={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ls=ds,Ts=gi("forEach")?[].forEach:function(t){return js(this,t,arguments.length>1?arguments[1]:void 0)},ks=Je,Ps=function(t){if(t&&t.forEach!==Ts)try{ks(t,"forEach",Ts)}catch(e){t.forEach=Ts}};for(var Is in Es)Es[Is]&&Ps(Os[Is]&&Os[Is].prototype);Ps(Ls);var As,Cs="__googleMapsScriptId";t.LoaderStatus=void 0,(As=t.LoaderStatus||(t.LoaderStatus={}))[As.INITIALIZED=0]="INITIALIZED",As[As.LOADING=1]="LOADING",As[As.SUCCESS=2]="SUCCESS",As[As.FAILURE=3]="FAILURE";var xs=function(){function r(t){var e=t.apiKey,n=t.authReferrerPolicy,o=t.channel,i=t.client,c=t.id,a=void 0===c?Cs:c,u=t.language,s=t.libraries,f=void 0===s?[]:s,l=t.mapIds,h=t.nonce,p=t.region,d=t.retries,v=void 0===d?3:d,g=t.url,y=void 0===g?"https://maps.googleapis.com/maps/api/js":g,b=t.version;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=n,this.channel=o,this.client=i,this.id=a||Cs,this.language=u,this.libraries=f,this.mapIds=l,this.nonce=h,this.region=p,this.retries=v,this.url=y,this.version=b,r.instance){if(!function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var c=i[o];if(!t(e[c],r[c]))return!1}return!0}return e!=e&&r!=r}(this.options,r.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(r.instance.options)));return r.instance}r.instance=this}var n,o,i;return n=r,(o=[{key:"options",get:function(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}},{key:"status",get:function(){return this.errors.length?t.LoaderStatus.FAILURE:this.done?t.LoaderStatus.SUCCESS:this.loading?t.LoaderStatus.LOADING:t.LoaderStatus.INITIALIZED}},{key:"failed",get:function(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}},{key:"createUrl",value:function(){var t=this.url;return t+="?callback=".concat(this.CALLBACK),this.apiKey&&(t+="&key=".concat(this.apiKey)),this.channel&&(t+="&channel=".concat(this.channel)),this.client&&(t+="&client=".concat(this.client)),this.libraries.length>0&&(t+="&libraries=".concat(this.libraries.join(","))),this.language&&(t+="&language=".concat(this.language)),this.region&&(t+="®ion=".concat(this.region)),this.version&&(t+="&v=".concat(this.version)),this.mapIds&&(t+="&map_ids=".concat(this.mapIds.join(","))),this.authReferrerPolicy&&(t+="&auth_referrer_policy=".concat(this.authReferrerPolicy)),t}},{key:"deleteScript",value:function(){var t=document.getElementById(this.id);t&&t.remove()}},{key:"load",value:function(){return this.loadPromise()}},{key:"loadPromise",value:function(){var t=this;return new Promise((function(e,r){t.loadCallback((function(t){t?r(t.error):e(window.google)}))}))}},{key:"loadCallback",value:function(t){this.callbacks.push(t),this.execute()}},{key:"setScript",value:function(){if(document.getElementById(this.id))this.callback();else{var t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}}},{key:"reset",value:function(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}},{key:"resetIfRetryingFailed",value:function(){this.failed&&this.reset()}},{key:"loadErrorCallback",value:function(t){var e=this;if(this.errors.push(t),this.errors.length<=this.retries){var r=this.errors.length*Math.pow(2,this.errors.length);console.log("Failed to load Google Maps script, retrying in ".concat(r," ms.")),setTimeout((function(){e.deleteScript(),e.setScript()}),r)}else this.onerrorEvent=t,this.callback()}},{key:"setCallback",value:function(){window.__googleMapsCallback=this.callback.bind(this)}},{key:"callback",value:function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]}},{key:"execute",value:function(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}])&&e(n.prototype,o),i&&e(n,i),r}();return t.DEFAULT_ID=Cs,t.Loader=xs,Object.defineProperty(t,"__esModule",{value:!0}),t}({}); |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).google=t.google||{},t.google.maps=t.google.maps||{},t.google.maps.plugins=t.google.maps.plugins||{},t.google.maps.plugins.loader={}))}(this,(function(t){"use strict";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||function(){return this}()||Function("return this")(),i={},c=function(t){try{return!!t()}catch(t){return!0}},a=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=u,f=Function.prototype.call,l=s?f.bind(f):function(){return f.apply(f,arguments)},h={},p={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,v=d&&!p.call({1:2},1);h.f=v?function(t){var e=d(this,t);return!!e&&e.enumerable}:p;var g,y,b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=u,w=Function.prototype,S=w.bind,j=w.call,O=m&&S.bind(j,j),E=m?function(t){return t&&O(t)}:function(t){return t&&function(){return j.apply(t,arguments)}},L=E,T=L({}.toString),k=L("".slice),I=function(t){return k(T(t),8,-1)},P=E,x=c,A=I,C=o.Object,M=P("".split),F=x((function(){return!C("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?M(t,""):C(t)}:C,_=o.TypeError,D=function(t){if(null==t)throw _("Can't call method on "+t);return t},R=F,N=D,G=function(t){return R(N(t))},U=function(t){return"function"==typeof t},B=U,K=function(t){return"object"==typeof t?null!==t:B(t)},z=o,V=U,H=function(t){return V(t)?t:void 0},J=function(t,e){return arguments.length<2?H(z[t]):z[t]&&z[t][e]},q=E({}.isPrototypeOf),W=J("navigator","userAgent")||"",Z=o,$=W,X=Z.process,Y=Z.Deno,Q=X&&X.versions||Y&&Y.version,tt=Q&&Q.v8;tt&&(y=(g=tt.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!y&&$&&(!(g=$.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=$.match(/Chrome\/(\d+)/))&&(y=+g[1]);var et=y,nt=et,rt=c,ot=!!Object.getOwnPropertySymbols&&!rt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),it=ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ct=J,at=U,ut=q,st=it,ft=o.Object,lt=st?function(t){return"symbol"==typeof t}:function(t){var e=ct("Symbol");return at(e)&&ut(e.prototype,ft(t))},ht=o.String,pt=function(t){try{return ht(t)}catch(t){return"Object"}},dt=U,vt=pt,gt=o.TypeError,yt=function(t){if(dt(t))return t;throw gt(vt(t)+" is not a function")},bt=yt,mt=function(t,e){var n=t[e];return null==n?void 0:bt(n)},wt=l,St=U,jt=K,Ot=o.TypeError,Et={exports:{}},Lt=o,Tt=Object.defineProperty,kt=function(t,e){try{Tt(Lt,t,{value:e,configurable:!0,writable:!0})}catch(n){Lt[t]=e}return e},It=kt,Pt="__core-js_shared__",xt=o[Pt]||It(Pt,{}),At=xt;(Et.exports=function(t,e){return At[t]||(At[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ct=D,Mt=o.Object,Ft=function(t){return Mt(Ct(t))},_t=Ft,Dt=E({}.hasOwnProperty),Rt=Object.hasOwn||function(t,e){return Dt(_t(t),e)},Nt=E,Gt=0,Ut=Math.random(),Bt=Nt(1..toString),Kt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Bt(++Gt+Ut,36)},zt=o,Vt=Et.exports,Ht=Rt,Jt=Kt,qt=ot,Wt=it,Zt=Vt("wks"),$t=zt.Symbol,Xt=$t&&$t.for,Yt=Wt?$t:$t&&$t.withoutSetter||Jt,Qt=function(t){if(!Ht(Zt,t)||!qt&&"string"!=typeof Zt[t]){var e="Symbol."+t;qt&&Ht($t,t)?Zt[t]=$t[t]:Zt[t]=Wt&&Xt?Xt(e):Yt(e)}return Zt[t]},te=l,ee=K,ne=lt,re=mt,oe=function(t,e){var n,r;if("string"===e&&St(n=t.toString)&&!jt(r=wt(n,t)))return r;if(St(n=t.valueOf)&&!jt(r=wt(n,t)))return r;if("string"!==e&&St(n=t.toString)&&!jt(r=wt(n,t)))return r;throw Ot("Can't convert object to primitive value")},ie=Qt,ce=o.TypeError,ae=ie("toPrimitive"),ue=function(t,e){if(!ee(t)||ne(t))return t;var n,r=re(t,ae);if(r){if(void 0===e&&(e="default"),n=te(r,t,e),!ee(n)||ne(n))return n;throw ce("Can't convert object to primitive value")}return void 0===e&&(e="number"),oe(t,e)},se=lt,fe=function(t){var e=ue(t,"string");return se(e)?e:e+""},le=K,he=o.document,pe=le(he)&&le(he.createElement),de=function(t){return pe?he.createElement(t):{}},ve=de,ge=!a&&!c((function(){return 7!=Object.defineProperty(ve("div"),"a",{get:function(){return 7}}).a})),ye=a,be=l,me=h,we=b,Se=G,je=fe,Oe=Rt,Ee=ge,Le=Object.getOwnPropertyDescriptor;i.f=ye?Le:function(t,e){if(t=Se(t),e=je(e),Ee)try{return Le(t,e)}catch(t){}if(Oe(t,e))return we(!be(me.f,t,e),t[e])};var Te={},ke=a&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ie=o,Pe=K,xe=Ie.String,Ae=Ie.TypeError,Ce=function(t){if(Pe(t))return t;throw Ae(xe(t)+" is not an object")},Me=a,Fe=ge,_e=ke,De=Ce,Re=fe,Ne=o.TypeError,Ge=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Be="enumerable",Ke="configurable",ze="writable";Te.f=Me?_e?function(t,e,n){if(De(t),e=Re(e),De(n),"function"==typeof t&&"prototype"===e&&"value"in n&&ze in n&&!n.writable){var r=Ue(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:Ke in n?n.configurable:r.configurable,enumerable:Be in n?n.enumerable:r.enumerable,writable:!1})}return Ge(t,e,n)}:Ge:function(t,e,n){if(De(t),e=Re(e),De(n),Fe)try{return Ge(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ne("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ve=Te,He=b,Je=a?function(t,e,n){return Ve.f(t,e,He(1,n))}:function(t,e,n){return t[e]=n,t},qe={exports:{}},We=U,Ze=xt,$e=E(Function.toString);We(Ze.inspectSource)||(Ze.inspectSource=function(t){return $e(t)});var Xe,Ye,Qe,tn=Ze.inspectSource,en=U,nn=tn,rn=o.WeakMap,on=en(rn)&&/native code/.test(nn(rn)),cn=Et.exports,an=Kt,un=cn("keys"),sn={},fn=on,ln=o,hn=E,pn=K,dn=Je,vn=Rt,gn=xt,yn=function(t){return un[t]||(un[t]=an(t))},bn=sn,mn="Object already initialized",wn=ln.TypeError,Sn=ln.WeakMap;if(fn||gn.state){var jn=gn.state||(gn.state=new Sn),On=hn(jn.get),En=hn(jn.has),Ln=hn(jn.set);Xe=function(t,e){if(En(jn,t))throw new wn(mn);return e.facade=t,Ln(jn,t,e),e},Ye=function(t){return On(jn,t)||{}},Qe=function(t){return En(jn,t)}}else{var Tn=yn("state");bn[Tn]=!0,Xe=function(t,e){if(vn(t,Tn))throw new wn(mn);return e.facade=t,dn(t,Tn,e),e},Ye=function(t){return vn(t,Tn)?t[Tn]:{}},Qe=function(t){return vn(t,Tn)}}var kn={set:Xe,get:Ye,has:Qe,enforce:function(t){return Qe(t)?Ye(t):Xe(t,{})},getterFor:function(t){return function(e){var n;if(!pn(e)||(n=Ye(e)).type!==t)throw wn("Incompatible receiver, "+t+" required");return n}}},In=a,Pn=Rt,xn=Function.prototype,An=In&&Object.getOwnPropertyDescriptor,Cn=Pn(xn,"name"),Mn=Cn&&"something"===function(){}.name,Fn=Cn&&(!In||In&&An(xn,"name").configurable),_n=o,Dn=U,Rn=Rt,Nn=Je,Gn=kt,Un=tn,Bn={EXISTS:Cn,PROPER:Mn,CONFIGURABLE:Fn}.CONFIGURABLE,Kn=kn.get,zn=kn.enforce,Vn=String(String).split("String");(qe.exports=function(t,e,n,r){var o,i=!!r&&!!r.unsafe,c=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet,u=r&&void 0!==r.name?r.name:e;Dn(n)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Rn(n,"name")||Bn&&n.name!==u)&&Nn(n,"name",u),(o=zn(n)).source||(o.source=Vn.join("string"==typeof u?u:""))),t!==_n?(i?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=n:Nn(t,e,n)):c?t[e]=n:Gn(e,n)})(Function.prototype,"toString",(function(){return Dn(this)&&Kn(this).source||Un(this)}));var Hn={},Jn=Math.ceil,qn=Math.floor,Wn=function(t){var e=+t;return e!=e||0===e?0:(e>0?qn:Jn)(e)},Zn=Wn,$n=Math.max,Xn=Math.min,Yn=Wn,Qn=Math.min,tr=function(t){return t>0?Qn(Yn(t),9007199254740991):0},er=function(t){return tr(t.length)},nr=G,rr=function(t,e){var n=Zn(t);return n<0?$n(n+e,0):Xn(n,e)},or=er,ir=function(t){return function(e,n,r){var o,i=nr(e),c=or(i),a=rr(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},cr={includes:ir(!0),indexOf:ir(!1)},ar=Rt,ur=G,sr=cr.indexOf,fr=sn,lr=E([].push),hr=function(t,e){var n,r=ur(t),o=0,i=[];for(n in r)!ar(fr,n)&&ar(r,n)&&lr(i,n);for(;e.length>o;)ar(r,n=e[o++])&&(~sr(i,n)||lr(i,n));return i},pr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Hn.f=Object.getOwnPropertyNames||function(t){return hr(t,pr)};var dr={};dr.f=Object.getOwnPropertySymbols;var vr=J,gr=Hn,yr=dr,br=Ce,mr=E([].concat),wr=vr("Reflect","ownKeys")||function(t){var e=gr.f(br(t)),n=yr.f;return n?mr(e,n(t)):e},Sr=Rt,jr=wr,Or=i,Er=Te,Lr=c,Tr=U,kr=/#|\.prototype\./,Ir=function(t,e){var n=xr[Pr(t)];return n==Cr||n!=Ar&&(Tr(e)?Lr(e):!!e)},Pr=Ir.normalize=function(t){return String(t).replace(kr,".").toLowerCase()},xr=Ir.data={},Ar=Ir.NATIVE="N",Cr=Ir.POLYFILL="P",Mr=Ir,Fr=o,_r=i.f,Dr=Je,Rr=qe.exports,Nr=kt,Gr=function(t,e,n){for(var r=jr(e),o=Er.f,i=Or.f,c=0;c<r.length;c++){var a=r[c];Sr(t,a)||n&&Sr(n,a)||o(t,a,i(e,a))}},Ur=Mr,Br=function(t,e){var n,r,o,i,c,a=t.target,u=t.global,s=t.stat;if(n=u?Fr:s?Fr[a]||Nr(a,{}):(Fr[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=_r(n,r))&&c.value:n[r],!Ur(u?r:a+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Gr(i,o)}(t.sham||o&&o.sham)&&Dr(i,"sham",!0),Rr(n,r,i,t)}},Kr=I,zr=Array.isArray||function(t){return"Array"==Kr(t)},Vr=fe,Hr=Te,Jr=b,qr={};qr[Qt("toStringTag")]="z";var Wr="[object z]"===String(qr),Zr=o,$r=Wr,Xr=U,Yr=I,Qr=Qt("toStringTag"),to=Zr.Object,eo="Arguments"==Yr(function(){return arguments}()),no=$r?Yr:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=to(t),Qr))?n:eo?Yr(e):"Object"==(r=Yr(e))&&Xr(e.callee)?"Arguments":r},ro=E,oo=c,io=U,co=no,ao=tn,uo=function(){},so=[],fo=J("Reflect","construct"),lo=/^\s*(?:class|function)\b/,ho=ro(lo.exec),po=!lo.exec(uo),vo=function(t){if(!io(t))return!1;try{return fo(uo,so,t),!0}catch(t){return!1}},go=function(t){if(!io(t))return!1;switch(co(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return po||!!ho(lo,ao(t))}catch(t){return!0}};go.sham=!0;var yo=!fo||oo((function(){var t;return vo(vo.call)||!vo(Object)||!vo((function(){t=!0}))||t}))?go:vo,bo=o,mo=zr,wo=yo,So=K,jo=Qt("species"),Oo=bo.Array,Eo=function(t){var e;return mo(t)&&(e=t.constructor,(wo(e)&&(e===Oo||mo(e.prototype))||So(e)&&null===(e=e[jo]))&&(e=void 0)),void 0===e?Oo:e},Lo=function(t,e){return new(Eo(t))(0===e?0:e)},To=c,ko=et,Io=Qt("species"),Po=Br,xo=o,Ao=c,Co=zr,Mo=K,Fo=Ft,_o=er,Do=function(t,e,n){var r=Vr(e);r in t?Hr.f(t,r,Jr(0,n)):t[r]=n},Ro=Lo,No=function(t){return ko>=51||!To((function(){var e=[];return(e.constructor={})[Io]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Go=et,Uo=Qt("isConcatSpreadable"),Bo=9007199254740991,Ko="Maximum allowed index exceeded",zo=xo.TypeError,Vo=Go>=51||!Ao((function(){var t=[];return t[Uo]=!1,t.concat()[0]!==t})),Ho=No("concat"),Jo=function(t){if(!Mo(t))return!1;var e=t[Uo];return void 0!==e?!!e:Co(t)};Po({target:"Array",proto:!0,forced:!Vo||!Ho},{concat:function(t){var e,n,r,o,i,c=Fo(this),a=Ro(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Jo(i=-1===e?c:arguments[e])){if(u+(o=_o(i))>Bo)throw zo(Ko);for(n=0;n<o;n++,u++)n in i&&Do(a,u,i[n])}else{if(u>=Bo)throw zo(Ko);Do(a,u++,i)}return a.length=u,a}});var qo=u,Wo=Function.prototype,Zo=Wo.apply,$o=Wo.call,Xo="object"==typeof Reflect&&Reflect.apply||(qo?$o.bind(Zo):function(){return $o.apply(Zo,arguments)}),Yo=Br,Qo=J,ti=Xo,ei=E,ni=c,ri=o.Array,oi=Qo("JSON","stringify"),ii=ei(/./.exec),ci=ei("".charAt),ai=ei("".charCodeAt),ui=ei("".replace),si=ei(1..toString),fi=/[\uD800-\uDFFF]/g,li=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,pi=function(t,e,n){var r=ci(n,e-1),o=ci(n,e+1);return ii(li,t)&&!ii(hi,o)||ii(hi,t)&&!ii(li,r)?"\\u"+si(ai(t,0),16):t},di=ni((function(){return'"\\udf06\\ud834"'!==oi("\udf06\ud834")||'"\\udead"'!==oi("\udead")}));oi&&Yo({target:"JSON",stat:!0,forced:di},{stringify:function(t,e,n){for(var r=0,o=arguments.length,i=ri(o);r<o;r++)i[r]=arguments[r];var c=ti(oi,null,i);return"string"==typeof c?ui(c,fi,pi):c}});var vi=c,gi=function(t,e){var n=[][t];return!!n&&vi((function(){n.call(null,e||function(){return 1},1)}))},yi=Br,bi=F,mi=G,wi=gi,Si=E([].join),ji=bi!=Object,Oi=wi("join",",");yi({target:"Array",proto:!0,forced:ji||!Oi},{join:function(t){return Si(mi(this),void 0===t?",":t)}});var Ei=no,Li=Wr?{}.toString:function(){return"[object "+Ei(this)+"]"},Ti=Wr,ki=qe.exports,Ii=Li;Ti||ki(Object.prototype,"toString",Ii,{unsafe:!0});var Pi=o.Promise,xi=qe.exports,Ai=o,Ci=U,Mi=Ai.String,Fi=Ai.TypeError,_i=E,Di=Ce,Ri=function(t){if("object"==typeof t||Ci(t))return t;throw Fi("Can't set "+Mi(t)+" as a prototype")},Ni=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=_i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Di(n),Ri(r),e?t(n,r):n.__proto__=r,n}}():void 0),Gi=Te.f,Ui=Rt,Bi=Qt("toStringTag"),Ki=J,zi=Te,Vi=a,Hi=Qt("species"),Ji=q,qi=o.TypeError,Wi=yt,Zi=u,$i=E(E.bind),Xi=function(t,e){return Wi(t),void 0===e?t:Zi?$i(t,e):function(){return t.apply(e,arguments)}},Yi={},Qi=Yi,tc=Qt("iterator"),ec=Array.prototype,nc=no,rc=mt,oc=Yi,ic=Qt("iterator"),cc=function(t){if(null!=t)return rc(t,ic)||rc(t,"@@iterator")||oc[nc(t)]},ac=l,uc=yt,sc=Ce,fc=pt,lc=cc,hc=o.TypeError,pc=l,dc=Ce,vc=mt,gc=Xi,yc=l,bc=Ce,mc=pt,wc=function(t){return void 0!==t&&(Qi.Array===t||ec[tc]===t)},Sc=er,jc=q,Oc=function(t,e){var n=arguments.length<2?lc(t):e;if(uc(n))return sc(ac(n,t));throw hc(fc(t)+" is not iterable")},Ec=cc,Lc=function(t,e,n){var r,o;dc(t);try{if(!(r=vc(t,"return"))){if("throw"===e)throw n;return n}r=pc(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return dc(r),n},Tc=o.TypeError,kc=function(t,e){this.stopped=t,this.result=e},Ic=kc.prototype,Pc=Qt("iterator"),xc=!1;try{var Ac=0,Cc={next:function(){return{done:!!Ac++}},return:function(){xc=!0}};Cc[Pc]=function(){return this},Array.from(Cc,(function(){throw 2}))}catch(t){}var Mc,Fc,_c,Dc,Rc=yo,Nc=pt,Gc=o.TypeError,Uc=Ce,Bc=function(t){if(Rc(t))return t;throw Gc(Nc(t)+" is not a constructor")},Kc=Qt("species"),zc=J("document","documentElement"),Vc=E([].slice),Hc=o.TypeError,Jc=/(?:ipad|iphone|ipod).*applewebkit/i.test(W),qc="process"==I(o.process),Wc=o,Zc=Xo,$c=Xi,Xc=U,Yc=Rt,Qc=c,ta=zc,ea=Vc,na=de,ra=function(t,e){if(t<e)throw Hc("Not enough arguments");return t},oa=Jc,ia=qc,ca=Wc.setImmediate,aa=Wc.clearImmediate,ua=Wc.process,sa=Wc.Dispatch,fa=Wc.Function,la=Wc.MessageChannel,ha=Wc.String,pa=0,da={},va="onreadystatechange";try{Mc=Wc.location}catch(t){}var ga=function(t){if(Yc(da,t)){var e=da[t];delete da[t],e()}},ya=function(t){return function(){ga(t)}},ba=function(t){ga(t.data)},ma=function(t){Wc.postMessage(ha(t),Mc.protocol+"//"+Mc.host)};ca&&aa||(ca=function(t){ra(arguments.length,1);var e=Xc(t)?t:fa(t),n=ea(arguments,1);return da[++pa]=function(){Zc(e,void 0,n)},Fc(pa),pa},aa=function(t){delete da[t]},ia?Fc=function(t){ua.nextTick(ya(t))}:sa&&sa.now?Fc=function(t){sa.now(ya(t))}:la&&!oa?(Dc=(_c=new la).port2,_c.port1.onmessage=ba,Fc=$c(Dc.postMessage,Dc)):Wc.addEventListener&&Xc(Wc.postMessage)&&!Wc.importScripts&&Mc&&"file:"!==Mc.protocol&&!Qc(ma)?(Fc=ma,Wc.addEventListener("message",ba,!1)):Fc=va in na("script")?function(t){ta.appendChild(na("script")).onreadystatechange=function(){ta.removeChild(this),ga(t)}}:function(t){setTimeout(ya(t),0)});var wa,Sa,ja,Oa,Ea,La,Ta,ka,Ia={set:ca,clear:aa},Pa=o,xa=/ipad|iphone|ipod/i.test(W)&&void 0!==Pa.Pebble,Aa=/web0s(?!.*chrome)/i.test(W),Ca=o,Ma=Xi,Fa=i.f,_a=Ia.set,Da=Jc,Ra=xa,Na=Aa,Ga=qc,Ua=Ca.MutationObserver||Ca.WebKitMutationObserver,Ba=Ca.document,Ka=Ca.process,za=Ca.Promise,Va=Fa(Ca,"queueMicrotask"),Ha=Va&&Va.value;Ha||(wa=function(){var t,e;for(Ga&&(t=Ka.domain)&&t.exit();Sa;){e=Sa.fn,Sa=Sa.next;try{e()}catch(t){throw Sa?Oa():ja=void 0,t}}ja=void 0,t&&t.enter()},Da||Ga||Na||!Ua||!Ba?!Ra&&za&&za.resolve?((Ta=za.resolve(void 0)).constructor=za,ka=Ma(Ta.then,Ta),Oa=function(){ka(wa)}):Ga?Oa=function(){Ka.nextTick(wa)}:(_a=Ma(_a,Ca),Oa=function(){_a(wa)}):(Ea=!0,La=Ba.createTextNode(""),new Ua(wa).observe(La,{characterData:!0}),Oa=function(){La.data=Ea=!Ea}));var Ja=Ha||function(t){var e={fn:t,next:void 0};ja&&(ja.next=e),Sa||(Sa=e,Oa()),ja=e},qa={},Wa=yt,Za=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=Wa(e),this.reject=Wa(n)};qa.f=function(t){return new Za(t)};var $a=Ce,Xa=K,Ya=qa,Qa=o,tu=function(){this.head=null,this.tail=null};tu.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var eu,nu,ru,ou,iu=tu,cu="object"==typeof window,au=Br,uu=o,su=J,fu=l,lu=Pi,hu=qe.exports,pu=function(t,e,n){for(var r in e)xi(t,r,e[r],n);return t},du=Ni,vu=function(t,e,n){t&&!n&&(t=t.prototype),t&&!Ui(t,Bi)&&Gi(t,Bi,{configurable:!0,value:e})},gu=function(t){var e=Ki(t),n=zi.f;Vi&&e&&!e[Hi]&&n(e,Hi,{configurable:!0,get:function(){return this}})},yu=yt,bu=U,mu=K,wu=function(t,e){if(Ji(e,t))return t;throw qi("Incorrect invocation")},Su=tn,ju=function(t,e,n){var r,o,i,c,a,u,s,f=n&&n.that,l=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),d=gc(e,f),v=function(t){return r&&Lc(r,"normal",t),new kc(!0,t)},g=function(t){return l?(bc(t),p?d(t[0],t[1],v):d(t[0],t[1])):p?d(t,v):d(t)};if(h)r=t;else{if(!(o=Ec(t)))throw Tc(mc(t)+" is not iterable");if(wc(o)){for(i=0,c=Sc(t);c>i;i++)if((a=g(t[i]))&&jc(Ic,a))return a;return new kc(!1)}r=Oc(t,o)}for(u=r.next;!(s=yc(u,r)).done;){try{a=g(s.value)}catch(t){Lc(r,"throw",t)}if("object"==typeof a&&a&&jc(Ic,a))return a}return new kc(!1)},Ou=function(t,e){if(!e&&!xc)return!1;var n=!1;try{var r={};r[Pc]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Eu=function(t,e){var n,r=Uc(t).constructor;return void 0===r||null==(n=Uc(r)[Kc])?e:Bc(n)},Lu=Ia.set,Tu=Ja,ku=function(t,e){if($a(t),Xa(e)&&e.constructor===t)return e;var n=Ya.f(t);return(0,n.resolve)(e),n.promise},Iu=function(t,e){var n=Qa.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))},Pu=qa,xu=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Au=iu,Cu=kn,Mu=Mr,Fu=cu,_u=qc,Du=et,Ru=Qt("species"),Nu="Promise",Gu=Cu.getterFor(Nu),Uu=Cu.set,Bu=Cu.getterFor(Nu),Ku=lu&&lu.prototype,zu=lu,Vu=Ku,Hu=uu.TypeError,Ju=uu.document,qu=uu.process,Wu=Pu.f,Zu=Wu,$u=!!(Ju&&Ju.createEvent&&uu.dispatchEvent),Xu=bu(uu.PromiseRejectionEvent),Yu="unhandledrejection",Qu=!1,ts=Mu(Nu,(function(){var t=Su(zu),e=t!==String(zu);if(!e&&66===Du)return!0;if(Du>=51&&/native code/.test(t))return!1;var n=new zu((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[Ru]=r,!(Qu=n.then((function(){}))instanceof r)||!e&&Fu&&!Xu})),es=ts||!Ou((function(t){zu.all(t).catch((function(){}))})),ns=function(t){var e;return!(!mu(t)||!bu(e=t.then))&&e},rs=function(t,e){var n,r,o,i=e.value,c=1==e.state,a=c?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{a?(c||(2===e.rejection&&us(e),e.rejection=1),!0===a?n=i:(f&&f.enter(),n=a(i),f&&(f.exit(),o=!0)),n===t.promise?s(Hu("Promise-chain cycle")):(r=ns(n))?fu(r,n,u,s):u(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},os=function(t,e){t.notified||(t.notified=!0,Tu((function(){for(var n,r=t.reactions;n=r.get();)rs(n,t);t.notified=!1,e&&!t.rejection&&cs(t)})))},is=function(t,e,n){var r,o;$u?((r=Ju.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),uu.dispatchEvent(r)):r={promise:e,reason:n},!Xu&&(o=uu["on"+t])?o(r):t===Yu&&Iu("Unhandled promise rejection",n)},cs=function(t){fu(Lu,uu,(function(){var e,n=t.facade,r=t.value;if(as(t)&&(e=xu((function(){_u?qu.emit("unhandledRejection",r,n):is(Yu,n,r)})),t.rejection=_u||as(t)?2:1,e.error))throw e.value}))},as=function(t){return 1!==t.rejection&&!t.parent},us=function(t){fu(Lu,uu,(function(){var e=t.facade;_u?qu.emit("rejectionHandled",e):is("rejectionhandled",e,t.value)}))},ss=function(t,e,n){return function(r){t(e,r,n)}},fs=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,os(t,!0))},ls=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Hu("Promise can't be resolved itself");var r=ns(e);r?Tu((function(){var n={done:!1};try{fu(r,e,ss(ls,n,t),ss(fs,n,t))}catch(e){fs(n,e,t)}})):(t.value=e,t.state=1,os(t,!1))}catch(e){fs({done:!1},e,t)}}};if(ts&&(Vu=(zu=function(t){wu(this,Vu),yu(t),fu(eu,this);var e=Gu(this);try{t(ss(ls,e),ss(fs,e))}catch(t){fs(e,t)}}).prototype,(eu=function(t){Uu(this,{type:Nu,done:!1,notified:!1,parent:!1,reactions:new Au,rejection:!1,state:0,value:void 0})}).prototype=pu(Vu,{then:function(t,e){var n=Bu(this),r=Wu(Eu(this,zu));return n.parent=!0,r.ok=!bu(t)||t,r.fail=bu(e)&&e,r.domain=_u?qu.domain:void 0,0==n.state?n.reactions.add(r):Tu((function(){rs(r,n)})),r.promise},catch:function(t){return this.then(void 0,t)}}),nu=function(){var t=new eu,e=Gu(t);this.promise=t,this.resolve=ss(ls,e),this.reject=ss(fs,e)},Pu.f=Wu=function(t){return t===zu||t===ru?new nu(t):Zu(t)},bu(lu)&&Ku!==Object.prototype)){ou=Ku.then,Qu||(hu(Ku,"then",(function(t,e){var n=this;return new zu((function(t,e){fu(ou,n,t,e)})).then(t,e)}),{unsafe:!0}),hu(Ku,"catch",Vu.catch,{unsafe:!0}));try{delete Ku.constructor}catch(t){}du&&du(Ku,Vu)}au({global:!0,wrap:!0,forced:ts},{Promise:zu}),vu(zu,Nu,!1),gu(Nu),ru=su(Nu),au({target:Nu,stat:!0,forced:ts},{reject:function(t){var e=Wu(this);return fu(e.reject,void 0,t),e.promise}}),au({target:Nu,stat:!0,forced:ts},{resolve:function(t){return ku(this,t)}}),au({target:Nu,stat:!0,forced:es},{all:function(t){var e=this,n=Wu(e),r=n.resolve,o=n.reject,i=xu((function(){var n=yu(e.resolve),i=[],c=0,a=1;ju(t,(function(t){var u=c++,s=!1;a++,fu(n,e,t).then((function(t){s||(s=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Wu(e),r=n.reject,o=xu((function(){var o=yu(e.resolve);ju(t,(function(t){fu(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var hs=de("span").classList,ps=hs&&hs.constructor&&hs.constructor.prototype,ds=ps===Object.prototype?void 0:ps,vs=Xi,gs=F,ys=Ft,bs=er,ms=Lo,ws=E([].push),Ss=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,s,f,l){for(var h,p,d=ys(u),v=gs(d),g=vs(s,f),y=bs(v),b=0,m=l||ms,w=e?m(u,y):n||c?m(u,0):void 0;y>b;b++)if((a||b in v)&&(p=g(h=v[b],b,d),t))if(e)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return b;case 2:ws(w,h)}else switch(t){case 4:return!1;case 7:ws(w,h)}return i?-1:r||o?o:w}},js={forEach:Ss(0),map:Ss(1),filter:Ss(2),some:Ss(3),every:Ss(4),find:Ss(5),findIndex:Ss(6),filterReject:Ss(7)}.forEach,Os=o,Es={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ls=ds,Ts=gi("forEach")?[].forEach:function(t){return js(this,t,arguments.length>1?arguments[1]:void 0)},ks=Je,Is=function(t){if(t&&t.forEach!==Ts)try{ks(t,"forEach",Ts)}catch(e){t.forEach=Ts}};for(var Ps in Es)Es[Ps]&&Is(Os[Ps]&&Os[Ps].prototype);Is(Ls);var xs,As="__googleMapsScriptId";t.LoaderStatus=void 0,(xs=t.LoaderStatus||(t.LoaderStatus={}))[xs.INITIALIZED=0]="INITIALIZED",xs[xs.LOADING=1]="LOADING",xs[xs.SUCCESS=2]="SUCCESS",xs[xs.FAILURE=3]="FAILURE";var Cs=function(){function n(t){var e=t.apiKey,r=t.channel,o=t.client,i=t.id,c=void 0===i?As:i,a=t.libraries,u=void 0===a?[]:a,s=t.language,f=t.region,l=t.version,h=t.mapIds,p=t.nonce,d=t.retries,v=void 0===d?3:d,g=t.url,y=void 0===g?"https://maps.googleapis.com/maps/api/js":g;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=l,this.apiKey=e,this.channel=r,this.client=o,this.id=c||As,this.libraries=u,this.language=s,this.region=f,this.mapIds=h,this.nonce=p,this.retries=v,this.url=y,n.instance){if(!function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var c=i[o];if(!t(e[c],n[c]))return!1}return!0}return e!=e&&n!=n}(this.options,n.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(n.instance.options)));return n.instance}n.instance=this}var r,o,i;return r=n,(o=[{key:"options",get:function(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}},{key:"status",get:function(){return this.errors.length?t.LoaderStatus.FAILURE:this.done?t.LoaderStatus.SUCCESS:this.loading?t.LoaderStatus.LOADING:t.LoaderStatus.INITIALIZED}},{key:"failed",get:function(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}},{key:"createUrl",value:function(){var t=this.url;return t+="?callback=".concat(this.CALLBACK),this.apiKey&&(t+="&key=".concat(this.apiKey)),this.channel&&(t+="&channel=".concat(this.channel)),this.client&&(t+="&client=".concat(this.client)),this.libraries.length>0&&(t+="&libraries=".concat(this.libraries.join(","))),this.language&&(t+="&language=".concat(this.language)),this.region&&(t+="®ion=".concat(this.region)),this.version&&(t+="&v=".concat(this.version)),this.mapIds&&(t+="&map_ids=".concat(this.mapIds.join(","))),t}},{key:"deleteScript",value:function(){var t=document.getElementById(this.id);t&&t.remove()}},{key:"load",value:function(){return this.loadPromise()}},{key:"loadPromise",value:function(){var t=this;return new Promise((function(e,n){t.loadCallback((function(t){t?n(t.error):e(window.google)}))}))}},{key:"loadCallback",value:function(t){this.callbacks.push(t),this.execute()}},{key:"setScript",value:function(){if(document.getElementById(this.id))this.callback();else{var t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}}},{key:"reset",value:function(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}},{key:"resetIfRetryingFailed",value:function(){this.failed&&this.reset()}},{key:"loadErrorCallback",value:function(t){var e=this;if(this.errors.push(t),this.errors.length<=this.retries){var n=this.errors.length*Math.pow(2,this.errors.length);console.log("Failed to load Google Maps script, retrying in ".concat(n," ms.")),setTimeout((function(){e.deleteScript(),e.setScript()}),n)}else this.onerrorEvent=t,this.callback()}},{key:"setCallback",value:function(){window.__googleMapsCallback=this.callback.bind(this)}},{key:"callback",value:function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]}},{key:"execute",value:function(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}])&&e(r.prototype,o),i&&e(r,i),n}();t.DEFAULT_ID=As,t.Loader=Cs,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).google=t.google||{},t.google.maps=t.google.maps||{},t.google.maps.plugins=t.google.maps.plugins||{},t.google.maps.plugins.loader={}))}(this,(function(t){"use strict";function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r&&r)||function(){return this}()||Function("return this")(),i={},c=function(t){try{return!!t()}catch(t){return!0}},a=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=u,f=Function.prototype.call,l=s?f.bind(f):function(){return f.apply(f,arguments)},h={},p={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,v=d&&!p.call({1:2},1);h.f=v?function(t){var e=d(this,t);return!!e&&e.enumerable}:p;var g,y,b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=u,w=Function.prototype,S=w.bind,j=w.call,O=m&&S.bind(j,j),E=m?function(t){return t&&O(t)}:function(t){return t&&function(){return j.apply(t,arguments)}},L=E,T=L({}.toString),k=L("".slice),P=function(t){return k(T(t),8,-1)},I=E,x=c,A=P,C=o.Object,M=I("".split),F=x((function(){return!C("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?M(t,""):C(t)}:C,R=o.TypeError,_=function(t){if(null==t)throw R("Can't call method on "+t);return t},D=F,N=_,G=function(t){return D(N(t))},U=function(t){return"function"==typeof t},B=U,K=function(t){return"object"==typeof t?null!==t:B(t)},z=o,V=U,H=function(t){return V(t)?t:void 0},J=function(t,e){return arguments.length<2?H(z[t]):z[t]&&z[t][e]},q=E({}.isPrototypeOf),W=J("navigator","userAgent")||"",Z=o,$=W,X=Z.process,Y=Z.Deno,Q=X&&X.versions||Y&&Y.version,tt=Q&&Q.v8;tt&&(y=(g=tt.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!y&&$&&(!(g=$.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=$.match(/Chrome\/(\d+)/))&&(y=+g[1]);var et=y,rt=et,nt=c,ot=!!Object.getOwnPropertySymbols&&!nt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),it=ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ct=J,at=U,ut=q,st=it,ft=o.Object,lt=st?function(t){return"symbol"==typeof t}:function(t){var e=ct("Symbol");return at(e)&&ut(e.prototype,ft(t))},ht=o.String,pt=function(t){try{return ht(t)}catch(t){return"Object"}},dt=U,vt=pt,gt=o.TypeError,yt=function(t){if(dt(t))return t;throw gt(vt(t)+" is not a function")},bt=yt,mt=function(t,e){var r=t[e];return null==r?void 0:bt(r)},wt=l,St=U,jt=K,Ot=o.TypeError,Et={exports:{}},Lt=o,Tt=Object.defineProperty,kt=function(t,e){try{Tt(Lt,t,{value:e,configurable:!0,writable:!0})}catch(r){Lt[t]=e}return e},Pt=kt,It="__core-js_shared__",xt=o[It]||Pt(It,{}),At=xt;(Et.exports=function(t,e){return At[t]||(At[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ct=_,Mt=o.Object,Ft=function(t){return Mt(Ct(t))},Rt=Ft,_t=E({}.hasOwnProperty),Dt=Object.hasOwn||function(t,e){return _t(Rt(t),e)},Nt=E,Gt=0,Ut=Math.random(),Bt=Nt(1..toString),Kt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Bt(++Gt+Ut,36)},zt=o,Vt=Et.exports,Ht=Dt,Jt=Kt,qt=ot,Wt=it,Zt=Vt("wks"),$t=zt.Symbol,Xt=$t&&$t.for,Yt=Wt?$t:$t&&$t.withoutSetter||Jt,Qt=function(t){if(!Ht(Zt,t)||!qt&&"string"!=typeof Zt[t]){var e="Symbol."+t;qt&&Ht($t,t)?Zt[t]=$t[t]:Zt[t]=Wt&&Xt?Xt(e):Yt(e)}return Zt[t]},te=l,ee=K,re=lt,ne=mt,oe=function(t,e){var r,n;if("string"===e&&St(r=t.toString)&&!jt(n=wt(r,t)))return n;if(St(r=t.valueOf)&&!jt(n=wt(r,t)))return n;if("string"!==e&&St(r=t.toString)&&!jt(n=wt(r,t)))return n;throw Ot("Can't convert object to primitive value")},ie=Qt,ce=o.TypeError,ae=ie("toPrimitive"),ue=function(t,e){if(!ee(t)||re(t))return t;var r,n=ne(t,ae);if(n){if(void 0===e&&(e="default"),r=te(n,t,e),!ee(r)||re(r))return r;throw ce("Can't convert object to primitive value")}return void 0===e&&(e="number"),oe(t,e)},se=lt,fe=function(t){var e=ue(t,"string");return se(e)?e:e+""},le=K,he=o.document,pe=le(he)&&le(he.createElement),de=function(t){return pe?he.createElement(t):{}},ve=de,ge=!a&&!c((function(){return 7!=Object.defineProperty(ve("div"),"a",{get:function(){return 7}}).a})),ye=a,be=l,me=h,we=b,Se=G,je=fe,Oe=Dt,Ee=ge,Le=Object.getOwnPropertyDescriptor;i.f=ye?Le:function(t,e){if(t=Se(t),e=je(e),Ee)try{return Le(t,e)}catch(t){}if(Oe(t,e))return we(!be(me.f,t,e),t[e])};var Te={},ke=a&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pe=o,Ie=K,xe=Pe.String,Ae=Pe.TypeError,Ce=function(t){if(Ie(t))return t;throw Ae(xe(t)+" is not an object")},Me=a,Fe=ge,Re=ke,_e=Ce,De=fe,Ne=o.TypeError,Ge=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Be="enumerable",Ke="configurable",ze="writable";Te.f=Me?Re?function(t,e,r){if(_e(t),e=De(e),_e(r),"function"==typeof t&&"prototype"===e&&"value"in r&&ze in r&&!r.writable){var n=Ue(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:Ke in r?r.configurable:n.configurable,enumerable:Be in r?r.enumerable:n.enumerable,writable:!1})}return Ge(t,e,r)}:Ge:function(t,e,r){if(_e(t),e=De(e),_e(r),Fe)try{return Ge(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ne("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Ve=Te,He=b,Je=a?function(t,e,r){return Ve.f(t,e,He(1,r))}:function(t,e,r){return t[e]=r,t},qe={exports:{}},We=U,Ze=xt,$e=E(Function.toString);We(Ze.inspectSource)||(Ze.inspectSource=function(t){return $e(t)});var Xe,Ye,Qe,tr=Ze.inspectSource,er=U,rr=tr,nr=o.WeakMap,or=er(nr)&&/native code/.test(rr(nr)),ir=Et.exports,cr=Kt,ar=ir("keys"),ur={},sr=or,fr=o,lr=E,hr=K,pr=Je,dr=Dt,vr=xt,gr=function(t){return ar[t]||(ar[t]=cr(t))},yr=ur,br="Object already initialized",mr=fr.TypeError,wr=fr.WeakMap;if(sr||vr.state){var Sr=vr.state||(vr.state=new wr),jr=lr(Sr.get),Or=lr(Sr.has),Er=lr(Sr.set);Xe=function(t,e){if(Or(Sr,t))throw new mr(br);return e.facade=t,Er(Sr,t,e),e},Ye=function(t){return jr(Sr,t)||{}},Qe=function(t){return Or(Sr,t)}}else{var Lr=gr("state");yr[Lr]=!0,Xe=function(t,e){if(dr(t,Lr))throw new mr(br);return e.facade=t,pr(t,Lr,e),e},Ye=function(t){return dr(t,Lr)?t[Lr]:{}},Qe=function(t){return dr(t,Lr)}}var Tr={set:Xe,get:Ye,has:Qe,enforce:function(t){return Qe(t)?Ye(t):Xe(t,{})},getterFor:function(t){return function(e){var r;if(!hr(e)||(r=Ye(e)).type!==t)throw mr("Incompatible receiver, "+t+" required");return r}}},kr=a,Pr=Dt,Ir=Function.prototype,xr=kr&&Object.getOwnPropertyDescriptor,Ar=Pr(Ir,"name"),Cr=Ar&&"something"===function(){}.name,Mr=Ar&&(!kr||kr&&xr(Ir,"name").configurable),Fr=o,Rr=U,_r=Dt,Dr=Je,Nr=kt,Gr=tr,Ur={EXISTS:Ar,PROPER:Cr,CONFIGURABLE:Mr}.CONFIGURABLE,Br=Tr.get,Kr=Tr.enforce,zr=String(String).split("String");(qe.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,c=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet,u=n&&void 0!==n.name?n.name:e;Rr(r)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_r(r,"name")||Ur&&r.name!==u)&&Dr(r,"name",u),(o=Kr(r)).source||(o.source=zr.join("string"==typeof u?u:""))),t!==Fr?(i?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=r:Dr(t,e,r)):c?t[e]=r:Nr(e,r)})(Function.prototype,"toString",(function(){return Rr(this)&&Br(this).source||Gr(this)}));var Vr={},Hr=Math.ceil,Jr=Math.floor,qr=function(t){var e=+t;return e!=e||0===e?0:(e>0?Jr:Hr)(e)},Wr=qr,Zr=Math.max,$r=Math.min,Xr=qr,Yr=Math.min,Qr=function(t){return t>0?Yr(Xr(t),9007199254740991):0},tn=function(t){return Qr(t.length)},en=G,rn=function(t,e){var r=Wr(t);return r<0?Zr(r+e,0):$r(r,e)},nn=tn,on=function(t){return function(e,r,n){var o,i=en(e),c=nn(i),a=rn(n,c);if(t&&r!=r){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},cn={includes:on(!0),indexOf:on(!1)},an=Dt,un=G,sn=cn.indexOf,fn=ur,ln=E([].push),hn=function(t,e){var r,n=un(t),o=0,i=[];for(r in n)!an(fn,r)&&an(n,r)&&ln(i,r);for(;e.length>o;)an(n,r=e[o++])&&(~sn(i,r)||ln(i,r));return i},pn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Vr.f=Object.getOwnPropertyNames||function(t){return hn(t,pn)};var dn={};dn.f=Object.getOwnPropertySymbols;var vn=J,gn=Vr,yn=dn,bn=Ce,mn=E([].concat),wn=vn("Reflect","ownKeys")||function(t){var e=gn.f(bn(t)),r=yn.f;return r?mn(e,r(t)):e},Sn=Dt,jn=wn,On=i,En=Te,Ln=c,Tn=U,kn=/#|\.prototype\./,Pn=function(t,e){var r=xn[In(t)];return r==Cn||r!=An&&(Tn(e)?Ln(e):!!e)},In=Pn.normalize=function(t){return String(t).replace(kn,".").toLowerCase()},xn=Pn.data={},An=Pn.NATIVE="N",Cn=Pn.POLYFILL="P",Mn=Pn,Fn=o,Rn=i.f,_n=Je,Dn=qe.exports,Nn=kt,Gn=function(t,e,r){for(var n=jn(e),o=En.f,i=On.f,c=0;c<n.length;c++){var a=n[c];Sn(t,a)||r&&Sn(r,a)||o(t,a,i(e,a))}},Un=Mn,Bn=function(t,e){var r,n,o,i,c,a=t.target,u=t.global,s=t.stat;if(r=u?Fn:s?Fn[a]||Nn(a,{}):(Fn[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(c=Rn(r,n))&&c.value:r[n],!Un(u?n:a+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Gn(i,o)}(t.sham||o&&o.sham)&&_n(i,"sham",!0),Dn(r,n,i,t)}},Kn=P,zn=Array.isArray||function(t){return"Array"==Kn(t)},Vn=fe,Hn=Te,Jn=b,qn={};qn[Qt("toStringTag")]="z";var Wn="[object z]"===String(qn),Zn=o,$n=Wn,Xn=U,Yn=P,Qn=Qt("toStringTag"),to=Zn.Object,eo="Arguments"==Yn(function(){return arguments}()),ro=$n?Yn:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=to(t),Qn))?r:eo?Yn(e):"Object"==(n=Yn(e))&&Xn(e.callee)?"Arguments":n},no=E,oo=c,io=U,co=ro,ao=tr,uo=function(){},so=[],fo=J("Reflect","construct"),lo=/^\s*(?:class|function)\b/,ho=no(lo.exec),po=!lo.exec(uo),vo=function(t){if(!io(t))return!1;try{return fo(uo,so,t),!0}catch(t){return!1}},go=function(t){if(!io(t))return!1;switch(co(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return po||!!ho(lo,ao(t))}catch(t){return!0}};go.sham=!0;var yo=!fo||oo((function(){var t;return vo(vo.call)||!vo(Object)||!vo((function(){t=!0}))||t}))?go:vo,bo=o,mo=zn,wo=yo,So=K,jo=Qt("species"),Oo=bo.Array,Eo=function(t){var e;return mo(t)&&(e=t.constructor,(wo(e)&&(e===Oo||mo(e.prototype))||So(e)&&null===(e=e[jo]))&&(e=void 0)),void 0===e?Oo:e},Lo=function(t,e){return new(Eo(t))(0===e?0:e)},To=c,ko=et,Po=Qt("species"),Io=Bn,xo=o,Ao=c,Co=zn,Mo=K,Fo=Ft,Ro=tn,_o=function(t,e,r){var n=Vn(e);n in t?Hn.f(t,n,Jn(0,r)):t[n]=r},Do=Lo,No=function(t){return ko>=51||!To((function(){var e=[];return(e.constructor={})[Po]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Go=et,Uo=Qt("isConcatSpreadable"),Bo=9007199254740991,Ko="Maximum allowed index exceeded",zo=xo.TypeError,Vo=Go>=51||!Ao((function(){var t=[];return t[Uo]=!1,t.concat()[0]!==t})),Ho=No("concat"),Jo=function(t){if(!Mo(t))return!1;var e=t[Uo];return void 0!==e?!!e:Co(t)};Io({target:"Array",proto:!0,forced:!Vo||!Ho},{concat:function(t){var e,r,n,o,i,c=Fo(this),a=Do(c,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Jo(i=-1===e?c:arguments[e])){if(u+(o=Ro(i))>Bo)throw zo(Ko);for(r=0;r<o;r++,u++)r in i&&_o(a,u,i[r])}else{if(u>=Bo)throw zo(Ko);_o(a,u++,i)}return a.length=u,a}});var qo=u,Wo=Function.prototype,Zo=Wo.apply,$o=Wo.call,Xo="object"==typeof Reflect&&Reflect.apply||(qo?$o.bind(Zo):function(){return $o.apply(Zo,arguments)}),Yo=Bn,Qo=J,ti=Xo,ei=E,ri=c,ni=o.Array,oi=Qo("JSON","stringify"),ii=ei(/./.exec),ci=ei("".charAt),ai=ei("".charCodeAt),ui=ei("".replace),si=ei(1..toString),fi=/[\uD800-\uDFFF]/g,li=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,pi=function(t,e,r){var n=ci(r,e-1),o=ci(r,e+1);return ii(li,t)&&!ii(hi,o)||ii(hi,t)&&!ii(li,n)?"\\u"+si(ai(t,0),16):t},di=ri((function(){return'"\\udf06\\ud834"'!==oi("\udf06\ud834")||'"\\udead"'!==oi("\udead")}));oi&&Yo({target:"JSON",stat:!0,forced:di},{stringify:function(t,e,r){for(var n=0,o=arguments.length,i=ni(o);n<o;n++)i[n]=arguments[n];var c=ti(oi,null,i);return"string"==typeof c?ui(c,fi,pi):c}});var vi=c,gi=function(t,e){var r=[][t];return!!r&&vi((function(){r.call(null,e||function(){return 1},1)}))},yi=Bn,bi=F,mi=G,wi=gi,Si=E([].join),ji=bi!=Object,Oi=wi("join",",");yi({target:"Array",proto:!0,forced:ji||!Oi},{join:function(t){return Si(mi(this),void 0===t?",":t)}});var Ei=ro,Li=Wn?{}.toString:function(){return"[object "+Ei(this)+"]"},Ti=Wn,ki=qe.exports,Pi=Li;Ti||ki(Object.prototype,"toString",Pi,{unsafe:!0});var Ii=o.Promise,xi=qe.exports,Ai=o,Ci=U,Mi=Ai.String,Fi=Ai.TypeError,Ri=E,_i=Ce,Di=function(t){if("object"==typeof t||Ci(t))return t;throw Fi("Can't set "+Mi(t)+" as a prototype")},Ni=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Ri(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return _i(r),Di(n),e?t(r,n):r.__proto__=n,r}}():void 0),Gi=Te.f,Ui=Dt,Bi=Qt("toStringTag"),Ki=J,zi=Te,Vi=a,Hi=Qt("species"),Ji=q,qi=o.TypeError,Wi=yt,Zi=u,$i=E(E.bind),Xi=function(t,e){return Wi(t),void 0===e?t:Zi?$i(t,e):function(){return t.apply(e,arguments)}},Yi={},Qi=Yi,tc=Qt("iterator"),ec=Array.prototype,rc=ro,nc=mt,oc=Yi,ic=Qt("iterator"),cc=function(t){if(null!=t)return nc(t,ic)||nc(t,"@@iterator")||oc[rc(t)]},ac=l,uc=yt,sc=Ce,fc=pt,lc=cc,hc=o.TypeError,pc=l,dc=Ce,vc=mt,gc=Xi,yc=l,bc=Ce,mc=pt,wc=function(t){return void 0!==t&&(Qi.Array===t||ec[tc]===t)},Sc=tn,jc=q,Oc=function(t,e){var r=arguments.length<2?lc(t):e;if(uc(r))return sc(ac(r,t));throw hc(fc(t)+" is not iterable")},Ec=cc,Lc=function(t,e,r){var n,o;dc(t);try{if(!(n=vc(t,"return"))){if("throw"===e)throw r;return r}n=pc(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return dc(n),r},Tc=o.TypeError,kc=function(t,e){this.stopped=t,this.result=e},Pc=kc.prototype,Ic=Qt("iterator"),xc=!1;try{var Ac=0,Cc={next:function(){return{done:!!Ac++}},return:function(){xc=!0}};Cc[Ic]=function(){return this},Array.from(Cc,(function(){throw 2}))}catch(t){}var Mc,Fc,Rc,_c,Dc=yo,Nc=pt,Gc=o.TypeError,Uc=Ce,Bc=function(t){if(Dc(t))return t;throw Gc(Nc(t)+" is not a constructor")},Kc=Qt("species"),zc=J("document","documentElement"),Vc=E([].slice),Hc=o.TypeError,Jc=/(?:ipad|iphone|ipod).*applewebkit/i.test(W),qc="process"==P(o.process),Wc=o,Zc=Xo,$c=Xi,Xc=U,Yc=Dt,Qc=c,ta=zc,ea=Vc,ra=de,na=function(t,e){if(t<e)throw Hc("Not enough arguments");return t},oa=Jc,ia=qc,ca=Wc.setImmediate,aa=Wc.clearImmediate,ua=Wc.process,sa=Wc.Dispatch,fa=Wc.Function,la=Wc.MessageChannel,ha=Wc.String,pa=0,da={},va="onreadystatechange";try{Mc=Wc.location}catch(t){}var ga=function(t){if(Yc(da,t)){var e=da[t];delete da[t],e()}},ya=function(t){return function(){ga(t)}},ba=function(t){ga(t.data)},ma=function(t){Wc.postMessage(ha(t),Mc.protocol+"//"+Mc.host)};ca&&aa||(ca=function(t){na(arguments.length,1);var e=Xc(t)?t:fa(t),r=ea(arguments,1);return da[++pa]=function(){Zc(e,void 0,r)},Fc(pa),pa},aa=function(t){delete da[t]},ia?Fc=function(t){ua.nextTick(ya(t))}:sa&&sa.now?Fc=function(t){sa.now(ya(t))}:la&&!oa?(_c=(Rc=new la).port2,Rc.port1.onmessage=ba,Fc=$c(_c.postMessage,_c)):Wc.addEventListener&&Xc(Wc.postMessage)&&!Wc.importScripts&&Mc&&"file:"!==Mc.protocol&&!Qc(ma)?(Fc=ma,Wc.addEventListener("message",ba,!1)):Fc=va in ra("script")?function(t){ta.appendChild(ra("script")).onreadystatechange=function(){ta.removeChild(this),ga(t)}}:function(t){setTimeout(ya(t),0)});var wa,Sa,ja,Oa,Ea,La,Ta,ka,Pa={set:ca,clear:aa},Ia=o,xa=/ipad|iphone|ipod/i.test(W)&&void 0!==Ia.Pebble,Aa=/web0s(?!.*chrome)/i.test(W),Ca=o,Ma=Xi,Fa=i.f,Ra=Pa.set,_a=Jc,Da=xa,Na=Aa,Ga=qc,Ua=Ca.MutationObserver||Ca.WebKitMutationObserver,Ba=Ca.document,Ka=Ca.process,za=Ca.Promise,Va=Fa(Ca,"queueMicrotask"),Ha=Va&&Va.value;Ha||(wa=function(){var t,e;for(Ga&&(t=Ka.domain)&&t.exit();Sa;){e=Sa.fn,Sa=Sa.next;try{e()}catch(t){throw Sa?Oa():ja=void 0,t}}ja=void 0,t&&t.enter()},_a||Ga||Na||!Ua||!Ba?!Da&&za&&za.resolve?((Ta=za.resolve(void 0)).constructor=za,ka=Ma(Ta.then,Ta),Oa=function(){ka(wa)}):Ga?Oa=function(){Ka.nextTick(wa)}:(Ra=Ma(Ra,Ca),Oa=function(){Ra(wa)}):(Ea=!0,La=Ba.createTextNode(""),new Ua(wa).observe(La,{characterData:!0}),Oa=function(){La.data=Ea=!Ea}));var Ja=Ha||function(t){var e={fn:t,next:void 0};ja&&(ja.next=e),Sa||(Sa=e,Oa()),ja=e},qa={},Wa=yt,Za=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Wa(e),this.reject=Wa(r)};qa.f=function(t){return new Za(t)};var $a=Ce,Xa=K,Ya=qa,Qa=o,tu=function(){this.head=null,this.tail=null};tu.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var eu,ru,nu,ou,iu=tu,cu="object"==typeof window,au=Bn,uu=o,su=J,fu=l,lu=Ii,hu=qe.exports,pu=function(t,e,r){for(var n in e)xi(t,n,e[n],r);return t},du=Ni,vu=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Ui(t,Bi)&&Gi(t,Bi,{configurable:!0,value:e})},gu=function(t){var e=Ki(t),r=zi.f;Vi&&e&&!e[Hi]&&r(e,Hi,{configurable:!0,get:function(){return this}})},yu=yt,bu=U,mu=K,wu=function(t,e){if(Ji(e,t))return t;throw qi("Incorrect invocation")},Su=tr,ju=function(t,e,r){var n,o,i,c,a,u,s,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),d=gc(e,f),v=function(t){return n&&Lc(n,"normal",t),new kc(!0,t)},g=function(t){return l?(bc(t),p?d(t[0],t[1],v):d(t[0],t[1])):p?d(t,v):d(t)};if(h)n=t;else{if(!(o=Ec(t)))throw Tc(mc(t)+" is not iterable");if(wc(o)){for(i=0,c=Sc(t);c>i;i++)if((a=g(t[i]))&&jc(Pc,a))return a;return new kc(!1)}n=Oc(t,o)}for(u=n.next;!(s=yc(u,n)).done;){try{a=g(s.value)}catch(t){Lc(n,"throw",t)}if("object"==typeof a&&a&&jc(Pc,a))return a}return new kc(!1)},Ou=function(t,e){if(!e&&!xc)return!1;var r=!1;try{var n={};n[Ic]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Eu=function(t,e){var r,n=Uc(t).constructor;return void 0===n||null==(r=Uc(n)[Kc])?e:Bc(r)},Lu=Pa.set,Tu=Ja,ku=function(t,e){if($a(t),Xa(e)&&e.constructor===t)return e;var r=Ya.f(t);return(0,r.resolve)(e),r.promise},Pu=function(t,e){var r=Qa.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},Iu=qa,xu=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Au=iu,Cu=Tr,Mu=Mn,Fu=cu,Ru=qc,_u=et,Du=Qt("species"),Nu="Promise",Gu=Cu.getterFor(Nu),Uu=Cu.set,Bu=Cu.getterFor(Nu),Ku=lu&&lu.prototype,zu=lu,Vu=Ku,Hu=uu.TypeError,Ju=uu.document,qu=uu.process,Wu=Iu.f,Zu=Wu,$u=!!(Ju&&Ju.createEvent&&uu.dispatchEvent),Xu=bu(uu.PromiseRejectionEvent),Yu="unhandledrejection",Qu=!1,ts=Mu(Nu,(function(){var t=Su(zu),e=t!==String(zu);if(!e&&66===_u)return!0;if(_u>=51&&/native code/.test(t))return!1;var r=new zu((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[Du]=n,!(Qu=r.then((function(){}))instanceof n)||!e&&Fu&&!Xu})),es=ts||!Ou((function(t){zu.all(t).catch((function(){}))})),rs=function(t){var e;return!(!mu(t)||!bu(e=t.then))&&e},ns=function(t,e){var r,n,o,i=e.value,c=1==e.state,a=c?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{a?(c||(2===e.rejection&&us(e),e.rejection=1),!0===a?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===t.promise?s(Hu("Promise-chain cycle")):(n=rs(r))?fu(n,r,u,s):u(r)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},os=function(t,e){t.notified||(t.notified=!0,Tu((function(){for(var r,n=t.reactions;r=n.get();)ns(r,t);t.notified=!1,e&&!t.rejection&&cs(t)})))},is=function(t,e,r){var n,o;$u?((n=Ju.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),uu.dispatchEvent(n)):n={promise:e,reason:r},!Xu&&(o=uu["on"+t])?o(n):t===Yu&&Pu("Unhandled promise rejection",r)},cs=function(t){fu(Lu,uu,(function(){var e,r=t.facade,n=t.value;if(as(t)&&(e=xu((function(){Ru?qu.emit("unhandledRejection",n,r):is(Yu,r,n)})),t.rejection=Ru||as(t)?2:1,e.error))throw e.value}))},as=function(t){return 1!==t.rejection&&!t.parent},us=function(t){fu(Lu,uu,(function(){var e=t.facade;Ru?qu.emit("rejectionHandled",e):is("rejectionhandled",e,t.value)}))},ss=function(t,e,r){return function(n){t(e,n,r)}},fs=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,os(t,!0))},ls=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Hu("Promise can't be resolved itself");var n=rs(e);n?Tu((function(){var r={done:!1};try{fu(n,e,ss(ls,r,t),ss(fs,r,t))}catch(e){fs(r,e,t)}})):(t.value=e,t.state=1,os(t,!1))}catch(e){fs({done:!1},e,t)}}};if(ts&&(Vu=(zu=function(t){wu(this,Vu),yu(t),fu(eu,this);var e=Gu(this);try{t(ss(ls,e),ss(fs,e))}catch(t){fs(e,t)}}).prototype,(eu=function(t){Uu(this,{type:Nu,done:!1,notified:!1,parent:!1,reactions:new Au,rejection:!1,state:0,value:void 0})}).prototype=pu(Vu,{then:function(t,e){var r=Bu(this),n=Wu(Eu(this,zu));return r.parent=!0,n.ok=!bu(t)||t,n.fail=bu(e)&&e,n.domain=Ru?qu.domain:void 0,0==r.state?r.reactions.add(n):Tu((function(){ns(n,r)})),n.promise},catch:function(t){return this.then(void 0,t)}}),ru=function(){var t=new eu,e=Gu(t);this.promise=t,this.resolve=ss(ls,e),this.reject=ss(fs,e)},Iu.f=Wu=function(t){return t===zu||t===nu?new ru(t):Zu(t)},bu(lu)&&Ku!==Object.prototype)){ou=Ku.then,Qu||(hu(Ku,"then",(function(t,e){var r=this;return new zu((function(t,e){fu(ou,r,t,e)})).then(t,e)}),{unsafe:!0}),hu(Ku,"catch",Vu.catch,{unsafe:!0}));try{delete Ku.constructor}catch(t){}du&&du(Ku,Vu)}au({global:!0,wrap:!0,forced:ts},{Promise:zu}),vu(zu,Nu,!1),gu(Nu),nu=su(Nu),au({target:Nu,stat:!0,forced:ts},{reject:function(t){var e=Wu(this);return fu(e.reject,void 0,t),e.promise}}),au({target:Nu,stat:!0,forced:ts},{resolve:function(t){return ku(this,t)}}),au({target:Nu,stat:!0,forced:es},{all:function(t){var e=this,r=Wu(e),n=r.resolve,o=r.reject,i=xu((function(){var r=yu(e.resolve),i=[],c=0,a=1;ju(t,(function(t){var u=c++,s=!1;a++,fu(r,e,t).then((function(t){s||(s=!0,i[u]=t,--a||n(i))}),o)})),--a||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Wu(e),n=r.reject,o=xu((function(){var o=yu(e.resolve);ju(t,(function(t){fu(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var hs=de("span").classList,ps=hs&&hs.constructor&&hs.constructor.prototype,ds=ps===Object.prototype?void 0:ps,vs=Xi,gs=F,ys=Ft,bs=tn,ms=Lo,ws=E([].push),Ss=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,s,f,l){for(var h,p,d=ys(u),v=gs(d),g=vs(s,f),y=bs(v),b=0,m=l||ms,w=e?m(u,y):r||c?m(u,0):void 0;y>b;b++)if((a||b in v)&&(p=g(h=v[b],b,d),t))if(e)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return b;case 2:ws(w,h)}else switch(t){case 4:return!1;case 7:ws(w,h)}return i?-1:n||o?o:w}},js={forEach:Ss(0),map:Ss(1),filter:Ss(2),some:Ss(3),every:Ss(4),find:Ss(5),findIndex:Ss(6),filterReject:Ss(7)}.forEach,Os=o,Es={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ls=ds,Ts=gi("forEach")?[].forEach:function(t){return js(this,t,arguments.length>1?arguments[1]:void 0)},ks=Je,Ps=function(t){if(t&&t.forEach!==Ts)try{ks(t,"forEach",Ts)}catch(e){t.forEach=Ts}};for(var Is in Es)Es[Is]&&Ps(Os[Is]&&Os[Is].prototype);Ps(Ls);var xs,As="__googleMapsScriptId";t.LoaderStatus=void 0,(xs=t.LoaderStatus||(t.LoaderStatus={}))[xs.INITIALIZED=0]="INITIALIZED",xs[xs.LOADING=1]="LOADING",xs[xs.SUCCESS=2]="SUCCESS",xs[xs.FAILURE=3]="FAILURE";var Cs=function(){function r(t){var e=t.apiKey,n=t.authReferrerPolicy,o=t.channel,i=t.client,c=t.id,a=void 0===c?As:c,u=t.language,s=t.libraries,f=void 0===s?[]:s,l=t.mapIds,h=t.nonce,p=t.region,d=t.retries,v=void 0===d?3:d,g=t.url,y=void 0===g?"https://maps.googleapis.com/maps/api/js":g,b=t.version;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=n,this.channel=o,this.client=i,this.id=a||As,this.language=u,this.libraries=f,this.mapIds=l,this.nonce=h,this.region=p,this.retries=v,this.url=y,this.version=b,r.instance){if(!function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var c=i[o];if(!t(e[c],r[c]))return!1}return!0}return e!=e&&r!=r}(this.options,r.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(r.instance.options)));return r.instance}r.instance=this}var n,o,i;return n=r,(o=[{key:"options",get:function(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}},{key:"status",get:function(){return this.errors.length?t.LoaderStatus.FAILURE:this.done?t.LoaderStatus.SUCCESS:this.loading?t.LoaderStatus.LOADING:t.LoaderStatus.INITIALIZED}},{key:"failed",get:function(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}},{key:"createUrl",value:function(){var t=this.url;return t+="?callback=".concat(this.CALLBACK),this.apiKey&&(t+="&key=".concat(this.apiKey)),this.channel&&(t+="&channel=".concat(this.channel)),this.client&&(t+="&client=".concat(this.client)),this.libraries.length>0&&(t+="&libraries=".concat(this.libraries.join(","))),this.language&&(t+="&language=".concat(this.language)),this.region&&(t+="®ion=".concat(this.region)),this.version&&(t+="&v=".concat(this.version)),this.mapIds&&(t+="&map_ids=".concat(this.mapIds.join(","))),this.authReferrerPolicy&&(t+="&auth_referrer_policy=".concat(this.authReferrerPolicy)),t}},{key:"deleteScript",value:function(){var t=document.getElementById(this.id);t&&t.remove()}},{key:"load",value:function(){return this.loadPromise()}},{key:"loadPromise",value:function(){var t=this;return new Promise((function(e,r){t.loadCallback((function(t){t?r(t.error):e(window.google)}))}))}},{key:"loadCallback",value:function(t){this.callbacks.push(t),this.execute()}},{key:"setScript",value:function(){if(document.getElementById(this.id))this.callback();else{var t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}}},{key:"reset",value:function(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}},{key:"resetIfRetryingFailed",value:function(){this.failed&&this.reset()}},{key:"loadErrorCallback",value:function(t){var e=this;if(this.errors.push(t),this.errors.length<=this.retries){var r=this.errors.length*Math.pow(2,this.errors.length);console.log("Failed to load Google Maps script, retrying in ".concat(r," ms.")),setTimeout((function(){e.deleteScript(),e.setScript()}),r)}else this.onerrorEvent=t,this.callback()}},{key:"setCallback",value:function(){window.__googleMapsCallback=this.callback.bind(this)}},{key:"callback",value:function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]}},{key:"execute",value:function(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}])&&e(n.prototype,o),i&&e(n,i),r}();t.DEFAULT_ID=As,t.Loader=Cs,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@googlemaps/js-api-loader", | ||
"version": "1.13.11", | ||
"version": "1.14.0", | ||
"description": "Wrapper for the loading of Google Maps JavaScript API script in the browser", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -54,2 +54,6 @@ /** | ||
], | ||
[ | ||
{ authReferrerPolicy: "origin" }, | ||
"https://maps.googleapis.com/maps/api/js?callback=__googleMapsCallback&auth_referrer_policy=origin", | ||
], | ||
])("createUrl is correct", (options: LoaderOptions, expected: string) => { | ||
@@ -56,0 +60,0 @@ const loader = new Loader(options); |
@@ -166,2 +166,15 @@ /** | ||
retries?: number; | ||
/** | ||
* Maps JS customers can configure HTTP Referrer Restrictions in the Cloud | ||
* Console to limit which URLs are allowed to use a particular API Key. By | ||
* default, these restrictions can be configured to allow only certain paths | ||
* to use an API Key. If any URL on the same domain or origin may use the API | ||
* Key, you can set `auth_referrer_policy=origin` to limit the amount of data | ||
* sent when authorizing requests from the Maps JavaScript API. This is | ||
* available starting in version 3.46. When this parameter is specified and | ||
* HTTP Referrer Restrictions are enabled on Cloud Console, Maps JavaScript | ||
* API will only be able to load if there is an HTTP Referrer Restriction that | ||
* matches the current website's domain without a path specified. | ||
*/ | ||
authReferrerPolicy?: "origin"; | ||
} | ||
@@ -253,2 +266,6 @@ | ||
public readonly url: string; | ||
/** | ||
* See [[LoaderOptions.authReferrerPolicy]] | ||
*/ | ||
public readonly authReferrerPolicy: "origin"; | ||
@@ -273,26 +290,28 @@ private CALLBACK = "__googleMapsCallback"; | ||
apiKey, | ||
authReferrerPolicy, | ||
channel, | ||
client, | ||
id = DEFAULT_ID, | ||
language, | ||
libraries = [], | ||
language, | ||
region, | ||
version, | ||
mapIds, | ||
nonce, | ||
region, | ||
retries = 3, | ||
url = "https://maps.googleapis.com/maps/api/js", | ||
version, | ||
}: LoaderOptions) { | ||
this.version = version; | ||
this.apiKey = apiKey; | ||
this.authReferrerPolicy = authReferrerPolicy; | ||
this.channel = channel; | ||
this.client = client; | ||
this.id = id || DEFAULT_ID; // Do not allow empty string | ||
this.language = language; | ||
this.libraries = libraries; | ||
this.language = language; | ||
this.region = region; | ||
this.mapIds = mapIds; | ||
this.nonce = nonce; | ||
this.region = region; | ||
this.retries = retries; | ||
this.url = url; | ||
this.version = version; | ||
@@ -327,2 +346,3 @@ if (Loader.instance) { | ||
url: this.url, | ||
authReferrerPolicy: this.authReferrerPolicy, | ||
}; | ||
@@ -390,2 +410,6 @@ } | ||
if (this.authReferrerPolicy) { | ||
url += `&auth_referrer_policy=${this.authReferrerPolicy}`; | ||
} | ||
return url; | ||
@@ -392,0 +416,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
368684
4095