!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).doip=e()}}((function(){returnfunctione(t,r,i){functiono(n,a){if(!r[n]){if(!t[n]){varc="function"==typeofrequire&&require;if(!a&&c)returnc(n,!0);if(s)returns(n,!0);varl=newError("Cannot find module '"+n+"'");throwl.code="MODULE_NOT_FOUND",l}varu=r[n]={exports:{}};t[n][0].call(u.exports,(function(e){returno(t[n][1][e]||e)}),u,u.exports,e,t,r,i)}returnr[n].exports}for(vars="function"==typeofrequire&&require,n=0;n<i.length;n++)o(i[n]);returno}({1:[function(e,t,r){"use strict";consti=e("./core");classoextendsError{constructor(e,...t){letr;super(...t),Error.captureStackTrace&&Error.captureStackTrace(this,o),this.name="StatusError",this.message=e.statusMessage,this.statusCode=e.status,this.res=e,this.json=e.json.bind(e),this.text=e.text.bind(e),this.arrayBuffer=e.arrayBuffer.bind(e);Object.defineProperty(this,"responseBody",{get:()=>(r||(r=this.arrayBuffer()),r)}),this.headers={};for(const[t,r]ofe.headers.entries())this.headers[t.toLowerCase()]=r}}t.exports=i(((e,t,r,i,s)=>async(n,a,c={})=>{n=s+(n||"");letl=newURL(n);if(i||(i={}),l.username&&(i.Authorization="Basic "+btoa(l.username+":"+l.password),l=newURL(l.protocol+"//"+l.host+l.pathname+l.search)),"https:"!==l.protocol&&"http:"!==l.protocol)thrownewError("Unknown protocol, "+l.protocol);if(a)if(ainstanceofArrayBuffer||ArrayBuffer.isView(a)||"string"==typeofa);else{if("object"!=typeofa)thrownewError("Unknown body type.");a=JSON.stringify(a),i["Content-Type"]="application/json"}c=newHeaders({...i||{},...c});constu=awaitfetch(l,{method:t,headers:c,body:a});if(u.statusCode=u.status,!e.has(u.status))thrownewo(u);return"json"===r?u.json():"buffer"===r?u.arrayBuffer():"string"===r?u.text():u}))},{"./core":2}],2:[function(e,t,r){"use strict";consti=newSet(["json","buffer","string"]);t.exports=e=>(...t)=>{constr=newSet;leto,s,n,a="";returnt.forEach((e=>{if("string"==typeofe)if(e.toUpperCase()===e){if(o){thrownewError(`Can't set method to ${e}, already set to ${o}.`)}o=e}elseif(e.startsWith("http:")||e.startsWith("https:"))a=e;else{if(!i.has(e))thrownewError("Unknown encoding, "+e);s=e}elseif("number"==typeofe)r.add(e);else{if("object"!=typeofe)thrownewError("Unknown type: "+typeofe);if(Array.isArray(e)||einstanceofSet)e.forEach((e=>r.add(e)));else{if(n)thrownewError("Cannot set headers twice.");n=e}}})),o||(o="GET"),0===r.size&&r.add(200),e(r,o,s,n,a)}},{}],3:[function(e,t,r){},{}],4:[function(e,t,r){"use strict";t.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;constt=Object.getPrototypeOf(e);returnnull===t||t===Object.prototype}},{}],5:[function(e,t,r){"use strict";consti=e("is-plain-obj"),{hasOwnProperty:o}=Object.prototype,{propertyIsEnumerable:s}=Object,n=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}),a=this,c={concatArrays:!1,ignoreUndefined:!1},l=e=>{constt=[];for(constrine)o.call(e,r)&&t.push(r);if(Object.getOwnPropertySymbols){constr=Object.getOwnPropertySymbols(e);for(constiofr)s.call(e,i)&&t.push(i)}returnt};functionu(e){returnArray.isArray(e)?function(e){constt=e.slice(0,0);returnl(e).forEach((r=>{n(t,r,u(e[r]))})),t}(e):i(e)?function(e){constt=null===Object.getPrototypeOf(e)?Object.create(null):{};returnl(e).forEach((r=>{n(t,r,u(e[r]))})),t}(e):e}constp=(e,t,r,i)=>(r.forEach((r=>{void0===t[r]&&i.ignoreUndefined||(rine&&e[r]!==Object.getPrototypeOf(e)?n(e,r,d(e[r],t[r],i)):n(e,r,u(t[r])))})),e);functiond(e,t,r){returnr.concatArrays&&Array.isArray(e)&&Array.isArray(t)?((e,t,r)=>{leti=e.slice(0,0),s=0;return[e,t].forEach((t=>{consta=[];for(letr=0;r<t.length;r++)o.call(t,r)&&(a.push(String(r)),n(i,s++,t===e?t[r]:u(t[r])));i=p(i,t,l(t).filter((e=>!a.includes(e))),r)})),i})(e,t,r):i(t)&&i(e)?p(e,t,l(t),r):u(t)}t.exports=function(...e){constt=d(u(c),this!==a&&this||{}