PageSourceSearch

https://www.matras.pl/build/8557.4d110e81.js

js matras.pl collected 2026-09-25 18:55:36 UTC 21,756 bytes, 2 lines download raw bytes

vendor: 4,633 bytes, lines 1-2
1/*! For license information please see 8557.4d110e81.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8557],{1239:(t,e,r)=>{r.d(e,{XL:()=>j});var s=r(4063),i=r.n(s);const o=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],n=new Uint32Array(96);class a{static from(t){if(!t||void 0===t.byteLength||t.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const s=r>>4;if(1!==s)throw new Error(`Got v${s} data when expected v1.`);const i=o[15&r];if(!i)throw new Error("Unrecognized array type.");const[n]=new Uint16Array(t,2,1),[h]=new Uint32Array(t,4,1);return new a(h,n,i,void 0,t)}constructor(t,e=64,r=Float64Array,s=ArrayBuffer,i){if(isNaN(t)||t<0)throw new Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const n=o.indexOf(this.ArrayType),a=2*t*this.ArrayType.BYTES_PER_ELEMENT,h=t*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-h%8)%8;if(n<0)throw new Error(`Unexpected typed array class: ${r}.`);if(i)this.data=i,this.ids=new this.IndexArrayType(i,8,t),this.coords=new r(i,8+h+l,2*t),this._pos=2*t,this._finished=!0;else{const i=this.data=new s(8+a+h+l);this.ids=new this.IndexArrayType(i,8,t),this.coords=new r(i,8+h+l,2*t),this._pos=0,this._finished=!1,new Uint8Array(i,0,2).set([219,16+n]),new Uint16Array(i,2,1)[0]=e,new Uint32Array(i,4,1)[0]=t}}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return h(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:a}=this;n[0]=0,n[1]=i.length-1,n[2]=0;let h=3;const l=[];for(;h>0;){const c=n[--h],u=n[--h],p=n[--h];if(u-p<=a){for(let n=p;n<=u;n++){const a=o[2*n],h=o[2*n+1];a>=t&&a<=r&&h>=e&&h<=s&&l.push(i[n])}continue}const d=p+u>>1,g=o[2*d],m=o[2*d+1];g>=t&&g<=r&&m>=e&&m<=s&&l.push(i[d]),(0===c?t<=g:e<=m)&&(n[h++]=p,n[h++]=d-1,n[h++]=1-c),(0===c?r>=g:s>=m)&&(n[h++]=d+1,n[h++]=u,n[h++]=1-c)}return l}within(t,e,r){const s=[];return this.withinInto(t,e,r,s),s}withinInto(t,e,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:a}=this;n[0]=0,n[1]=i.length-1,n[2]=0;let h=3,l=0;const c=r*r;for(;h>0;){const u=n[--h],d=n[--h],g=n[--h];if(d-g<=a){for(let r=g;r<=d;r++)p(o[2*r],o[2*r+1],t,e)<=c&&(s[l++]=i[r]);continue}const m=g+d>>1,f=o[2*m],y=o[2*m+1];p(f,y,t,e)<=c&&(s[l++]=i[m]),(0===u?t-r<=f:e-r<=y)&&(n[h++]=g,n[h++]=m-1,n[h++]=1-u),(0===u?t+r>=f:e+r>=y)&&(n[h++]=m+1,n[h++]=d,n[h++]=1-u)}return l}}function h(t,e,r,s,i,o){if(i-s<=r)return;const n=s+i>>1;l(t,e,n,s,i,o),h(t,e,r,s,n-1,1-o),h(t,e,r,n+1,i,1-o)}function l(t,e,r,s,i,o){for(;i>s;){if(i-s>600){const n=i-s+1,a=r-s+1,h=Math.log(n),c=.5*Math.exp(2*h/3),u=.5*Math.sqrt(h*c*(n-c)/n)*(a-n/2<0?-1:1);l(t,e,r,Math.max(s,Math.floor(r-a*c/n+u)),Math.min(i,Math.floor(r+(n-a)*c/n+u)),o)}const n=e[2*r+o];let a=s,h=i;for(c(t,e,s,r),e[2*i+o]>n&&c(t,e,s,i);a<h;){for(c(t,e,a,h),a++,h--;e[2*a+o]<n;)a++;for(;e[2*h+o]>n;)h--}e[2*s+o]===n?c(t,e,s,h):(h++,c(t,e,h,i)),h<=r&&(s=h+1),r<=h&&(i=h-1)}}function c(t,e,r,s){u(t,r,s),u(e,2*r,2*s),u(e,2*r+1,2*s+1)}function u(t,e,r){const s=t[e];t[e]=t[r],t[r]=s}function p(t,e,r,s){const i=t-r,o=e-s;return i*i+o*o}const d={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},g=Math.fround||(m=new Float32Array(1),t=>(m[0]=+t,m[0]));var m;class f{constructor(t){this.options=Object.assign(Object.create(d),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:s}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;const o=[];for(let e=0;e<t.length;e++){const r=t[e];if(!r.geometry)continue;const[s,i]=r.geometry.coordinates,n=g(k(s)),a=g(v(i));o.push(n,a,1/0,e,-1,1),this.options.reduce&&o.push(0)}let n=this.trees[s+1]=this._createTree(o);e&&console.timeEnd(i);for(let t=s;t>=r;t--){const r=+Date.now();n=this.trees[t]=this._createTree(this._cluster(n,t)),e&&console.log("z%d: %d clusters in %dms",t,n.numItems,+Date.now()-r)}
vendor: 6,212 bytes, line 2
2return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,t[1]));let i=180===t[2]?180:((t[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){const t=this.getClusters([r,s,180,o],e),n=this.getClusters([-180,s,i,o],e);return t.concat(n)}const n=this.trees[this._limitZoom(e)],a=n.range(k(r),v(o),k(i),v(s)),h=n.data,l=[];for(const t of a){const e=this.stride*t;l.push(h[e+5]>1?y(h,e,this.clusterProps):this.points[h[e+3]])}return l}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),s="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(s);const o=i.data;if(e*this.stride>=o.length)throw new Error(s);const n=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=o[e*this.stride],h=o[e*this.stride+1],l=i.within(a,h,n),c=[];for(const e of l){const r=e*this.stride;o[r+4]===t&&c.push(o[r+5]>1?y(o,r,this.clusterProps):this.points[o[r+3]])}if(0===c.length)throw new Error(s);return c}getLeaves(t,e,r){e=e||10,r=r||0;const s=[];return this._appendLeaves(s,t,e,r,0),s}getTile(t,e,r){const s=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:o,radius:n}=this.options,a=n/o,h=(r-a)/i,l=(r+1+a)/i,c={features:[]};return this._addTileFeatures(s.range((e-a)/i,h,(e+1+a)/i,l),s.data,e,r,i,c),0===e&&this._addTileFeatures(s.range(1-a/i,h,1,l),s.data,i,r,i,c),e===i-1&&this._addTileFeatures(s.range(0,h,a/i,l),s.data,-1,r,i,c),c.features.length?c:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,s,i){const o=this.getChildren(e);for(const e of o){const o=e.properties;if(o&&o.cluster?i+o.point_count<=s?i+=o.point_count:i=this._appendLeaves(t,o.cluster_id,r,s,i):i<s?i++:t.push(e),t.length===r)break}return i}_createTree(t){const e=new a(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,s,i,o){for(const n of t){const t=n*this.stride,a=e[t+5]>1;let h,l,c;if(a)h=w(e,t,this.clusterProps),l=e[t],c=e[t+1];else{const r=this.points[e[t+3]];h=r.properties;const[s,i]=r.geometry.coordinates;l=k(s),c=v(i)}const u={type:1,geometry:[[Math.round(this.options.extent*(l*i-r)),Math.round(this.options.extent*(c*i-s))]],tags:h};let p;p=a||this.options.generateId?e[t+3]:this.points[e[t+3]].id,void 0!==p&&(u.id=p),o.features.push(u)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:r,extent:s,reduce:i,minPoints:o}=this.options,n=r/(s*Math.pow(2,e)),a=t.data,h=[],l=this.stride;for(let r=0;r<a.length;r+=l){if(a[r+2]<=e)continue;a[r+2]=e;const s=a[r],c=a[r+1],u=t.within(a[r],a[r+1],n),p=a[r+5];let d=p;for(const t of u){const r=t*l;a[r+2]>e&&(d+=a[r+5])}if(d>p&&d>=o){let t,o=s*p,n=c*p,g=-1;const m=(r/l<<5)+(e+1)+this.points.length;for(const s of u){const h=s*l;if(a[h+2]<=e)continue;a[h+2]=e;const c=a[h+5];o+=a[h]*c,n+=a[h+1]*c,a[h+4]=m,i&&(t||(t=this._map(a,r,!0),g=this.clusterProps.length,this.clusterProps.push(t)),i(t,this._map(a,h)))}a[r+4]=m,h.push(o/d,n/d,1/0,m,-1,d),i&&h.push(g)}else{for(let t=0;t<l;t++)h.push(a[r+t]);if(d>1)for(const t of u){const r=t*l;if(!(a[r+2]<=e)){a[r+2]=e;for(let t=0;t<l;t++)h.push(a[r+t])}}}}return h}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+5]>1){const s=this.clusterProps[t[e+6]];return r?Object.assign({},s):s}const s=this.points[t[e+3]].properties,i=this.options.map(s);return r&&i===s?Object.assign({},i):i}}function y(t,e,r){return{type:"Feature",id:t[e+3],properties:w(t,e,r),geometry:{type:"Point",coordinates:[(s=t[e],360*(s-.5)),b(t[e+1])]}};var s}function w(t,e,r){const s=t[e+5],i=s>=1e4?`${Math.round(s/1e3)}k`:s>=1e3?Math.round(s/100)/10+"k":s,o=t[e+6],n=-1===o?{}:Object.assign({},r[o]);return Object.assign(n,{cluster:!0,cluster_id:t[e+3],point_count:s,point_count_abbreviated:i})}function k(t){return t/360+.5}function v(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function b(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function M(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(r[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(t);i<s.length;i++)e.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(r[s[i]]=t[s[i]])}return r}class E{static isAdvancedMarkerAvailable(t){return google.maps.marker&&!0===t.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}static setMap(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}class _{constructor({markers:t,position:e}){this.markers=t,e&&(e instanceof google.maps.LatLng?this._position=e:this._position=new google.maps.LatLng(e))}get bounds(){if(0===this.markers.length&&!this._position)return;const t=new google.maps.LatLngBounds(this._position,this._position);for(const e of this.markers)t.extend(E.getPosition(e));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>E.getVisible(t)).length}push(t){this.markers.push(t)}delete(){this.marker&&(E.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class x{constructor({maxZoom:t=16}){this.maxZoom=t}noop({markers:t}){return I(t)}}const I=t=>t.map(t=>new _({position:E.getPosition(t),markers:[t]}));class A extends x{constructor(t){var{maxZoom:e,radius:r=60}=t,s=M(t,["maxZoom","radius"]);super({maxZoom:e}),this.state={zoom:-1}
2,this.superCluster=new f(Object.assign({maxZoom:this.maxZoom,radius:r},s))}calculate(t){let e=!1;const r={zoom:t.map.getZoom()};if(!i()(t.markers,this.markers)){e=!0,this.markers=[...t.markers];const r=this.markers.map(t=>{const e=E.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}});this.superCluster.load(r)}return e||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(e=!i()(this.state,r)),this.state=r,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}cluster({map:t}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map(t=>this.transformCluster(t))}transformCluster({geometry:{coordinates:[t,e]},properties:r}){if(r.cluster)return new _({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(t=>t.properties.marker),position:{lat:e,lng:t}});const s=r.marker;return new _({markers:[s],position:E.getPosition(s)})}}class O{constructor(t,e){this.markers={sum:t.length};const r=e.map(t=>t.count),s=r.reduce((t,e)=>t+e,0);this.clusters={count:e.length,markers:{mean:s/e.length,sum:s,min:Math.min(...r),max:Math.max(...r)}}}}class C{render({count:t,position:e},r,s){const i=`<svg fill="${t>Math.max(10,r.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${t}</text>\n</svg>`,o=`Cluster of ${t} markers`,n=Number(google.maps.Marker.MAX_ZINDEX)+t;if(E.isAdvancedMarkerAvailable(s)){const t=(new DOMParser).parseFromString(i,"image/svg+xml").documentElement;t.setAttribute("transform","translate(0 25)");const r={map:s,position:e,zIndex:n,title:o,content:t};return new google.maps.marker.AdvancedMarkerElement(r)}const a={position:e,zIndex:n,title:o,icon:{url:`data:image/svg+xml;base64,${btoa(i)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(a)}}class L{constructor(){!function(t,e){for(let r in e.prototype)t.prototype[r]=e.prototype[r]}(L,google.maps.OverlayView)}}var S;!function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"}(S||(S={}));const P=(t,e,r)=>{r.fitBounds(e.bounds)};class j extends L{constructor({map:t,markers:e=[],algorithmOptions:r={},algorithm:s=new A(r),renderer:i=new C,onClusterClick:o=P}){super(),this.markers=[...e],this.clusters=[],this.algorithm=s,this.renderer=i,this.onClusterClick=o,t&&this.setMap(t)}addMarker(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}addMarkers(t,e){t.forEach(t=>{this.addMarker(t,!0)}),e||this.render()}removeMarker(t,e){const r=this.markers.indexOf(t);return-1!==r&&(E.setMap(t,null),this.markers.splice(r,1),e||this.render(),!0)}removeMarkers(t,e){let r=!1;return t.forEach(t=>{r=this.removeMarker(t,!0)||r}),r&&!e&&this.render(),r}clearMarkers(t){this.markers.length=0,t||this.render()}render(){const t=this.getMap();if(t instanceof google.maps.Map&&t.getProjection()){google.maps.event.trigger(this,S.CLUSTERING_BEGIN,this);const{clusters:e,changed:r}=this.algorithm.calculate({markers:this.markers,map:t,mapCanvasProjection:this.getProjection()});if(r||null==r){const t=new Set;for(const r of e)1==r.markers.length&&t.add(r.markers[0]);const r=[];for(const e of this.clusters)null!=e.marker&&(1==e.markers.length?t.has(e.marker)||E.setMap(e.marker,null):r.push(e.marker));this.clusters=e,this.renderClusters(),requestAnimationFrame(()=>r.forEach(t=>E.setMap(t,null)))}google.maps.event.trigger(this,S.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(t=>E.setMap(t,null)),this.clusters.forEach(t=>t.delete()),this.clusters=[]}
2renderClusters(){const t=new O(this.markers,this.clusters),e=this.getMap();this.clusters.forEach(r=>{1===r.markers.length?r.marker=r.markers[0]:(r.marker=this.renderer.render(r,t,e),r.markers.forEach(t=>E.setMap(t,null)),this.onClusterClick&&r.marker.addListener("click",t=>{google.maps.event.trigger(this,S.CLUSTER_CLICK,r),this.onClusterClick(t,r,e)})),E.setMap(r.marker,e)})}}},4063:t=>{t.exports=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 s,i,o;if(Array.isArray(e)){if((s=e.length)!=r.length)return!1;for(i=s;0!==i--;)if(!t(e[i],r[i]))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((s=(o=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(i=s;0!==i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=s;0!==i--;){var n=o[i];if(!t(e[n],r[n]))return!1}return!0}return e!=e&&r!=r}},9626:(t,e,r)=>{function s(t,e,r,s){return new(r||(r=Promise))(function(i,o){function n(t){try{h(s.next(t))}catch(t){o(t)}}function a(t){try{h(s.throw(t))}catch(t){o(t)}}function h(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(n,a)}h((s=s.apply(t,e||[])).next())})}function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}r.d(e,{aN:()=>h}),"function"==typeof SuppressedError&&SuppressedError;var o=i(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 s,i,o;if(Array.isArray(e)){if((s=e.length)!=r.length)return!1;for(i=s;0!==i--;)if(!t(e[i],r[i]))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((s=(o=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(i=s;0!==i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=s;0!==i--;){var n=o[i];if(!t(e[n],r[n]))return!1}return!0}return e!=e&&r!=r});const n="__googleMapsScriptId";var a;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(a||(a={}));class h{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:s,id:i=n,language:a,libraries:l=[],mapIds:c,nonce:u,region:p,retries:d=3,url:g="https://maps.googleapis.com/maps/api/js",version:m}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=s,this.id=i||n,this.language=a,this.libraries=l,this.mapIds=c,this.nonce=u,this.region=p,this.retries=d,this.url=g,this.version=m,h.instance){if(!o(this.options,h.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(h.instance.options)}`);return h.instance}h.instance=this}get options(){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}}get status(){return this.errors.length?a.FAILURE:this.done?a.SUCCESS:this.loading?a.LOADING:a.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,e)=>{this.loadCallback(r=>{r?e(r.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,e;if(document.getElementById(this.id))return void this.callback();const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(t=>!r[t]&&delete r[t]),(null===(e=null===(t=null===window||void 0===window?void 0:window.google)||void 0===t?void 0:t.maps)||void 0===e?void 0:e.importLibrary)||(t=>{let e,r,i,o="The Google Maps JavaScript API",n="google",a="importLibrary",h="__ib__",l=document,c=window;c=c[n]||(c[n]={});const u=c.maps||(c.maps={}),p=new Set,d=new URLSearchParams,g=()=>e||(e=new Promise((a,c)=>s(this,void 0,void 0,function*(){var s;for(i in yield r=l.createElement("script"),r.id=this.id,d.set("libraries",[...p]+""),t)d.set(i.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),t[i]);d.set("callback",n+".maps."+h),r.src=this.url+"?"+d,u[h]=a,r.onerror=()=>e=c(Error(o+" could not load.")),r.nonce=this.nonce||(null===(s=l.querySelector("script[n
2once]"))||void 0===s?void 0:s.nonce)||"",l.head.append(r)})));u[a]?console.warn(o+" only loads once. Ignoring:",t):u[a]=(t,...e)=>p.add(t)&&g().then(()=>u[a](t,...e))})(r);const i=this.libraries.map(t=>this.importLibrary(t));i.length||i.push(this.importLibrary("core")),Promise.all(i).then(()=>this.callback(),t=>{const e=new ErrorEvent("error",{error:t});this.loadErrorCallback(e)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},t)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){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.setScript())}}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.