PageSourceSearch

https://www.chemguard.com/js/apis/geoip2/v2.0/geoip2.js

js chemguard.com collected 2026-10-02 07:02:10 UTC 3,569 bytes, 2 lines download raw bytes

1(function(){window.geoip2=function(){"use strict";var u={};function a(e,r,s,n){this.successCallback=e,this.errorCallback=r,this.type=n}a.prototype.returnSuccess=function(e){this.successCallback&&typeof this.successCallback=="function"&&this.successCallback(this.fillInObject(JSON.parse(e)))},a.prototype.returnError=function(e){this.errorCallback&&typeof this.errorCallback=="function"&&(e||(e={error:"Unknown error"}),this.errorCallback(e))};var h={country:[["continent","Object","names","Object"],["country","Object","names","Object"],["registered_country","Object","names","Object"],["represented_country","Object","names","Object"],["traits","Object"]],city:[["city","Object","names","Object"],["continent","Object","names","Object"],["country","Object","names","Object"],["location","Object"],["postal","Object"],["registered_country","Object","names","Object"],["represented_country","Object","names","Object"],["subdivisions","Array",0,"Object","names","Object"],["traits","Object"]]};return a.prototype.fillInObject=function(e){for(var r=this.type==="country"?h.country:h.city,s=0;s<r.length;s++)for(var n=r[s],o=e,t=0;t<n.length;t+=2){var c=n[t];o[c]||(o[c]=n[t+1]==="Object"?{}:[]),o=o[c]}try{Object.defineProperty(e.continent,"continent_code",{enumerable:!1,get:function(){return this.code},set:function(i){this.code=i}})}catch(i){e.continent.code&&(e.continent.continent_code=e.continent.code)}if(this.type!=="country")try{Object.defineProperty(e,"most_specific_subdivision",{enumerable:!1,get:function(){return this.subdivisions[this.subdivisions.length-1]},set:function(i){this.subdivisions[this.subdivisions.length-1]=i}})}catch(i){e.most_specific_subdivision=e.subdivisions[e.subdivisions.length-1]}return e},a.prototype.getGeoIPResult=function(){var e,r=window.location.hostname,s=r.split(".").reverse();s[1]==="maxmind"&&(s[0]==="com"||s[0]==="dev")&&r!=="www.maxmind.com"&&(e=r);var n=this,o,t=new window.XMLHttpRequest,c="https://"+(e||"geoip-js.com")+"/geoip/v2.0/"+this.type+"/me?",i={referrer:location.protocol+"//"+location.hostname};if(!this.alreadyRan){this.alreadyRan=1;for(o in i)i.hasOwnProperty(o)&&i[o]&&(c+=o+"="+encodeURIComponent(i[o])+"&");c=c.substring(0,c.length-1),t.open("GET",c,!0),t.onload=function(){if(typeof t.status=="undefined"||t.status===200)n.returnSuccess(t.responseText);else{var d=t.hasOwnProperty("contentType")?t.contentType:t.getResponseHeader("Content-Type"),l;if(/json/.test(d)&&t.responseText.length)try{l=JSON.parse(t.responseText)}catch(f){l={code:"HTTP_ERROR",error:"The server returned a "+t.status+" status with an invalid JSON body."}}else t.responseText.length?l={code:"HTTP_ERROR",error:"The server returned a "+t.status+" status with the following body: "+t.responseText}:l={code:"HTTP_ERROR",error:"The server returned a "+t.status+" status but either the server did not return a body or this browser is a version of Internet Explorer that hides error bodies."};n.returnError(l)}},t.ontimeout=function(){n.returnError({code:"HTTP_TIMEOUT",error:"The request to the GeoIP2 web service timed out."})},t.onerror=function(){n.returnError({code:"HTTP_ERROR",error:"There was a network error receiving the response from the GeoIP2 web service."})},t.send(null)}},u.country=function(e,r,s){var n=new a(e,r,s,"country");n.getGeoIPResult()},u.city=function(e,r,s){var n=new a(e,r,s,"city");n.getGeoIPResult()},u.cityISPOrg=function(e,r,s){var n=new a(e,r,s,"city_isp_org");n.getGeoIPResult()},u.omni=function(e,r,s){var n=new a(e,r,s,"omni");n.getGeoIPResult()},u}();})();
2//# sourceMappingURL=geoip2.js.map

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.