@blackglory/geyser-js 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es2015/index.min.mjs +2 -2
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +5728 -3653
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +5732 -3655
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +4 -4
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +5779 -3704
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +5733 -3656
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +3 -3
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/package.json +8 -7
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import e from"stream";
|
|
1
2
|
/*! *****************************************************************************
|
|
2
3
|
Copyright (c) Microsoft Corporation.
|
|
3
4
|
|
|
@@ -11,6 +12,5 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
11
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
function e(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var r={},o={fetch:void 0};o.fetch=globalThis.fetch.bind(globalThis);var i={Headers:void 0};i.Headers=globalThis.Headers;var s={Request:void 0};s.Request=globalThis.Request;var a={Response:void 0};a.Response=globalThis.Response;var c={FormData:void 0};c.FormData=globalThis.FormData;var u={AbortController:void 0};u.AbortController=globalThis.AbortController;var l={AbortError:void 0};l.AbortError=globalThis.DOMException;var d={Blob:void 0};d.Blob=globalThis.Blob;var f,h,p,y={};y.EventSource=void 0,y.EventSource=globalThis.EventSource,f=r,h=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),(p=t&&t.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)})(o,f),p(i,f),p(s,f),p(a,f),p(c,f),p(u,f),p(l,f),p(d,f),p(y,f);var v={},m=n(Object.freeze({__proto__:null})),g={},b={},w={};function A(e){return Array.isArray(e)}w.isntEmptyArray=w.isEmptyArray=w.isntArray=w.isArray=void 0,w.isArray=A,w.isntArray=function(e){return!A(e)},w.isEmptyArray=function(e){return 0===e.length},w.isntEmptyArray=function(e){return 0!==e.length};var E={},S={};function R(e){return null===e}S.isntNull=S.isNull=void 0,S.isNull=R,S.isntNull=function(e){return!R(e)};var _={};function T(e){return void 0===e}_.isntUndefined=_.isUndefined=void 0,_.isUndefined=T,_.isntUndefined=function(e){return!T(e)},E.isntAsyncIterable=E.isAsyncIterable=void 0;const x=S,C=_;function k(e){return(0,x.isntNull)(e)&&(0,C.isntUndefined)(e)&&"function"==typeof e[Symbol.asyncIterator]}E.isAsyncIterable=k,E.isntAsyncIterable=function(e){return!k(e)};var O={};function P(e){return"bigint"==typeof e}O.isntBigInt=O.isBigInt=void 0,O.isBigInt=P,O.isntBigInt=function(e){return!P(e)};var I={};function N(e){return"boolean"==typeof e}I.isntBoolean=I.isBoolean=void 0,I.isBoolean=N,I.isntBoolean=function(e){return!N(e)};var j={},U={};function q(e){return"string"==typeof e}U.isntString=U.isString=void 0,U.isString=q,U.isntString=function(e){return!q(e)},j.isntChar=j.isChar=void 0;const F=U;function L(e){return(0,F.isString)(e)&&1===e.length}j.isChar=L,j.isntChar=function(e){return!L(e)};var B={};function D(e){return e instanceof Date}B.isntDate=B.isDate=void 0,B.isDate=D,B.isntDate=function(e){return!D(e)};var M={};M.inEnum=void 0,M.inEnum=function(e,t){return Object.values(t).includes(e)};var H={};function J(e){return e instanceof Error}H.isntError=H.isError=void 0,H.isError=J,H.isntError=function(e){return!J(e)};var z={};function $(e){return!e}z.isntFalsy=z.isFalsy=void 0,z.isFalsy=$,z.isntFalsy=function(e){return!$(e)};var G={};function V(e){return"function"==typeof e}G.isntFunction=G.isFunction=void 0,G.isFunction=V,G.isntFunction=function(e){return!V(e)};var K={};K.isntIterable=K.isIterable=void 0;const W=S,Z=_;function Q(e){return(0,W.isntNull)(e)&&(0,Z.isntUndefined)(e)&&"function"==typeof e[Symbol.iterator]}K.isIterable=Q,K.isntIterable=function(e){return!Q(e)};var Y={},X={};var ee=Function.prototype,te=Object.prototype,ne=ee.toString,re=te.hasOwnProperty,oe=ne.call(Object),ie=te.toString,se=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var ae=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=ie.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=se(e);if(null===t)return!0;var n=re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ne.call(n)==oe},ce=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};X.isntEmptyObject=X.isEmptyObject=X.isntPlainObject=X.isPlainObject=X.isntObject=X.isObject=void 0;const ue=ce(ae);function le(e){return null!==e&&"object"==typeof e}function de(e){return(0,ue.default)(e)}X.isObject=le,X.isntObject=function(e){return!le(e)},X.isPlainObject=de,X.isntPlainObject=function(e){return!de(e)},X.isEmptyObject=function(e){return 0===Object.keys(e).length},X.isntEmptyObject=function(e){return 0!==Object.keys(e).length};var fe={};function he(e){return"number"==typeof e}fe.isntNumber=fe.isNumber=void 0,fe.isNumber=he,fe.isntNumber=function(e){return!he(e)},Y.isntJsonRpcError=Y.isJsonRpcError=Y.isntJsonRpcSuccess=Y.isJsonRpcSuccess=Y.isntJsonRpcRequest=Y.isJsonRpcRequest=Y.isntJsonRpcNotification=Y.isJsonRpcNotification=void 0;const pe=w,ye=X,ve=U,me=fe,ge=_;function be(e){return(0,ve.isString)(e)||(0,me.isNumber)(e)}function we(e){return(0,pe.isArray)(e)||(0,ye.isObject)(e)}function Ae(e){return(0,ye.isPlainObject)(e)&&(0,ve.isString)(e.jsonrpc)&&(0,ve.isString)(e.method)&&(0,ge.isUndefined)(e.id)&&we(e.params)}function Ee(e){return(0,ye.isPlainObject)(e)&&(0,ve.isString)(e.jsonrpc)&&(0,ve.isString)(e.method)&&be(e.id)&&we(e.params)}function Se(e){return(0,ye.isPlainObject)(e)&&(0,ve.isString)(e.jsonrpc)&&(0,ve.isString)(e.id)&&"result"in e}function Re(e){return(0,ye.isPlainObject)(e)&&(0,ve.isString)(e.jsonrpc)&&be(e.id)&&function(e){return(0,ye.isPlainObject)(e)&&(0,me.isNumber)(e.code)&&(0,ve.isString)(e.message)&&((0,ge.isUndefined)(e.data)||(0,ye.isObject)(e.data))}(e.error)}Y.isJsonRpcNotification=Ae,Y.isntJsonRpcNotification=function(e){return!Ae(e)},Y.isJsonRpcRequest=Ee,Y.isntJsonRpcRequest=function(e){return!Ee(e)},Y.isJsonRpcSuccess=Se,Y.isntJsonRpcSuccess=function(e){return!Se(e)},Y.isJsonRpcError=Re,Y.isntJsonRpcError=function(e){return!Re(e)};var _e={};_e.isntJson=_e.isJson=void 0,_e.isJson=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},_e.isntJson=function e(t){return!e()};var Te={};Te.isAbsoluteURL=void 0,Te.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(w,e),r(E,e),r(O,e),r(I,e),r(j,e),r(B,e),r(M,e),r(H,e),r(z,e),r(G,e),r(K,e),r(Y,e),r(_e,e),r(S,e),r(fe,e),r(X,e),r(U,e),r(_,e),r(Te,e)}(b),g.del=g.patch=g.put=g.post=g.head=g.get=void 0;const xe=r,Ce=b;function ke(e,...t){const n=t.reduce(((e,t)=>(0,Ce.isFunction)(t)?t(e):e),{url:new URL("http://localhost"),headers:new xe.Headers}),r=new xe.Headers(n.headers);return new xe.Request(n.url.href,{method:e,headers:r,signal:n.signal,body:n.payload,keepalive:n.keepalive})}g.get=function(...e){return ke("GET",...e)},g.head=function(...e){return ke("HEAD",...e)},g.post=function(...e){return ke("POST",...e)},g.put=function(...e){return ke("PUT",...e)},g.patch=function(...e){return ke("PATCH",...e)},g.del=function(...e){return ke("DELETE",...e)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(m,e),r(g,e)}(v);var Oe={},Pe={};Pe.url=void 0,Pe.url=function(...e){return t=>({...t,url:new URL(e.reduce(((e,t)=>new URL(t,e).href)))})};var Ie={text:void 0};const Ne=r;Ie.text=function(e){return t=>{const n=new Ne.Headers(t.headers);return n.set("Content-Type","application/x-www-form-urlencoded"),{...t,headers:n,payload:e}}};var je={json:void 0};const Ue=r;je.json=function(e){return t=>{const n=new Ue.Headers(t.headers);return n.set("Content-Type","application/json"),{...t,headers:n,payload:JSON.stringify(e)}}};var qe={},Fe={exports:{}};Fe.exports=function e(){var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},n=!t.document&&!!t.postMessage,r=n&&/blob:/i.test((t.location||{}).protocol),o={},i=0,s={parse:function(n,r){var a=(r=r||{}).dynamicTyping||!1;if(A(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!A(r.transform)&&r.transform,r.worker&&s.WORKERS_SUPPORTED){var c=function(){if(!s.WORKERS_SUPPORTED)return!1;var n,r,a=(n=t.URL||t.webkitURL||null,r=e.toString(),s.BLOB_URL||(s.BLOB_URL=n.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),c=new t.Worker(a);return c.onmessage=v,c.id=i++,o[c.id]=c}();return c.userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error,r.step=A(r.step),r.chunk=A(r.chunk),r.complete=A(r.complete),r.error=A(r.error),delete r.worker,void c.postMessage({input:n,config:r,workerId:c.id})}var h=null;return s.NODE_STREAM_INPUT,"string"==typeof n?h=r.download?new u(r):new d(r):!0===n.readable&&A(n.read)&&A(n.on)?h=new f(r):(t.File&&n instanceof File||n instanceof Object)&&(h=new l(r)),h.stream(n)},unparse:function(e,t){var n=!1,r=!0,o=",",i="\r\n",a='"',c=a+a,u=!1,l=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||s.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");l=t.columns}void 0!==t.escapeChar&&(c=t.escapeChar+a),"boolean"==typeof t.escapeFormulae&&(d=t.escapeFormulae)}}();var f=new RegExp(p(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,u);if("object"==typeof e[0])return h(l||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(e,t,n){var s="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&0<e.length,c=!Array.isArray(t[0]);if(a&&r){for(var u=0;u<e.length;u++)0<u&&(s+=o),s+=y(e[u],u);0<t.length&&(s+=i)}for(var l=0;l<t.length;l++){var d=a?e.length:t[l].length,f=!1,h=a?0===Object.keys(t[l]).length:0===t[l].length;if(n&&!a&&(f="greedy"===n?""===t[l].join("").trim():1===t[l].length&&0===t[l][0].length),"greedy"===n&&a){for(var p=[],v=0;v<d;v++){var m=c?e[v]:v;p.push(t[l][m])}f=""===p.join("").trim()}if(!f){for(var g=0;g<d;g++){0<g&&!h&&(s+=o);var b=a&&c?e[g]:g;s+=y(t[l][b],g)}l<t.length-1&&(!n||0<d&&!h)&&(s+=i)}}return s}function y(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);!0===d&&"string"==typeof e&&null!==e.match(/^[=+\-@].*$/)&&(e="'"+e);var r=e.toString().replace(f,c);return"boolean"==typeof n&&n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1}(r,s.BAD_DELIMITERS)||-1<r.indexOf(o)||" "===r.charAt(0)||" "===r.charAt(r.length-1)?a+r+a:r}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\ufeff",s.BAD_DELIMITERS=["\r","\n",'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!n&&!!t.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=y,s.ParserHandle=h,s.NetworkStreamer=u,s.FileStreamer=l,s.StringStreamer=d,s.ReadableStreamStreamer=f,t.jQuery){var a=t.jQuery;a.fn.parse=function(e){var n=e.config||{},r=[];return this.each((function(e){if("INPUT"!==a(this).prop("tagName").toUpperCase()||"file"!==a(this).attr("type").toLowerCase()||!t.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)r.push({file:this.files[o],inputElem:this,instanceConfig:a.extend({},n)})})),o(),this;function o(){if(0!==r.length){var t,n,o,c,u=r[0];if(A(e.before)){var l=e.before(u.file,u.inputElem);if("object"==typeof l){if("abort"===l.action)return t="AbortError",n=u.file,o=u.inputElem,c=l.reason,void(A(e.error)&&e.error({name:t},n,o,c));if("skip"===l.action)return void i();"object"==typeof l.config&&(u.instanceConfig=a.extend(u.instanceConfig,l.config))}else if("skip"===l)return void i()}var d=u.instanceConfig.complete;u.instanceConfig.complete=function(e){A(d)&&d(e,u.file,u.inputElem),i()},s.parse(u.file,u.instanceConfig)}else A(e.complete)&&e.complete()}function i(){r.splice(0,1),o()}}}function c(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new h(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,n){if(this.isFirstChunk&&A(this._config.beforeFirstChunk)){var o=this._config.beforeFirstChunk(e);void 0!==o&&(e=o)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e;this._partialLine="";var a=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var c=a.meta.cursor;this._finished||(this._partialLine=i.substring(c-this._baseIndex),this._baseIndex=c),a&&a.data&&(this._rowCount+=a.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)t.postMessage({results:a,workerId:s.WORKER_ID,finished:u});else if(A(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!u||!A(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){A(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=s.RemoteChunkSize),c.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+o)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function l(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=s.LocalChunkSize),c.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var o=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,o)}var i=t.readAsText(e,this._config.encoding);r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;c.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function f(e){c.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=w((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=w((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=w((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=w((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function h(e){var t,n,r,o=Math.pow(2,53),i=-o,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,c=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,u=this,l=0,d=0,f=!1,h=!1,v=[],m={data:[],errors:[],meta:{}};if(A(e.step)){var g=e.step;e.step=function(t){if(m=t,S())E();else{if(E(),0===m.data.length)return;l+=t.data.length,e.preview&&l>e.preview?n.abort():(m.data=m.data[0],g(m,u))}}}function w(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function E(){if(m&&r&&(_("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines)for(var t=0;t<m.data.length;t++)w(m.data[t])&&m.data.splice(t--,1);return S()&&function(){if(m)if(Array.isArray(m.data[0])){for(var t=0;S()&&t<m.data.length;t++)m.data[t].forEach(n);m.data.splice(0,1)}else m.data.forEach(n);function n(t,n){A(e.transformHeader)&&(t=e.transformHeader(t,n)),v.push(t)}}(),function(){if(!m||!e.header&&!e.dynamicTyping&&!e.transform)return m;function t(t,n){var r,o=e.header?{}:[];for(r=0;r<t.length;r++){var i=r,s=t[r];e.header&&(i=r>=v.length?"__parsed_extra":v[r]),e.transform&&(s=e.transform(s,i)),s=R(i,s),"__parsed_extra"===i?(o[i]=o[i]||[],o[i].push(s)):o[i]=s}return e.header&&(r>v.length?_("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+r,d+n):r<v.length&&_("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+r,d+n)),o}var n=1;return!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(t),n=m.data.length):m.data=t(m.data,0),e.header&&m.meta&&(m.meta.fields=v),d+=n,m}()}function S(){return e.header&&0===v.length}function R(t,n){return r=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[r]&&(e.dynamicTyping[r]=e.dynamicTypingFunction(r)),!0===(e.dynamicTyping[r]||e.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(e){if(a.test(e)){var t=parseFloat(e);if(i<t&&t<o)return!0}return!1}(n)?parseFloat(n):c.test(n)?new Date(n):""===n?null:n):n;var r}function _(e,t,n,r){var o={type:e,code:t,message:n};void 0!==r&&(o.row=r),m.errors.push(o)}this.parse=function(o,i,a){var c=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var n=new RegExp(p(t)+"([^]*?)"+p(t),"gm"),r=(e=e.replace(n,"")).split("\r"),o=e.split("\n"),i=1<o.length&&o[0].length<r[0].length;if(1===r.length||i)return"\n";for(var s=0,a=0;a<r.length;a++)"\n"===r[a][0]&&s++;return s>=r.length/2?"\r\n":"\r"}(o,c)),r=!1,e.delimiter)A(e.delimiter)&&(e.delimiter=e.delimiter(o),m.meta.delimiter=e.delimiter);else{var u=function(t,n,r,o,i){var a,c,u,l;i=i||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var d=0;d<i.length;d++){var f=i[d],h=0,p=0,v=0;u=void 0;for(var m=new y({comments:o,delimiter:f,newline:n,preview:10}).parse(t),g=0;g<m.data.length;g++)if(r&&w(m.data[g]))v++;else{var b=m.data[g].length;p+=b,void 0!==u?0<b&&(h+=Math.abs(b-u),u=b):u=b}0<m.data.length&&(p/=m.data.length-v),(void 0===c||h<=c)&&(void 0===l||l<p)&&1.99<p&&(c=h,a=f,l=p)}return{successful:!!(e.delimiter=a),bestDelimiter:a}}(o,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);u.successful?e.delimiter=u.bestDelimiter:(r=!0,e.delimiter=s.DefaultDelimiter),m.meta.delimiter=e.delimiter}var l=b(e);return e.preview&&e.header&&l.preview++,t=o,n=new y(l),m=n.parse(t,i,a),E(),f?{meta:{paused:!0}}:m||{meta:{paused:!1}}},this.paused=function(){return f},this.pause=function(){f=!0,n.abort(),t=A(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(f=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),m.meta.aborted=!0,A(e.complete)&&e.complete(m),t=""}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(e){var t,n=(e=e||{}).delimiter,r=e.newline,o=e.comments,i=e.step,a=e.preview,c=e.fastMode,u=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(u=e.escapeChar),("string"!=typeof n||-1<s.BAD_DELIMITERS.indexOf(n))&&(n=","),o===n)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||-1<s.BAD_DELIMITERS.indexOf(o))&&(o=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var l=0,d=!1;this.parse=function(e,s,f){if("string"!=typeof e)throw new Error("Input must be a string");var h=e.length,y=n.length,v=r.length,m=o.length,g=A(i),b=[],w=[],E=[],S=l=0;if(!e)return q();if(c||!1!==c&&-1===e.indexOf(t)){for(var R=e.split(r),_=0;_<R.length;_++){if(E=R[_],l+=E.length,_!==R.length-1)l+=r.length;else if(f)return q();if(!o||E.substring(0,m)!==o){if(g){if(b=[],I(E.split(n)),F(),d)return q()}else I(E.split(n));if(a&&a<=_)return b=b.slice(0,a),q(!0)}}return q()}for(var T=e.indexOf(n,l),x=e.indexOf(r,l),C=new RegExp(p(u)+p(t),"g"),k=e.indexOf(t,l);;)if(e[l]!==t)if(o&&0===E.length&&e.substring(l,l+m)===o){if(-1===x)return q();l=x+v,x=e.indexOf(r,l),T=e.indexOf(n,l)}else if(-1!==T&&(T<x||-1===x))E.push(e.substring(l,T)),l=T+y,T=e.indexOf(n,l);else{if(-1===x)break;if(E.push(e.substring(l,x)),U(x+v),g&&(F(),d))return q();if(a&&b.length>=a)return q(!0)}else for(k=l,l++;;){if(-1===(k=e.indexOf(t,k+1)))return f||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:l}),j();if(k===h-1)return j(e.substring(l,k).replace(C,t));if(t!==u||e[k+1]!==u){if(t===u||0===k||e[k-1]!==u){-1!==T&&T<k+1&&(T=e.indexOf(n,k+1)),-1!==x&&x<k+1&&(x=e.indexOf(r,k+1));var O=N(-1===x?T:Math.min(T,x));if(e[k+1+O]===n){E.push(e.substring(l,k).replace(C,t)),e[l=k+1+O+y]!==t&&(k=e.indexOf(t,l)),T=e.indexOf(n,l),x=e.indexOf(r,l);break}var P=N(x);if(e.substring(k+1+P,k+1+P+v)===r){if(E.push(e.substring(l,k).replace(C,t)),U(k+1+P+v),T=e.indexOf(n,l),k=e.indexOf(t,l),g&&(F(),d))return q();if(a&&b.length>=a)return q(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:l}),k++}}else k++}return j();function I(e){b.push(e),S=l}function N(t){var n=0;if(-1!==t){var r=e.substring(k+1,t);r&&""===r.trim()&&(n=r.length)}return n}function j(t){return f||(void 0===t&&(t=e.substring(l)),E.push(t),l=h,I(E),g&&F()),q()}function U(t){l=t,I(E),E=[],x=e.indexOf(r,l)}function q(e){return{data:b,errors:w,meta:{delimiter:n,linebreak:r,aborted:d,truncated:!!e,cursor:S+(s||0)}}}function F(){i(q()),b=[],w=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return l}}function v(e){var t=e.data,n=o[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:g,resume:g};if(A(n.userStep)){for(var s=0;s<t.results.data.length&&(n.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},i),!r);s++);delete t.results}else A(n.userChunk)&&(n.userChunk(t.results,i,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var n=o[e];A(n.userComplete)&&n.userComplete(t),n.terminate(),delete o[e]}function g(){throw new Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=b(e[n]);return t}function w(e,t){return function(){e.apply(t,arguments)}}function A(e){return"function"==typeof e}return r&&(t.onmessage=function(e){var n=e.data;if(void 0===s.WORKER_ID&&n&&(s.WORKER_ID=n.workerId),"string"==typeof n.input)t.postMessage({workerId:s.WORKER_ID,results:s.parse(n.input,n.config),finished:!0});else if(t.File&&n.input instanceof File||n.input instanceof Object){var r=s.parse(n.input,n.config);r&&t.postMessage({workerId:s.WORKER_ID,results:r,finished:!0})}}),(u.prototype=Object.create(c.prototype)).constructor=u,(l.prototype=Object.create(c.prototype)).constructor=l,(d.prototype=Object.create(d.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,s}();var Le={},Be={CustomError:void 0};class De extends Error{get name(){return this.constructor.name}}Be.CustomError=De;var Me={ExpectedError:void 0};const He=Be;class Je extends He.CustomError{}Me.ExpectedError=Je;var ze={AssertionError:void 0};const $e=Be;class Ge extends $e.CustomError{}ze.AssertionError=Ge;var Ve={};Ve.normalize=void 0,Ve.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var Ke={refute:void 0};const We=Me;Ke.refute=function(e,t){if(e)throw new We.ExpectedError(t)};var Ze={assert:void 0};const Qe=ze;Ze.assert=function(e,t){if(!e)throw new Qe.AssertionError(t)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Be,e),r(Me,e),r(ze,e),r(Ve,e),r(Ke,e),r(Ze,e)}(Le),qe.csv=void 0;const Ye=r,Xe=Fe.exports,et=Le;function tt(e){const t=Object.keys(e[0]);return(0,Xe.unparse)({data:e,fields:t})}qe.csv=function(e){return(0,et.assert)(e.length>0,"payload must be a non-empty array"),t=>{const n=new Ye.Headers(t.headers);return n.set("Content-Type","text/csv"),{...t,headers:n,payload:tt(e)}}};var nt={};nt.signal=void 0,nt.signal=function(e){return t=>({...t,signal:e})};var rt={header:void 0};const ot=r;rt.header=function(e,t){return n=>{const r=new ot.Headers(n.headers);return r.set(e,t),{...n,headers:r}}};var it={appendHeader:void 0};const st=r;it.appendHeader=function(e,t){return n=>{const r=new st.Headers(n.headers);return r.append(e,t),{...n,headers:r}}};var at={headers:void 0};const ct=r;at.headers=function(e){return t=>{const n=new ct.Headers(t.headers);for(const[t,r]of Object.entries(e))n.set(t,r);return{...t,headers:n}}};var ut={accept:void 0};const lt=it;ut.accept=function(e){return(0,lt.appendHeader)("Accept",e)};var dt={};dt.host=void 0,dt.host=function(e){return t=>{const n=new URL(t.url.href);return n.host=e,{...t,url:n}}};var ft={};ft.port=void 0,ft.port=function(e){return t=>{const n=new URL(t.url.href);return n.port=e.toString(),{...t,url:n}}};var ht={};ht.pathname=void 0,ht.pathname=function(e){return t=>{const n=new URL(t.url.href);return n.pathname=e,{...t,url:n}}};var pt={};pt.search=void 0,pt.search=function(e){return t=>{const n=new URL(t.url.href);return n.search=e,{...t,url:n}}};var yt={};yt.searchParam=void 0,yt.searchParam=function(e,t){return n=>{const r=new URL(n.url.href),o=new URLSearchParams(r.searchParams);return o.set(e,t.toString()),r.search=o.toString(),{...n,url:r}}};var vt={};vt.searchParams=void 0,vt.searchParams=function(e){return t=>{const n=new URL(t.url.href),r=new URLSearchParams(n.searchParams);for(const[t,n]of Object.entries(e))r.set(t,n.toString());return n.search=r.toString(),{...t,url:n}}};var mt={};mt.appendSearchParam=void 0,mt.appendSearchParam=function(e,t){return n=>{const r=new URL(n.url.href),o=new URLSearchParams(r.searchParams);return o.append(e,t.toString()),r.search=o.toString(),{...n,url:r}}};var gt={formDataField:void 0};const bt=r,wt=b;gt.formDataField=function(e,t){return n=>{const r=n.payload instanceof bt.FormData?function(e){const t=new bt.FormData;for(const[n,r]of e.entries())t.append(n,r);return t}(n.payload):new bt.FormData;return(0,wt.isArray)(t)?t.forEach((t=>r.append(e,t))):r.append(e,t),{...n,payload:r}}};var At,Et,St,Rt,_t,Tt,xt,Ct,kt,Ot,Pt,It,Nt,jt,Ut,qt,Ft,Lt,Bt,Dt,Mt,Ht,Jt,zt,$t,Gt,Vt,Kt,Wt,Zt,Qt,Yt,Xt,en,tn,nn,rn,on,sn,an,cn,un={},ln={exports:{}};"undefined"!=typeof self?self:"undefined"!=typeof window&&window,ln.exports=(Et=At="3.7.2",St="function"==typeof atob,Rt="function"==typeof btoa,_t="function"==typeof Buffer,Tt="function"==typeof TextDecoder?new TextDecoder:void 0,xt="function"==typeof TextEncoder?new TextEncoder:void 0,Ct="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",kt=Array.prototype.slice.call(Ct),cn={},kt.forEach((function(e,t){return cn[e]=t})),Ot=cn,Pt=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,It=String.fromCharCode.bind(String),Nt="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},jt=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},Ut=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},qt=function(e){for(var t,n,r,o,i="",s=e.length%3,a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");i+=kt[(t=n<<16|r<<8|o)>>18&63]+kt[t>>12&63]+kt[t>>6&63]+kt[63&t]}return s?i.slice(0,s-3)+"===".substring(s):i},Lt=_t?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,o=e.length;r<o;r+=t)n.push(It.apply(null,e.subarray(r,r+t)));return Ft(n.join(""))},Dt=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?It(192|t>>>6)+It(128|63&t):It(224|t>>>12&15)+It(128|t>>>6&63)+It(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return It(240|t>>>18&7)+It(128|t>>>12&63)+It(128|t>>>6&63)+It(128|63&t)},Mt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Jt=_t?function(e){return Buffer.from(e,"utf8").toString("base64")}:xt?function(e){return Lt(xt.encode(e))}:function(e){return Ft(Ht(e))},$t=function(e){return zt(e,!0)},Gt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Vt=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return It(55296+(t>>>10))+It(56320+(1023&t));case 3:return It((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return It((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Wt=function(e){if(e=e.replace(/\s+/g,""),!Pt.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,o="",i=0;i<e.length;)t=Ot[e.charAt(i++)]<<18|Ot[e.charAt(i++)]<<12|(n=Ot[e.charAt(i++)])<<6|(r=Ot[e.charAt(i++)]),o+=64===n?It(t>>16&255):64===r?It(t>>16&255,t>>8&255):It(t>>16&255,t>>8&255,255&t);return o},Qt=_t?function(e){return Nt(Buffer.from(e,"base64"))}:function(e){return Nt(Zt(e),(function(e){return e.charCodeAt(0)}))},Yt=function(e){return Qt(en(e))},Xt=_t?function(e){return Buffer.from(e,"base64").toString("utf8")}:Tt?function(e){return Tt.decode(Qt(e))}:function(e){return Kt(Zt(e))},en=function(e){return Ut(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},nn=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},rn=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,nn(t))};e("fromBase64",(function(){return tn(this)})),e("toBase64",(function(e){return zt(this,e)})),e("toBase64URI",(function(){return zt(this,!0)})),e("toBase64URL",(function(){return zt(this,!0)})),e("toUint8Array",(function(){return Yt(this)}))},on=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,nn(t))};e("toBase64",(function(e){return Bt(this,e)})),e("toBase64URI",(function(){return Bt(this,!0)})),e("toBase64URL",(function(){return Bt(this,!0)}))},sn=function(){rn(),on()},an={version:At,VERSION:Et,atob:Zt=St?function(e){return atob(Ut(e))}:_t?function(e){return Buffer.from(e,"base64").toString("binary")}:Wt,atobPolyfill:Wt,btoa:Ft=Rt?function(e){return btoa(e)}:_t?function(e){return Buffer.from(e,"binary").toString("base64")}:qt,btoaPolyfill:qt,fromBase64:tn=function(e){return Xt(en(e))},toBase64:zt=function(e,t){return void 0===t&&(t=!1),t?jt(Jt(e)):Jt(e)},encode:zt,encodeURI:$t,encodeURL:$t,utob:Ht=function(e){return e.replace(Mt,Dt)},btou:Kt=function(e){return e.replace(Gt,Vt)},decode:tn,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:Bt=function(e,t){return void 0===t&&(t=!1),t?jt(Lt(e)):Lt(e)},toUint8Array:Yt,extendString:rn,extendUint8Array:on,extendBuiltins:sn,Base64:{}},Object.keys(an).forEach((function(e){return an.Base64[e]=an[e]})),an),un.basicAuth=void 0;const dn=rt,fn=ln.exports;un.basicAuth=function(e,t){return(0,dn.header)("Authorization","Basic "+(0,fn.btoa)(`${e}:${t}`))};var hn={bearerAuth:void 0};const pn=rt;hn.bearerAuth=function(e){return(0,pn.header)("Authorization",`Bearer ${e}`)};var yn={};yn.keepalive=void 0,yn.keepalive=function(e=!0){return t=>({...t,keepalive:e})},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Pe,e),r(Ie,e),r(je,e),r(qe,e),r(nt,e),r(rt,e),r(it,e),r(at,e),r(ut,e),r(dt,e),r(ft,e),r(ht,e),r(pt,e),r(yt,e),r(vt,e),r(mt,e),r(gt,e),r(un,e),r(hn,e),r(yn,e)}(Oe);var vn={},mn={},gn={},bn=n(Object.freeze({__proto__:null})),wn={},An={},En={CustomError:void 0};class Sn extends Error{get name(){return this.constructor.name}}En.CustomError=Sn;var Rn={ExpectedError:void 0};const _n=En;class Tn extends _n.CustomError{}Rn.ExpectedError=Tn;var xn={AssertionError:void 0};const Cn=En;class kn extends Cn.CustomError{}xn.AssertionError=kn;var On={};On.normalize=void 0,On.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var Pn={refute:void 0};const In=Rn;Pn.refute=function(e,t){if(e)throw new In.ExpectedError(t)};var Nn={assert:void 0};const jn=xn;Nn.assert=function(e,t){if(!e)throw new jn.AssertionError(t)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(En,e),r(Rn,e),r(xn,e),r(On,e),r(Pn,e),r(Nn,e)}(An),wn.HTTPError=void 0;const Un=An;wn.HTTPError=class extends Un.CustomError{constructor(e,t){super(t),this.code=e}};var qn={},Fn={};!function(e){e.ServerError=e.ClientError=e.Redirection=e.Successful=e.Informational=void 0,function(e){e[e.Continue=100]="Continue",e[e.SwitchingProtocol=101]="SwitchingProtocol",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints"}(e.Informational||(e.Informational={})),function(e){e[e.OK=200]="OK",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.IMUsed=226]="IMUsed"}(e.Successful||(e.Successful={})),function(e){e[e.MultipleChoice=300]="MultipleChoice",e[e.MovedPermanently=3011]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(e.Redirection||(e.Redirection={})),function(e){e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.URITooLong=414]="URITooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons"}(e.ClientError||(e.ClientError={})),function(e){e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HTTPVersionNotSupported=505]="HTTPVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired"}(e.ServerError||(e.ServerError={}))}(Fn),qn.EarlyHints=qn.Processing=qn.SwitchingProtocol=qn.Continue=qn.HTTPInformational=void 0;const Ln=Fn;class Bn{constructor(e,t){this.code=e,this.message=t}}qn.HTTPInformational=Bn;qn.Continue=class extends Bn{constructor(){super(Ln.Informational.Continue,"Continue")}};qn.SwitchingProtocol=class extends Bn{constructor(){super(Ln.Informational.SwitchingProtocol,"Switching Protocol")}};qn.Processing=class extends Bn{constructor(){super(Ln.Informational.Processing,"Processing")}};qn.EarlyHints=class extends Bn{constructor(){super(Ln.Informational.EarlyHints,"Early Hints")}};var Dn={};Dn.IMUsed=Dn.AlreadyReported=Dn.MultiStatus=Dn.PartialContent=Dn.ResetContent=Dn.NoContent=Dn.NonAuthoritativeInformation=Dn.Accepted=Dn.Created=Dn.OK=Dn.HTTPSuccessful=void 0;const Mn=Fn;class Hn{constructor(e,t){this.code=e,this.message=t}}Dn.HTTPSuccessful=Hn;Dn.OK=class extends Hn{constructor(){super(Mn.Successful.OK,"OK")}};Dn.Created=class extends Hn{constructor(){super(Mn.Successful.Created,"Created")}};Dn.Accepted=class extends Hn{constructor(){super(Mn.Successful.Accepted,"Accepted")}};Dn.NonAuthoritativeInformation=class extends Hn{constructor(){super(Mn.Successful.NonAuthoritativeInformation,"Non-Authoritative Information")}};Dn.NoContent=class extends Hn{constructor(){super(Mn.Successful.NoContent,"No Content")}};Dn.ResetContent=class extends Hn{constructor(){super(Mn.Successful.ResetContent,"Reset Content")}};Dn.PartialContent=class extends Hn{constructor(){super(Mn.Successful.PartialContent,"Partial Content")}};Dn.MultiStatus=class extends Hn{constructor(){super(Mn.Successful.MultiStatus,"Multi-Status")}};Dn.AlreadyReported=class extends Hn{constructor(){super(Mn.Successful.AlreadyReported,"Already Reported")}};Dn.IMUsed=class extends Hn{constructor(){super(Mn.Successful.IMUsed,"IM Used")}};var Jn={};Jn.PermanentRedirect=Jn.TemporaryRedirect=Jn.NotModified=Jn.SeeOther=Jn.Found=Jn.MovedPermanently=Jn.MultipleChoice=Jn.HTTPRedirection=void 0;const zn=Fn;class $n{constructor(e,t){this.code=e,this.message=t}}Jn.HTTPRedirection=$n;Jn.MultipleChoice=class extends $n{constructor(){super(zn.Redirection.MultipleChoice,"Multiple Choice")}};Jn.MovedPermanently=class extends $n{constructor(){super(zn.Redirection.MovedPermanently,"Moved Permanently")}};Jn.Found=class extends $n{constructor(){super(zn.Redirection.Found,"Found")}};Jn.SeeOther=class extends $n{constructor(){super(zn.Redirection.SeeOther,"See Other")}};Jn.NotModified=class extends $n{constructor(){super(zn.Redirection.NotModified,"Not Modified")}};Jn.TemporaryRedirect=class extends $n{constructor(){super(zn.Redirection.TemporaryRedirect,"Temporary Redirect")}};Jn.PermanentRedirect=class extends $n{constructor(){super(zn.Redirection.PermanentRedirect,"Permanent Redirect")}};var Gn={};Gn.UnavailableForLegalReasons=Gn.RequestHeaderFieldsTooLarge=Gn.TooManyRequests=Gn.PreconditionRequired=Gn.UpgradeRequired=Gn.FailedDependency=Gn.Locked=Gn.UnprocessableEntity=Gn.MisdirectedRequest=Gn.ExpectationFailed=Gn.RangeNotSatisfiable=Gn.UnsupportedMediaType=Gn.URITooLong=Gn.PayloadTooLarge=Gn.PreconditionFailed=Gn.LengthRequired=Gn.Gone=Gn.Conflict=Gn.RequestTimeout=Gn.ProxyAuthenticationRequired=Gn.NotAcceptable=Gn.MethodNotAllowed=Gn.NotFound=Gn.Forbidden=Gn.Unauthorized=Gn.BadRequest=Gn.HTTPClientError=void 0;const Vn=wn,Kn=Fn;class Wn extends Vn.HTTPError{}Gn.HTTPClientError=Wn;Gn.BadRequest=class extends Wn{constructor(e){super(Kn.ClientError.BadRequest,null!=e?e:"Bad Request")}};Gn.Unauthorized=class extends Wn{constructor(e){super(Kn.ClientError.Unauthorized,null!=e?e:"Unauthorized")}};Gn.Forbidden=class extends Wn{constructor(e){super(Kn.ClientError.Forbidden,null!=e?e:"Forbidden")}};Gn.NotFound=class extends Wn{constructor(e){super(Kn.ClientError.NotFound,null!=e?e:"Not Found")}};Gn.MethodNotAllowed=class extends Wn{constructor(e){super(Kn.ClientError.MethodNotAllowed,null!=e?e:"Method Not Allowed")}};Gn.NotAcceptable=class extends Wn{constructor(e){super(Kn.ClientError.NotAcceptable,null!=e?e:"Not Acceptable")}};Gn.ProxyAuthenticationRequired=class extends Wn{constructor(e){super(Kn.ClientError.ProxyAuthenticationRequired,null!=e?e:"Proxy Authentication Required")}};Gn.RequestTimeout=class extends Wn{constructor(e){super(Kn.ClientError.RequestTimeout,null!=e?e:"Request Timeout")}};Gn.Conflict=class extends Wn{constructor(e){super(Kn.ClientError.Conflict,null!=e?e:"Conflict")}};Gn.Gone=class extends Wn{constructor(e){super(Kn.ClientError.Gone,null!=e?e:"Gone")}};Gn.LengthRequired=class extends Wn{constructor(e){super(Kn.ClientError.LengthRequired,null!=e?e:"Length Required")}};Gn.PreconditionFailed=class extends Wn{constructor(e){super(Kn.ClientError.PreconditionFailed,null!=e?e:"Precondition Failed")}};Gn.PayloadTooLarge=class extends Wn{constructor(e){super(Kn.ClientError.PayloadTooLarge,null!=e?e:"Payload Too Large")}};Gn.URITooLong=class extends Wn{constructor(e){super(Kn.ClientError.URITooLong,null!=e?e:"URI Too Long")}};Gn.UnsupportedMediaType=class extends Wn{constructor(e){super(Kn.ClientError.UnsupportedMediaType,null!=e?e:"Unsupported Media Type")}};Gn.RangeNotSatisfiable=class extends Wn{constructor(e){super(Kn.ClientError.RangeNotSatisfiable,null!=e?e:"Range Not Satisfiable")}};Gn.ExpectationFailed=class extends Wn{constructor(e){super(Kn.ClientError.ExpectationFailed,null!=e?e:"Expectation Failed")}};Gn.MisdirectedRequest=class extends Wn{constructor(e){super(Kn.ClientError.MisdirectedRequest,null!=e?e:"Misdirected Request")}};Gn.UnprocessableEntity=class extends Wn{constructor(e){super(Kn.ClientError.UnprocessableEntity,null!=e?e:"Unprocessable Entity")}};Gn.Locked=class extends Wn{constructor(e){super(Kn.ClientError.Locked,null!=e?e:"Locked")}};Gn.FailedDependency=class extends Wn{constructor(e){super(Kn.ClientError.FailedDependency,null!=e?e:"Failed Dependency")}};Gn.UpgradeRequired=class extends Wn{constructor(e){super(Kn.ClientError.UpgradeRequired,null!=e?e:"Upgrade Required")}};Gn.PreconditionRequired=class extends Wn{constructor(e){super(Kn.ClientError.PreconditionRequired,null!=e?e:"Precondition Required")}};Gn.TooManyRequests=class extends Wn{constructor(e){super(Kn.ClientError.TooManyRequests,null!=e?e:"Too Many Requests")}};Gn.RequestHeaderFieldsTooLarge=class extends Wn{constructor(e){super(Kn.ClientError.RequestHeaderFieldsTooLarge,null!=e?e:"Request Header Fields Too Large")}};Gn.UnavailableForLegalReasons=class extends Wn{constructor(e){super(Kn.ClientError.UnavailableForLegalReasons,null!=e?e:"Unavailable For Legal Reasons")}};var Zn={};Zn.NetworkAuthenticationRequired=Zn.NotExtended=Zn.LoopDetected=Zn.InsufficientStorage=Zn.VariantAlsoNegotiates=Zn.HTTPVersionNotSupported=Zn.GatewayTimeout=Zn.ServiceUnavailable=Zn.BadGateway=Zn.NotImplemented=Zn.InternalServerError=Zn.HTTPServerError=void 0;const Qn=wn,Yn=Fn;class Xn extends Qn.HTTPError{}Zn.HTTPServerError=Xn;Zn.InternalServerError=class extends Xn{constructor(e){super(Yn.ServerError.InternalServerError,null!=e?e:"Internal Server Error")}};Zn.NotImplemented=class extends Xn{constructor(e){super(Yn.ServerError.NotImplemented,null!=e?e:"Not Implemented")}};Zn.BadGateway=class extends Xn{constructor(e){super(Yn.ServerError.BadGateway,null!=e?e:"Bad Gateway")}};Zn.ServiceUnavailable=class extends Xn{constructor(e){super(Yn.ServerError.ServiceUnavailable,null!=e?e:"Service Unavailable")}};Zn.GatewayTimeout=class extends Xn{constructor(e){super(Yn.ServerError.GatewayTimeout,null!=e?e:"Gateway Timeout")}};Zn.HTTPVersionNotSupported=class extends Xn{constructor(e){super(Yn.ServerError.HTTPVersionNotSupported,null!=e?e:"HTTP Version Not Supported")}};Zn.VariantAlsoNegotiates=class extends Xn{constructor(e){super(Yn.ServerError.VariantAlsoNegotiates,null!=e?e:"Variant Also Negotiates")}};Zn.InsufficientStorage=class extends Xn{constructor(e){super(Yn.ServerError.InsufficientStorage,null!=e?e:"Insufficient Storage")}};Zn.LoopDetected=class extends Xn{constructor(e){super(Yn.ServerError.LoopDetected,null!=e?e:"Loop Detected")}};Zn.NotExtended=class extends Xn{constructor(e){super(Yn.ServerError.NotExtended,null!=e?e:"Not Extended")}};Zn.NetworkAuthenticationRequired=class extends Xn{constructor(e){super(Yn.ServerError.NetworkAuthenticationRequired,null!=e?e:"Network Authentication Required")}};var er={};er.fromCode=er.UnknownHTTPStatusError=void 0;const tr=qn,nr=Dn,rr=Jn,or=Gn,ir=Zn;class sr extends Error{constructor(e){super(`The HTTP status code ${e} is unknown`),this.name=this.constructor.name}}er.UnknownHTTPStatusError=sr,er.fromCode=function(e,t){switch(e){case 100:return new tr.Continue;case 101:return new tr.SwitchingProtocol;case 102:return new tr.Processing;case 103:return new tr.EarlyHints;case 200:return new nr.OK;case 201:return new nr.Created;case 202:return new nr.Accepted;case 203:return new nr.NonAuthoritativeInformation;case 204:return new nr.NoContent;case 205:return new nr.ResetContent;case 206:return new nr.PartialContent;case 207:return new nr.MultiStatus;case 208:return new nr.AlreadyReported;case 226:return new nr.IMUsed;case 300:return new rr.MultipleChoice;case 301:return new rr.MovedPermanently;case 302:return new rr.Found;case 303:return new rr.SeeOther;case 304:return new rr.NotModified;case 307:return new rr.TemporaryRedirect;case 308:return new rr.PermanentRedirect;case 400:return new or.BadRequest(t);case 401:return new or.Unauthorized(t);case 403:return new or.Forbidden(t);case 404:return new or.NotFound(t);case 405:return new or.MethodNotAllowed(t);case 406:return new or.NotAcceptable(t);case 407:return new or.ProxyAuthenticationRequired(t);case 408:return new or.RequestTimeout(t);case 409:return new or.Conflict(t);case 410:return new or.Gone(t);case 411:return new or.LengthRequired(t);case 412:return new or.PreconditionFailed(t);case 413:return new or.PayloadTooLarge(t);case 414:return new or.URITooLong(t);case 415:return new or.UnsupportedMediaType(t);case 416:return new or.RangeNotSatisfiable(t);case 417:return new or.ExpectationFailed(t);case 421:return new or.MisdirectedRequest(t);case 422:return new or.UnprocessableEntity(t);case 423:return new or.Locked(t);case 424:return new or.FailedDependency(t);case 426:return new or.UpgradeRequired(t);case 428:return new or.PreconditionRequired(t);case 429:return new or.TooManyRequests(t);case 431:return new or.RequestHeaderFieldsTooLarge(t);case 451:return new or.UnavailableForLegalReasons(t);case 500:return new ir.InternalServerError(t);case 501:return new ir.NotImplemented(t);case 502:return new ir.BadGateway(t);case 503:return new ir.ServiceUnavailable(t);case 504:return new ir.GatewayTimeout(t);case 505:return new ir.HTTPVersionNotSupported(t);case 506:return new ir.VariantAlsoNegotiates(t);case 507:return new ir.InsufficientStorage(t);case 508:return new ir.LoopDetected(t);case 510:return new ir.NotExtended(t);case 511:return new ir.NetworkAuthenticationRequired(t);default:throw new sr(e)}},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(bn,e),r(wn,e),r(qn,e),r(Dn,e),r(Jn,e),r(Gn,e),r(Zn,e),r(er,e)}(gn),function(e){e.ok=e.HTTPError=void 0;const t=gn;var n=gn;Object.defineProperty(e,"HTTPError",{enumerable:!0,get:function(){return n.HTTPError}}),e.ok=async function(e){if(!e.ok){const n=await e.text();throw(0,t.fromCode)(e.status,n)}return e}}(mn);var ar={};ar.toJSON=void 0,ar.toJSON=function(e){return e.json()};var cr={};cr.toText=void 0,cr.toText=async function(e,t){if(t){const n=await e.arrayBuffer();return new TextDecoder(t).decode(n)}return await e.text()};var ur={};ur.toLines=void 0,ur.toLines=async function*(e){const t=e.body.pipeThrough(new TextDecoderStream).getReader();let n="";for(;;){const{value:e,done:r}=await t.read();if(r)break;let o=e;for(;o.includes("\n");){const e=o.indexOf("\n");yield o.slice(0,e),o=o.slice(e+1)}n+=o}n&&(yield n)};var lr={},dr={},fr={},hr={},pr={},yr={};yr.go=void 0,yr.go=function(e){return e()},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]});(t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)})(yr,e)}(pr);var vr={},mr={CustomError:void 0};class gr extends Error{get name(){return this.constructor.name}}mr.CustomError=gr;var br={ExpectedError:void 0};const wr=mr;class Ar extends wr.CustomError{}br.ExpectedError=Ar;var Er={AssertionError:void 0};const Sr=mr;class Rr extends Sr.CustomError{}Er.AssertionError=Rr;var _r={};_r.normalize=void 0,_r.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var Tr={refute:void 0};const xr=br;Tr.refute=function(e,t){if(e)throw new xr.ExpectedError(t)};var Cr={assert:void 0};const kr=Er;Cr.assert=function(e,t){if(!e)throw new kr.AssertionError(t)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(mr,e),r(br,e),r(Er,e),r(_r,e),r(Tr,e),r(Cr,e)}(vr),hr.chunkAsync=void 0;const Or=pr,Pr=vr;hr.chunkAsync=function(e,t){return(0,Pr.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,Pr.assert)(t>0,"The parameter size must be greater than 0"),(0,Or.go)((async function*(){let n=[];for await(const r of e)n.push(r),n.length>=t&&(yield n,n=[]);n.length&&(yield n)}))};var Ir={},Nr={},jr={};function Ur(e){return Array.isArray(e)}jr.isntEmptyArray=jr.isEmptyArray=jr.isntArray=jr.isArray=void 0,jr.isArray=Ur,jr.isntArray=function(e){return!Ur(e)},jr.isEmptyArray=function(e){return 0===e.length},jr.isntEmptyArray=function(e){return 0!==e.length};var qr={},Fr={};function Lr(e){return null===e}Fr.isntNull=Fr.isNull=void 0,Fr.isNull=Lr,Fr.isntNull=function(e){return!Lr(e)};var Br={};function Dr(e){return void 0===e}Br.isntUndefined=Br.isUndefined=void 0,Br.isUndefined=Dr,Br.isntUndefined=function(e){return!Dr(e)},qr.isntAsyncIterable=qr.isAsyncIterable=void 0;const Mr=Fr,Hr=Br;function Jr(e){return(0,Mr.isntNull)(e)&&(0,Hr.isntUndefined)(e)&&"function"==typeof e[Symbol.asyncIterator]}qr.isAsyncIterable=Jr,qr.isntAsyncIterable=function(e){return!Jr(e)};var zr={};function $r(e){return"bigint"==typeof e}zr.isntBigInt=zr.isBigInt=void 0,zr.isBigInt=$r,zr.isntBigInt=function(e){return!$r(e)};var Gr={};function Vr(e){return"boolean"==typeof e}Gr.isntBoolean=Gr.isBoolean=void 0,Gr.isBoolean=Vr,Gr.isntBoolean=function(e){return!Vr(e)};var Kr={},Wr={};function Zr(e){return"string"==typeof e}Wr.isntString=Wr.isString=void 0,Wr.isString=Zr,Wr.isntString=function(e){return!Zr(e)},Kr.isntChar=Kr.isChar=void 0;const Qr=Wr;function Yr(e){return(0,Qr.isString)(e)&&1===e.length}Kr.isChar=Yr,Kr.isntChar=function(e){return!Yr(e)};var Xr={};function eo(e){return e instanceof Date}Xr.isntDate=Xr.isDate=void 0,Xr.isDate=eo,Xr.isntDate=function(e){return!eo(e)};var to={};to.inEnum=void 0,to.inEnum=function(e,t){return Object.values(t).includes(e)};var no={};function ro(e){return e instanceof Error}no.isntError=no.isError=void 0,no.isError=ro,no.isntError=function(e){return!ro(e)};var oo={};function io(e){return!e}oo.isntFalsy=oo.isFalsy=void 0,oo.isFalsy=io,oo.isntFalsy=function(e){return!io(e)};var so={};function ao(e){return"function"==typeof e}so.isntFunction=so.isFunction=void 0,so.isFunction=ao,so.isntFunction=function(e){return!ao(e)};var co={};co.isntIterable=co.isIterable=void 0;const uo=Fr,lo=Br;function fo(e){return(0,uo.isntNull)(e)&&(0,lo.isntUndefined)(e)&&"function"==typeof e[Symbol.iterator]}co.isIterable=fo,co.isntIterable=function(e){return!fo(e)};var ho={},po={},yo=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};po.isntEmptyObject=po.isEmptyObject=po.isntPlainObject=po.isPlainObject=po.isntObject=po.isObject=void 0;const vo=yo(ae);function mo(e){return null!==e&&"object"==typeof e}function go(e){return(0,vo.default)(e)}po.isObject=mo,po.isntObject=function(e){return!mo(e)},po.isPlainObject=go,po.isntPlainObject=function(e){return!go(e)},po.isEmptyObject=function(e){return 0===Object.keys(e).length},po.isntEmptyObject=function(e){return 0!==Object.keys(e).length};var bo={};function wo(e){return"number"==typeof e}bo.isntNumber=bo.isNumber=void 0,bo.isNumber=wo,bo.isntNumber=function(e){return!wo(e)},ho.isntJsonRpcError=ho.isJsonRpcError=ho.isntJsonRpcSuccess=ho.isJsonRpcSuccess=ho.isntJsonRpcRequest=ho.isJsonRpcRequest=ho.isntJsonRpcNotification=ho.isJsonRpcNotification=void 0;const Ao=jr,Eo=po,So=Wr,Ro=bo,_o=Br;function To(e){return(0,So.isString)(e)||(0,Ro.isNumber)(e)}function xo(e){return(0,Ao.isArray)(e)||(0,Eo.isObject)(e)}function Co(e){return(0,Eo.isPlainObject)(e)&&(0,So.isString)(e.jsonrpc)&&(0,So.isString)(e.method)&&(0,_o.isUndefined)(e.id)&&xo(e.params)}function ko(e){return(0,Eo.isPlainObject)(e)&&(0,So.isString)(e.jsonrpc)&&(0,So.isString)(e.method)&&To(e.id)&&xo(e.params)}function Oo(e){return(0,Eo.isPlainObject)(e)&&(0,So.isString)(e.jsonrpc)&&(0,So.isString)(e.id)&&"result"in e}function Po(e){return(0,Eo.isPlainObject)(e)&&(0,So.isString)(e.jsonrpc)&&To(e.id)&&function(e){return(0,Eo.isPlainObject)(e)&&(0,Ro.isNumber)(e.code)&&(0,So.isString)(e.message)&&((0,_o.isUndefined)(e.data)||(0,Eo.isObject)(e.data))}(e.error)}ho.isJsonRpcNotification=Co,ho.isntJsonRpcNotification=function(e){return!Co(e)},ho.isJsonRpcRequest=ko,ho.isntJsonRpcRequest=function(e){return!ko(e)},ho.isJsonRpcSuccess=Oo,ho.isntJsonRpcSuccess=function(e){return!Oo(e)},ho.isJsonRpcError=Po,ho.isntJsonRpcError=function(e){return!Po(e)};var Io={};Io.isntJson=Io.isJson=void 0,Io.isJson=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},Io.isntJson=function e(t){return!e()};var No={};No.isAbsoluteURL=void 0,No.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(jr,e),r(qr,e),r(zr,e),r(Gr,e),r(Kr,e),r(Xr,e),r(to,e),r(no,e),r(oo,e),r(so,e),r(co,e),r(ho,e),r(Io,e),r(Fr,e),r(bo,e),r(po,e),r(Wr,e),r(Br,e),r(No,e)}(Nr),Ir.chunkByAsync=void 0;const jo=Nr;Ir.chunkByAsync=function(e,t){return(0,jo.isAsyncIterable)(e)?async function*(e){let n=[],r=0;for await(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e):async function*(e){let n=[],r=0;for(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e)};var Uo={};Uo.chunkBy=void 0,Uo.chunkBy=function*(e,t){let n=[],r=0;for(const o of e)n.push(o),t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var qo={chunk:void 0};const Fo=pr,Lo=vr;qo.chunk=function(e,t){return(0,Lo.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,Lo.assert)(t>0,"The parameter size must be greater than 0"),(0,Fo.go)((function*(){let n=[];for(const r of e)n.push(r),n.length>=t&&(yield n,n=[]);n.length&&(yield n)}))};var Bo={concatAsync:void 0};const Do=Nr,Mo=pr;Bo.concatAsync=function(e,...t){return(0,Mo.go)((async function*(){for(const n of[e,...t])if((0,Do.isAsyncIterable)(n))for await(const e of n)yield e;else for(const e of n)yield e}))};var Ho={concat:void 0};const Jo=pr;Ho.concat=function(e,...t){return(0,Jo.go)((function*(){for(const n of[e,...t])yield*n}))};var zo={},$o={};$o.copyIterable=$o.copyAsyncIterable=void 0,$o.copyAsyncIterable=async function*(e){for await(const t of e)yield t},$o.copyIterable=function*(e){for(const t of e)yield t},zo.dropAsync=void 0;const Go=pr,Vo=$o,Ko=vr;zo.dropAsync=function(e,t){return(0,Ko.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Ko.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Vo.copyAsyncIterable)(e):(0,Go.go)((async function*(){var n;const r=e[Symbol.asyncIterator]();let o;try{let e;for(;!(({value:e,done:o}=await r.next()),o||t<=0);)t--;for(;!o;)yield e,({value:e,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Wo={dropRightAsync:void 0};const Zo=pr,Qo=$o,Yo=vr;Wo.dropRightAsync=function(e,t){return(0,Yo.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Yo.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Qo.copyAsyncIterable)(e):(0,Zo.go)((async function*(){const n=(await async function(e){const t=[];for await(const n of e)t.push(n);return t}(e)).slice(0,-t);for(const e of n)yield e}))};var Xo={dropRight:void 0};const ei=pr,ti=$o,ni=vr;Xo.dropRight=function(e,t){return(0,ni.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,ni.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,ti.copyIterable)(e):(0,ei.go)((function*(){const n=Array.from(e);yield*n.slice(0,-t)}))};var ri={dropUntilAsync:void 0};const oi=Nr;ri.dropUntilAsync=function(e,t){return(0,oi.isAsyncIterable)(e)?async function*(e){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(e):async function*(e){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(e)};var ii={};ii.dropUntil=void 0,ii.dropUntil=function*(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var si={drop:void 0};const ai=pr,ci=$o,ui=vr;si.drop=function(e,t){return(0,ui.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,ui.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,ci.copyIterable)(e):(0,ai.go)((function*(){var n;const r=e[Symbol.iterator]();let o;try{let e;for(;!(({value:e,done:o}=r.next()),o||t<=0);)t--;for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var li={filterAsync:void 0};const di=Nr;li.filterAsync=function(e,t){return(0,di.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e)await t(r,n)&&(yield r),n++}(e):async function*(e){let n=0;for(const r of e)await t(r,n)&&(yield r),n++}(e)};var fi={};fi.filter=void 0,fi.filter=function*(e,t){let n=0;for(const r of e)t(r,n)&&(yield r),n++};var hi={},pi={},yi={flattenByAsync:void 0};const vi=Nr;function mi(e){return(0,vi.isIterable)(e)&&(0,vi.isntChar)(e)}yi.flattenByAsync=function(e,t){return(0,vi.isAsyncIterable)(e)?async function*(e){const r=1;for await(const o of e)mi(o)&&await t(o,r)?yield*n(o,r+1):yield o}(e):function(e){return n(e,1)}(e);async function*n(e,r){for(const o of e)mi(o)&&await t(o,r)?yield*n(o,r+1):yield o}},pi.flattenDeepAsync=void 0;const gi=yi,bi=vr;pi.flattenDeepAsync=function(e,t=1/0){return(0,bi.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,bi.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,gi.flattenByAsync)(e,((e,n)=>n<=t))},hi.flattenAsync=void 0;const wi=pi;hi.flattenAsync=function(e){return(0,wi.flattenDeepAsync)(e,1)};var Ai={flattenBy:void 0};const Ei=Nr;Ai.flattenBy=function(e,t){return function*e(n,r){for(const i of n)(0,Ei.isIterable)(o=i)&&(0,Ei.isntChar)(o)&&t(i,r)?yield*e(i,r+1):yield i;var o}(e,1)};var Si={flattenDeep:void 0};const Ri=Ai,_i=vr;Si.flattenDeep=function(e,t=1/0){return(0,_i.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,_i.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,Ri.flattenBy)(e,((e,n)=>n<=t))};var Ti={flatten:void 0};const xi=Si;Ti.flatten=function(e){return(0,xi.flattenDeep)(e,1)};var Ci={mapAsync:void 0};const ki=Nr;Ci.mapAsync=function(e,t){return(0,ki.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e)yield await t(r,n),n++}(e):async function*(e){let n=0;for(const r of e)yield await t(r,n),n++}(e)};var Oi={};Oi.map=void 0,Oi.map=function*(e,t){let n=0;for(const r of e)yield t(r,n),n++};var Pi={repeatAsync:void 0};const Ii=pr,Ni=vr;Pi.repeatAsync=function(e,t){return(0,Ni.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,Ni.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Ii.go)((async function*(){const n=[];if(t>0){for await(const t of e)yield t,n.push(t);t--}for(;t>0;)yield*n,t--}))};var ji={repeat:void 0};const Ui=pr,qi=vr;ji.repeat=function(e,t){return(0,qi.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,qi.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Ui.go)((function*(){const n=[];if(t>0){for(const t of e)yield t,n.push(t);t--}for(;t>0;)yield*n,t--}))};var Fi={sliceAsync:void 0};const Li=pr,Bi=vr;Fi.sliceAsync=function(e,t,n=1/0){return(0,Bi.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,Bi.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,Bi.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Bi.assert)(n>=t,"The parameter end must be greater than or equal to start"),(0,Li.go)((async function*(){let r=0;for await(const o of e){if(r>=n)break;r>=t&&(yield o),r++}}))};var Di={slice:void 0};const Mi=pr,Hi=vr;Di.slice=function(e,t,n=1/0){return(0,Hi.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,Hi.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,Hi.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Hi.assert)(n>=t,"The parameter end must be greater than or equal to start"),(0,Mi.go)((function*(){let r=0;for(const o of e){if(r>=n)break;r>=t&&(yield o),r++}}))};var Ji={};Ji.splitAsync=void 0,Ji.splitAsync=async function*(e,t){let n=[];for await(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var zi={splitByAsync:void 0};const $i=Nr;zi.splitByAsync=function(e,t){return(0,$i.isAsyncIterable)(e)?async function*(e){let n=[],r=0;for await(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e):async function*(e){let n=[],r=0;for(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e)};var Gi={};Gi.splitBy=void 0,Gi.splitBy=function*(e,t){let n=[],r=0;for(const o of e)t(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var Vi={};Vi.split=void 0,Vi.split=function*(e,t){let n=[];for(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var Ki={takeAsync:void 0};const Wi=pr,Zi=vr;Ki.takeAsync=function(e,t){return(0,Zi.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Zi.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,Wi.go)((async function*(){if(0!==t)for await(const n of e)if(yield n,0===--t)break}))};var Qi={takeRightAsync:void 0};const Yi=pr,Xi=vr;Qi.takeRightAsync=function(e,t){return(0,Xi.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Xi.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,Yi.go)((async function*(){var n;const r=e[Symbol.asyncIterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=await r.next()),!o;)e.push(i),e.length>t&&e.shift();yield*e}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var es={takeRight:void 0};const ts=pr,ns=vr;es.takeRight=function(e,t){return(0,ns.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,ns.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,ts.go)((function*(){var n;const r=e[Symbol.iterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=r.next()),!o;)e.push(i),e.length>t&&e.shift();yield*e}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var rs={takeUntilAsync:void 0};const os=Nr;rs.takeUntilAsync=function(e,t){return(0,os.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e){if(await t(r,n))break;yield r,n++}}(e):async function*(e){let n=0;for(const r of e){if(await t(r,n))break;yield r,n++}}(e)};var is={};is.takeUntil=void 0,is.takeUntil=function*(e,t){let n=0;for(const r of e){if(t(r,n))break;yield r,n++}};var ss={take:void 0};const as=pr,cs=vr;ss.take=function(e,t){return(0,cs.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,cs.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,as.go)((function*(){if(0!==t)for(const n of e)if(yield n,0===--t)break}))};var us={tapAsync:void 0};const ls=Nr;us.tapAsync=function(e,t){return(0,ls.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e)await t(r,n),yield r,n++}(e):async function*(e){let n=0;for(const r of e)await t(r,n),yield r,n++}(e)};var ds={};ds.tap=void 0,ds.tap=function*(e,t){let n=0;for(const r of e)t(r,n),yield r,n++};var fs={};fs.toAsyncIterable=void 0,fs.toAsyncIterable=async function*(e){for(const t of e)yield t};var hs={};hs.transformAsync=void 0,hs.transformAsync=async function*(e,t){yield*t(e)};var ps={};ps.transform=void 0,ps.transform=function*(e,t){yield*t(e)};var ys={};ys.uniqAsync=void 0,ys.uniqAsync=async function*(e){const t=new Set;for await(const n of e)t.has(n)||(yield n,t.add(n))};var vs={uniqByAsync:void 0};const ms=Nr;vs.uniqByAsync=function(e,t){return(0,ms.isAsyncIterable)(e)?async function*(e){const n=new Set;let r=0;for await(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e):async function*(e){const n=new Set;let r=0;for(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e)};var gs={};gs.uniqBy=void 0,gs.uniqBy=function*(e,t){const n=new Set;let r=0;for(const o of e){const e=t(o,r);n.has(e)||(yield o,n.add(e)),r++}};var bs={};bs.uniq=void 0,bs.uniq=function*(e){const t=new Set;for(const n of e)t.has(n)||(yield n,t.add(n))};var ws={zipAsync:void 0};const As=Nr;var Es;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(Es||(Es={})),ws.zipAsync=function(e,...t){return async function*(...e){var t,n,r,o;const i=e.length,s=e.map((e=>(0,As.isAsyncIterable)(e)?[Es.Async,e[Symbol.asyncIterator]()]:[Es.Sync,e[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[n,r]=s[t];let o;if(o=n===Es.Async?await r.next():r.next(),o.done)return void(a[t]=!0);e[t]=o.value}yield e}}finally{const e=s.filter(((e,t)=>!a[t]));for(const[i,s]of e)i===Es.Async?await(null===(n=(t=s).return)||void 0===n?void 0:n.call(t)):null===(o=(r=s).return)||void 0===o||o.call(r)}}(e,...t)};var Ss={};Ss.zip=void 0,Ss.zip=function(e,...t){return function*(...e){const t=e.length,n=e.map((e=>e[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=n[o].next();if(i)return void(r[o]=!0);e[o]=t}yield e}}finally{n.filter(((e,t)=>!r[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(hr,e),r(Ir,e),r(Uo,e),r(qo,e),r(Bo,e),r(Ho,e),r(zo,e),r(Wo,e),r(Xo,e),r(ri,e),r(ii,e),r(si,e),r(li,e),r(fi,e),r(hi,e),r(yi,e),r(Ai,e),r(pi,e),r(Si,e),r(Ti,e),r(Ci,e),r(Oi,e),r(Pi,e),r(ji,e),r(Fi,e),r(Di,e),r(Ji,e),r(zi,e),r(Gi,e),r(Vi,e),r(Ki,e),r(Qi,e),r(es,e),r(rs,e),r(is,e),r(ss,e),r(us,e),r(ds,e),r(fs,e),r(hs,e),r(ps,e),r(ys,e),r(vs,e),r(gs,e),r(bs,e),r(ws,e),r(Ss,e)}(fr);var Rs={},_s={};_s.consume=void 0,_s.consume=function(e,t){return t(e)};var Ts={eachAsync:void 0};const xs=Nr;Ts.eachAsync=function(e,t){return(0,xs.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e)await t(r,n),n++}(e):async function(e){let n=0;for(const r of e)await t(r,n),n++}(e)};var Cs={};Cs.each=void 0,Cs.each=function(e,t){let n=0;for(const r of e)t(r,n),n++};var ks={everyAsync:void 0};const Os=Nr;ks.everyAsync=function(e,t){return(0,Os.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e){if(!await t(r,n))return!1;n++}return!0}(e):async function(e){let n=0;for(const r of e){if(!await t(r,n))return!1;n++}return!0}(e)};var Ps={};Ps.every=void 0,Ps.every=function(e,t){let n=0;for(const r of e){if(!t(r,n))return!1;n++}return!0};var Is={findAsync:void 0};const Ns=Nr;Is.findAsync=function(e,t){return(0,Ns.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e){if(await t(r,n))return r;n++}return}(e):async function(e){let n=0;for(const r of e){if(await t(r,n))return r;n++}return}(e)};var js={};js.find=void 0,js.find=function(e,t){let n=0;for(const r of e){if(t(r,n))return r;n++}};var Us={};Us.firstAsync=void 0,Us.firstAsync=async function(e){for await(const t of e)return t};var qs={};qs.first=void 0,qs.first=function(e){for(const t of e)return t};var Fs={};Fs.includesAsync=void 0,Fs.includesAsync=async function(e,t){for await(const n of e)if(n===t)return!0;return!1};var Ls={};Ls.includes=void 0,Ls.includes=function(e,t){for(const n of e)if(n===t)return!0;return!1};var Bs={};Bs.matchAsync=void 0,Bs.matchAsync=async function(e,t){const n=t.length;let r=0;for await(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var Ds={};Ds.match=void 0,Ds.match=function(e,t){const n=t.length;let r=0;for(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var Ms={reduceAsync:void 0};const Hs=Nr;Ms.reduceAsync=function(e,t,n){return(0,Hs.isUndefined)(n)?function(e,t){return(0,Hs.isAsyncIterable)(e)?n(e):r(e);async function n(e){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,s=await i(r),a=1;for(;({value:e,done:o}=await r.next()),!o;)s=await t(s,e,a++);return s}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function r(e){var n;const r=e[Symbol.iterator]();let o;try{let e,s=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)s=await t(s,e,a++);return s}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,n){return(0,Hs.isAsyncIterable)(e)?o(e):r(e);async function r(e){let r=n,o=0;for(const n of e)r=await t(r,n,o++);return r}async function o(e){let r=n,o=0;for await(const n of e)r=await t(r,n,o++);return r}}(e,t,n)};var Js={reduce:void 0};const zs=Nr;Js.reduce=function(e,t,n){return(0,zs.isUndefined)(n)?function(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,s=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)s=t(s,e,a++);return s}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,n){let r=n,o=0;for(const n of e)r=t(r,n,o++);return r}(e,t,n)};var $s={someAsync:void 0};const Gs=Nr;$s.someAsync=function(e,t){return(0,Gs.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e){if(await t(r,n))return!0;n++}return!1}(e):async function(e){let n=0;for(const r of e){if(await t(r,n))return!0;n++}return!1}(e)};var Vs={};Vs.some=void 0,Vs.some=function(e,t){let n=0;for(const r of e){if(t(r,n))return!0;n++}return!1};var Ks={};Ks.lastAsync=void 0,Ks.lastAsync=async function(e){var t;const n=e[Symbol.asyncIterator]();let r;try{let e,o;for(;({value:e,done:r}=await n.next()),!r;)o=e;return o}finally{r||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}};var Ws={};Ws.last=void 0,Ws.last=function(e){var t;const n=e[Symbol.iterator]();let r;try{let e,o;for(;({value:e,done:r}=n.next()),!r;)o=e;return o}finally{r||null===(t=n.return)||void 0===t||t.call(n)}};var Zs={toArrayAsync:void 0};const Qs=_s;Zs.toArrayAsync=function(e){return(0,Qs.consume)(e,(async e=>{const t=[];for await(const n of e)t.push(n);return t}))};var Ys={toArray:void 0};const Xs=_s;Ys.toArray=function(e){return(0,Xs.consume)(e,(e=>Array.from(e)))};var ea={toSetAsync:void 0};const ta=_s;ea.toSetAsync=function(e){return(0,ta.consume)(e,(async e=>{const t=new Set;for await(const n of e)t.add(n);return t}))};var na={toSet:void 0};const ra=_s;na.toSet=function(e){return(0,ra.consume)(e,(e=>new Set(e)))},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(_s,e),r(Ts,e),r(Cs,e),r(ks,e),r(Ps,e),r(Is,e),r(js,e),r(Us,e),r(qs,e),r(Fs,e),r(Ls,e),r(Bs,e),r(Ds,e),r(Ms,e),r(Js,e),r($s,e),r(Vs,e),r(Ks,e),r(Ws,e),r(Zs,e),r(Ys,e),r(ea,e),r(na,e)}(Rs),function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(fr,e),r(Rs,e)}(dr),lr.toNDJSON=void 0;const oa=dr,ia=ur;lr.toNDJSON=function(e){return(0,oa.mapAsync)((0,ia.toLines)(e),(e=>JSON.parse(e)))};var sa={toCSV:void 0};const aa=Fe.exports;sa.toCSV=async function(e){const t=await e.text();return(0,aa.parse)(t,{header:!0,skipEmptyLines:"greedy"}).data},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(mn,e),r(ar,e),r(cr,e),r(ur,e),r(lr,e),r(sa,e)}(vn);var ca={},ua={},la={exports:{}};const{AbortController:da,AbortSignal:fa}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;la.exports=da,la.exports.AbortSignal=fa,la.exports.default=da;var ha,pa=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};ua.AbortController=void 0;const ya=pa(la.exports);ua.AbortController=null!==(ha=globalThis.AbortController)&&void 0!==ha?ha:ya.default;var va,ma={};ma.AbortSignal=void 0;const ga=la.exports;ma.AbortSignal=null!==(va=globalThis.AbortSignal)&&void 0!==va?va:ga.AbortSignal;var ba={raceAbortSignals:void 0};const wa=ua;ba.raceAbortSignals=function(e){const t=new wa.AbortController,n=[];for(const o of e)if(o){if(o.aborted){t.abort();break}o.addEventListener("abort",r),n.push(o)}return t.signal;function r(){t.abort(),n.forEach((e=>e.removeEventListener("abort",r)))}};var Aa={timeoutSignal:void 0};const Ea=ua;Aa.timeoutSignal=function(e){const t=new Ea.AbortController;return setTimeout((()=>t.abort()),e),t.signal};var Sa={},Ra={},_a={CustomError:void 0};class Ta extends Error{get name(){return this.constructor.name}}_a.CustomError=Ta;var xa={ExpectedError:void 0};const Ca=_a;class ka extends Ca.CustomError{}xa.ExpectedError=ka;var Oa={AssertionError:void 0};const Pa=_a;class Ia extends Pa.CustomError{}Oa.AssertionError=Ia;var Na={};Na.normalize=void 0,Na.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var ja={refute:void 0};const Ua=xa;ja.refute=function(e,t){if(e)throw new Ua.ExpectedError(t)};var qa={assert:void 0};const Fa=Oa;qa.assert=function(e,t){if(!e)throw new Fa.AssertionError(t)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(_a,e),r(xa,e),r(Oa,e),r(Na,e),r(ja,e),r(qa,e)}(Ra),Sa.AbortError=Sa.withAbortSignal=void 0;const La=Ra;Sa.withAbortSignal=async function(e,t){return new Promise((async(n,r)=>{if(e.aborted)return o();e.addEventListener("abort",o);try{n(await t())}catch(e){r(e)}finally{e.removeEventListener("abort",o)}function o(){r(new Ba)}}))};class Ba extends La.CustomError{}Sa.AbortError=Ba,function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(ua,e),r(ma,e),r(ba,e),r(Aa,e),r(Sa,e)}(ca);class Da{constructor(e){this.options=e}getCommonTransformers(e){var t,n;return[Oe.url(this.options.server),Oe.bearerAuth(this.options.adminPassword),Oe.signal(ca.raceAbortSignals([e.signal,!1!==e.timeout&&(null!==(t=e.timeout&&ca.timeoutSignal(e.timeout))&&void 0!==t?t:this.options.timeout&&ca.timeoutSignal(this.options.timeout))])),Oe.keepalive(null!==(n=e.keepalive)&&void 0!==n?n:this.options.keepalive),Oe.header("Accept-Version","0.2.7")]}}class Ma{constructor(e){this.options=e}acquire(t,n={}){var o,i,s;return e(this,void 0,void 0,(function*(){const e=null!==(o=n.token)&&void 0!==o?o:this.options.token,a=this.options.basicAuth,c=v.get(Oe.url(this.options.server),Oe.pathname(`geyser/${t}`),a&&Oe.basicAuth(a.username,a.password),e&&Oe.searchParams({token:e}),Oe.signal(ca.raceAbortSignals([n.signal,!1!==n.timeout&&(null!==(i=n.timeout&&ca.timeoutSignal(n.timeout))&&void 0!==i?i:this.options.timeout&&ca.timeoutSignal(this.options.timeout))])),Oe.keepalive(null!==(s=n.keepalive)&&void 0!==s?s:this.options.keepalive),Oe.header("Accept-Version","0.2.7"));yield r.fetch(c).then(vn.ok)}))}}class Ha extends Da{getNamespaces(t={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(t),Oe.pathname("/admin/geyser-with-config"));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}get(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/config`));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}setDuration(t,n,o={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(o),Oe.pathname(`/admin/geyser/${t}/config/duration`),Oe.json(n));yield r.fetch(e).then(vn.ok)}))}removeDuration(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/config/duration`));yield r.fetch(e).then(vn.ok)}))}setLimit(t,n,o={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(o),Oe.pathname(`/admin/geyser/${t}/config/limit`),Oe.json(n));yield r.fetch(e).then(vn.ok)}))}removeLimit(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/config/limit`));yield r.fetch(e).then(vn.ok)}))}}class Ja extends Da{resetCycle(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/cycle`));yield r.fetch(e).then(vn.ok)}))}}class za extends Da{getNamespaces(t={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(t),Oe.pathname("/admin/blacklist"));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}add(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(n),Oe.pathname(`/admin/blacklist/${t}`));yield r.fetch(e).then(vn.ok)}))}remove(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/blacklist/${t}`));yield r.fetch(e).then(vn.ok)}))}}class $a extends Da{getNamespaces(t={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(t),Oe.pathname("/admin/whitelist"));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}add(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(n),Oe.pathname(`/admin/whitelist/${t}`));yield r.fetch(e).then(vn.ok)}))}remove(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/whitelist/${t}`));yield r.fetch(e).then(vn.ok)}))}}class Ga extends Da{getNamespaces(t={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(t),Oe.pathname("/admin/geyser-with-token-policies"));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}get(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/token-policies`));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}setAcquireTokenRequired(t,n,o={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(o),Oe.pathname(`/admin/geyser/${t}/token-policies/acquire-token-required`),Oe.json(n));yield r.fetch(e).then(vn.ok)}))}removeAcquireTokenRequired(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/token-policies/acquire-token-required`));yield r.fetch(e).then(vn.ok)}))}}class Va extends Da{getNamespaces(t={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(t),Oe.pathname("/admin/geyser-with-tokens"));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}getTokens(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/tokens`));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}addAcquireToken(t,n,o={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(o),Oe.pathname(`/admin/geyser/${t}/tokens/${n}/acquire`));yield r.fetch(e).then(vn.ok)}))}removeAcquireToken(t,n,o={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(o),Oe.pathname(`/admin/geyser/${t}/tokens/${n}/acquire`));yield r.fetch(e).then(vn.ok)}))}}class Ka{constructor(e){this.options=e,this.Configuration=new Ha(this.options),this.Cycle=new Ja(this.options),this.Blacklist=new za(this.options),this.Whitelist=new $a(this.options),this.TokenPolicy=new Ga(this.options),this.Token=new Va(this.options)}}var Wa=r.AbortError,Za=gn.HTTPClientError,Qa=vn.HTTPError;export{Wa as AbortError,Ma as GeyserClient,Ka as GeyserManager,Za as HTTPClientError,Qa as HTTPError};
|
|
15
|
+
***************************************************************************** */function t(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={},o={fetch:void 0};o.fetch=globalThis.fetch.bind(globalThis);var i={Headers:void 0};i.Headers=globalThis.Headers;var s={Request:void 0};s.Request=globalThis.Request;var a={Response:void 0};a.Response=globalThis.Response;var c={FormData:void 0};c.FormData=globalThis.FormData;var u={AbortController:void 0};u.AbortController=globalThis.AbortController;var l={AbortError:void 0};l.AbortError=globalThis.DOMException;var d={Blob:void 0};d.Blob=globalThis.Blob;var f,h,p,v={};v.EventSource=void 0,v.EventSource=globalThis.EventSource,f=r,h=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),(p=n&&n.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)})(o,f),p(i,f),p(s,f),p(a,f),p(c,f),p(u,f),p(l,f),p(d,f),p(v,f);var y={},m={},g={},b={},w={};function A(e){return Array.isArray(e)}w.isntEmptyArray=w.isEmptyArray=w.isntArray=w.isArray=void 0,w.isArray=A,w.isntArray=function(e){return!A(e)},w.isEmptyArray=function(e){return 0===e.length},w.isntEmptyArray=function(e){return 0!==e.length};var _={},S={};function T(e){return null===e}S.isntNull=S.isNull=void 0,S.isNull=T,S.isntNull=function(e){return!T(e)};var E={};function R(e){return void 0===e}E.isntUndefined=E.isUndefined=void 0,E.isUndefined=R,E.isntUndefined=function(e){return!R(e)};var x={};function C(e){return"function"==typeof e}x.isntFunction=x.isFunction=void 0,x.isFunction=C,x.isntFunction=function(e){return!C(e)},_.isntAsyncIterable=_.isAsyncIterable=void 0;const k=S,O=E,P=x;function I(e){return(0,k.isntNull)(e)&&(0,O.isntUndefined)(e)&&(0,P.isFunction)(e[Symbol.asyncIterator])}_.isAsyncIterable=I,_.isntAsyncIterable=function(e){return!I(e)};var N={};function j(e){return"bigint"==typeof e}N.isntBigInt=N.isBigInt=void 0,N.isBigInt=j,N.isntBigInt=function(e){return!j(e)};var q={};function U(e){return"boolean"==typeof e}q.isntBoolean=q.isBoolean=void 0,q.isBoolean=U,q.isntBoolean=function(e){return!U(e)};var F={},L={};function M(e){return"string"==typeof e}L.isntString=L.isString=void 0,L.isString=M,L.isntString=function(e){return!M(e)},F.isntChar=F.isChar=void 0;const D=L;function B(e){return(0,D.isString)(e)&&1===e.length}F.isChar=B,F.isntChar=function(e){return!B(e)};var H={};function z(e){return e instanceof Date}H.isntDate=H.isDate=void 0,H.isDate=z,H.isntDate=function(e){return!z(e)};var $={};$.inEnum=void 0,$.inEnum=function(e,t){return Object.values(t).includes(e)};var J={};function G(e){return e instanceof Error}J.isntError=J.isError=void 0,J.isError=G,J.isntError=function(e){return!G(e)};var V={};function W(e){return!e}V.isntFalsy=V.isFalsy=void 0,V.isFalsy=W,V.isntFalsy=function(e){return!W(e)};var K={};K.isntIterable=K.isIterable=void 0;const Q=S,Z=E,X=x;function Y(e){return(0,Q.isntNull)(e)&&(0,Z.isntUndefined)(e)&&(0,X.isFunction)(e[Symbol.iterator])}K.isIterable=Y,K.isntIterable=function(e){return!Y(e)};var ee={},te={};function ne(e){return"number"==typeof e}function re(e){return Number.isNaN(e)}te.isntNaN=te.isNaN=te.isNegativeInfinity=te.isPositiveInfinity=te.isFinite=te.isntNumber=te.isNumber=void 0,te.isNumber=ne,te.isntNumber=function(e){return!ne(e)},te.isFinite=function(e){return Number.isFinite(e)},te.isPositiveInfinity=function(e){return e===1/0},te.isNegativeInfinity=function(e){return e===-1/0},te.isNaN=re,te.isntNaN=function(e){return!re(e)};var oe={},ie="object"==typeof n&&n&&n.Object===Object&&n,se="object"==typeof self&&self&&self.Object===Object&&self,ae=(ie||se||Function("return this")()).Symbol,ce=ae,ue=Object.prototype,le=ue.hasOwnProperty,de=ue.toString,fe=ce?ce.toStringTag:void 0;var he=function(e){var t=le.call(e,fe),n=e[fe];try{e[fe]=void 0;var r=!0}catch(e){}var o=de.call(e);return r&&(t?e[fe]=n:delete e[fe]),o},pe=Object.prototype.toString;var ve=he,ye=function(e){return pe.call(e)},me=ae?ae.toStringTag:void 0;var ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":me&&me in Object(e)?ve(e):ye(e)};var be=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var we=ge,Ae=be,_e=function(e){return null!=e&&"object"==typeof e},Se=Function.prototype,Te=Object.prototype,Ee=Se.toString,Re=Te.hasOwnProperty,xe=Ee.call(Object);var Ce=function(e){if(!_e(e)||"[object Object]"!=we(e))return!1;var t=Ae(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ee.call(n)==xe},ke=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};oe.isntEmptyObject=oe.isEmptyObject=oe.isntPlainObject=oe.isPlainObject=oe.isntObject=oe.isObject=void 0;const Oe=ke(Ce);function Pe(e){return null!==e&&"object"==typeof e}function Ie(e){return(0,Oe.default)(e)}oe.isObject=Pe,oe.isntObject=function(e){return!Pe(e)},oe.isPlainObject=Ie,oe.isntPlainObject=function(e){return!Ie(e)},oe.isEmptyObject=function(e){return 0===Object.keys(e).length},oe.isntEmptyObject=function(e){return 0!==Object.keys(e).length},ee.isntJsonable=ee.isJsonable=ee.isntJson=ee.isJson=void 0;const Ne=S,je=q,qe=L,Ue=te,Fe=w,Le=oe;function Me(e){return(0,Ne.isNull)(e)||(0,je.isBoolean)(e)||(0,qe.isString)(e)||(0,Ue.isNumber)(e)||(0,Fe.isArray)(e)&&e.every(Me)||(0,Le.isPlainObject)(e)&&Object.values(e).every(Me)}ee.isJson=Me,ee.isntJson=function(e){return!Me(e)},ee.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},ee.isntJsonable=function e(t){return!e()};var De={};De.isPromiseLike=De.isntPromiseLike=De.isntPromise=De.isPromise=void 0;const Be=oe,He=x;function ze(e){return e instanceof Promise}function $e(e){return(0,Be.isObject)(e)&&(0,He.isFunction)(e.then)}De.isPromise=ze,De.isntPromise=function(e){return!ze(e)},De.isntPromiseLike=function(e){return!$e(e)},De.isPromiseLike=$e;var Je={};Je.isAbsoluteURL=void 0,Je.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}};var Ge={};function Ve(e){return e instanceof RegExp}Ge.isntRegExp=Ge.isRegExp=void 0,Ge.isRegExp=Ve,Ge.isntRegExp=function(e){return!Ve(e)};var We={};function Ke(e){return"symbol"==typeof e}We.isntSymbol=We.isSymbol=void 0,We.isSymbol=Ke,We.isntSymbol=function(e){return!Ke(e)},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(w,e),r(_,e),r(N,e),r(q,e),r(F,e),r(H,e),r($,e),r(J,e),r(V,e),r(x,e),r(K,e),r(ee,e),r(S,e),r(te,e),r(oe,e),r(De,e),r(L,e),r(E,e),r(Je,e),r(Ge,e),r(We,e)}(b),g.del=g.patch=g.put=g.post=g.head=g.get=void 0;const Qe=r,Ze=b;function Xe(e,...t){const n=t.reduce(((e,t)=>(0,Ze.isFunction)(t)?t(e):e),{url:new URL("http://localhost"),headers:new Qe.Headers}),r=new Qe.Headers(n.headers);return new Qe.Request(n.url.href,{method:e,headers:r,signal:n.signal,body:n.payload,keepalive:n.keepalive})}g.get=function(...e){return Xe("GET",...e)},g.head=function(...e){return Xe("HEAD",...e)},g.post=function(...e){return Xe("POST",...e)},g.put=function(...e){return Xe("PUT",...e)},g.patch=function(...e){return Xe("PATCH",...e)},g.del=function(...e){return Xe("DELETE",...e)},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(m,e),r(g,e)}(y);var Ye={},et={};et.url=void 0,et.url=function(...e){return t=>({...t,url:new URL(e.reduce(((e,t)=>new URL(t,e).href)))})};var tt={text:void 0};const nt=r;tt.text=function(e){return t=>{const n=new nt.Headers(t.headers);return n.set("Content-Type","application/x-www-form-urlencoded"),{...t,headers:n,payload:e}}};var rt={json:void 0};const ot=r;rt.json=function(e){return t=>{const n=new ot.Headers(t.headers);return n.set("Content-Type","application/json"),{...t,headers:n,payload:JSON.stringify(e)}}};var it={},st={exports:{}};st.exports=function t(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};function r(){var e=n.URL||n.webkitURL||null,r=t.toString();return c.BLOB_URL||(c.BLOB_URL=e.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))}var o=!n.document&&!!n.postMessage,i=o&&/blob:/i.test((n.location||{}).protocol),s={},a=0,c={};if(c.parse=l,c.unparse=d,c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!o&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=w,c.ParserHandle=g,c.NetworkStreamer=h,c.FileStreamer=p,c.StringStreamer=v,c.ReadableStreamStreamer=y,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=m),n.jQuery){var u=n.jQuery;u.fn.parse=function(e){var t=e.config||{},r=[];return this.each((function(e){if("INPUT"!==u(this).prop("tagName").toUpperCase()||"file"!==u(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)r.push({file:this.files[o],inputElem:this,instanceConfig:u.extend({},t)})})),o(),this;function o(){if(0!==r.length){var t=r[0];if(C(e.before)){var n=e.before(t.file,t.inputElem);if("object"==typeof n){if("abort"===n.action)return void i("AbortError",t.file,t.inputElem,n.reason);if("skip"===n.action)return void s();"object"==typeof n.config&&(t.instanceConfig=u.extend(t.instanceConfig,n.config))}else if("skip"===n)return void s()}var o=t.instanceConfig.complete;t.instanceConfig.complete=function(e){C(o)&&o(e,t.file,t.inputElem),s()},c.parse(t.file,t.instanceConfig)}else C(e.complete)&&e.complete()}function i(t,n,r,o){C(e.error)&&e.error({name:t},n,r,o)}function s(){r.splice(0,1),o()}}}function l(e,t){var r=(t=t||{}).dynamicTyping||!1;if(C(r)&&(t.dynamicTypingFunction=r,r={}),t.dynamicTyping=r,t.transform=!!C(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var o=A();return o.userStep=t.step,o.userChunk=t.chunk,o.userComplete=t.complete,o.userError=t.error,t.step=C(t.step),t.chunk=C(t.chunk),t.complete=C(t.complete),t.error=C(t.error),delete t.worker,void o.postMessage({input:e,config:t,workerId:o.id})}var i=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(i=new m(t)).getStream():("string"==typeof e?i=t.download?new h(t):new v(t):!0===e.readable&&C(e.read)&&C(e.on)?i=new y(t):(n.File&&e instanceof File||e instanceof Object)&&(i=new p(t)),i.stream(e))}function d(e,t){var n=!1,r=!0,o=",",i="\r\n",s='"',a=s+s,u=!1,l=null,d=!1;h();var f=new RegExp(b(s),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return p(null,e,u);if("object"==typeof e[0])return p(l||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||l),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),p(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");l=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+s),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function p(e,t,n){var s="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(a&&r){for(var u=0;u<e.length;u++)u>0&&(s+=o),s+=v(e[u],u);t.length>0&&(s+=i)}for(var l=0;l<t.length;l++){var d=a?e.length:t[l].length,f=!1,h=a?0===Object.keys(t[l]).length:0===t[l].length;if(n&&!a&&(f="greedy"===n?""===t[l].join("").trim():1===t[l].length&&0===t[l][0].length),"greedy"===n&&a){for(var p=[],y=0;y<d;y++){var m=c?e[y]:y;p.push(t[l][m])}f=""===p.join("").trim()}if(!f){for(var g=0;g<d;g++){g>0&&!h&&(s+=o);var b=a&&c?e[g]:g;s+=v(t[l][b],g)}l<t.length-1&&(!n||d>0&&!h)&&(s+=i)}}return s}function v(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var r=!1;d&&"string"==typeof e&&d.test(e)&&(e="'"+e,r=!0);var i=e.toString().replace(f,a);return(r=r||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||y(i,c.BAD_DELIMITERS)||i.indexOf(o)>-1||" "===i.charAt(0)||" "===i.charAt(i.length-1))?s+i+s:i}function y(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function f(e){function t(e){var t=R(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new g(t),this._handle.streamer=this,this._config=t}this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},t.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&C(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+e;this._partialLine="";var s=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var a=s.meta.cursor;this._finished||(this._partialLine=o.substring(a-this._baseIndex),this._baseIndex=a),s&&s.data&&(this._rowCount+=s.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)n.postMessage({results:s,workerId:c.WORKER_ID,finished:u});else if(C(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!u||!C(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){C(this._config.error)?this._config.error(e):i&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function h(e){var t;function n(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),f.call(this,e),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),o||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+r)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}o&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=n(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function p(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),f.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var o=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,o)}var i=t.readAsText(e,this._config.encoding);r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function v(e){var t;e=e||{},f.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function y(e){e=e||{},f.call(this,e);var t=[],n=!0,r=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=x((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=x((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=x((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=x((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function m(t){var n=e.Duplex,r=R(t),o=!0,i=!1,s=[],a=null;this._onCsvData=function(e){var t=e.data;a.push(t)||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){a.push(null)},r.step=x(this._onCsvData,this),r.complete=x(this._onCsvComplete,this),f.call(this,r),this._nextChunk=function(){i&&1===s.length&&(this._finished=!0),s.length?s.shift()():o=!0},this._addToParseQueue=function(e,t){s.push(x((function(){if(this.parseChunk("string"==typeof e?e:e.toString(r.encoding)),C(t))return t()}),this)),o&&(o=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){i=!0,this._addToParseQueue("")},this.getStream=function(){return a},(a=new n({readableObjectMode:!0,decodeStrings:!1,read:x(this._onRead,this),write:x(this._onWrite,this)})).once("finish",x(this._onWriteComplete,this))}function g(e){var t,n,r,o=Math.pow(2,53),i=-o,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,u=this,l=0,d=0,f=!1,h=!1,p=[],v={data:[],errors:[],meta:{}};if(C(e.step)){var y=e.step;e.step=function(t){if(v=t,_())A();else{if(A(),0===v.data.length)return;l+=t.data.length,e.preview&&l>e.preview?n.abort():(v.data=v.data[0],y(v,u))}}}function m(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function g(e){if(s.test(e)){var t=parseFloat(e);if(t>i&&t<o)return!0}return!1}function A(){return v&&r&&(P("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(v.data=v.data.filter((function(e){return!m(e)}))),_()&&S(),x()}function _(){return e.header&&0===p.length}function S(){if(v)if(Array.isArray(v.data[0])){for(var t=0;_()&&t<v.data.length;t++)v.data[t].forEach(n);v.data.splice(0,1)}else v.data.forEach(n);function n(t,n){C(e.transformHeader)&&(t=e.transformHeader(t,n)),p.push(t)}}function T(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function E(e,t){return T(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(g(t)?parseFloat(t):a.test(t)?new Date(t):""===t?null:t):t}function x(){if(!v||!e.header&&!e.dynamicTyping&&!e.transform)return v;function t(t,n){var r,o=e.header?{}:[];for(r=0;r<t.length;r++){var i=r,s=t[r];e.header&&(i=r>=p.length?"__parsed_extra":p[r]),e.transform&&(s=e.transform(s,i)),s=E(i,s),"__parsed_extra"===i?(o[i]=o[i]||[],o[i].push(s)):o[i]=s}return e.header&&(r>p.length?P("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+r,d+n):r<p.length&&P("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+r,d+n)),o}var n=1;return!v.data.length||Array.isArray(v.data[0])?(v.data=v.data.map(t),n=v.data.length):v.data=t(v.data,0),e.header&&v.meta&&(v.meta.fields=p),d+=n,v}function k(t,n,r,o,i){var s,a,u,l;i=i||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var d=0;d<i.length;d++){var f=i[d],h=0,p=0,v=0;u=void 0;for(var y=new w({comments:o,delimiter:f,newline:n,preview:10}).parse(t),g=0;g<y.data.length;g++)if(r&&m(y.data[g]))v++;else{var b=y.data[g].length;p+=b,void 0!==u?b>0&&(h+=Math.abs(b-u),u=b):u=b}y.data.length>0&&(p/=y.data.length-v),(void 0===a||h<=a)&&(void 0===l||p>l)&&p>1.99&&(a=h,s=f,l=p)}return e.delimiter=s,{successful:!!s,bestDelimiter:s}}function O(e,t){e=e.substring(0,1048576);var n=new RegExp(b(t)+"([^]*?)"+b(t),"gm"),r=(e=e.replace(n,"")).split("\r"),o=e.split("\n"),i=o.length>1&&o[0].length<r[0].length;if(1===r.length||i)return"\n";for(var s=0,a=0;a<r.length;a++)"\n"===r[a][0]&&s++;return s>=r.length/2?"\r\n":"\r"}function P(e,t,n,r){var o={type:e,code:t,message:n};void 0!==r&&(o.row=r),v.errors.push(o)}this.parse=function(o,i,s){var a=e.quoteChar||'"';if(e.newline||(e.newline=O(o,a)),r=!1,e.delimiter)C(e.delimiter)&&(e.delimiter=e.delimiter(o),v.meta.delimiter=e.delimiter);else{var u=k(o,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);u.successful?e.delimiter=u.bestDelimiter:(r=!0,e.delimiter=c.DefaultDelimiter),v.meta.delimiter=e.delimiter}var l=R(e);return e.preview&&e.header&&l.preview++,t=o,n=new w(l),v=n.parse(t,i,s),A(),f?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return f},this.pause=function(){f=!0,n.abort(),t=C(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(f=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),v.meta.aborted=!0,C(e.complete)&&e.complete(v),t=""}}function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(e){var t,n=(e=e||{}).delimiter,r=e.newline,o=e.comments,i=e.step,s=e.preview,a=e.fastMode,u=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(u=e.escapeChar),("string"!=typeof n||c.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),o===n)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||c.BAD_DELIMITERS.indexOf(o)>-1)&&(o=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var l=0,d=!1;this.parse=function(e,c,f){if("string"!=typeof e)throw new Error("Input must be a string");var h=e.length,p=n.length,v=r.length,y=o.length,m=C(i);l=0;var g=[],w=[],A=[],_=0;if(!e)return U();if(a||!1!==a&&-1===e.indexOf(t)){for(var S=e.split(r),T=0;T<S.length;T++){if(A=S[T],l+=A.length,T!==S.length-1)l+=r.length;else if(f)return U();if(!o||A.substring(0,y)!==o){if(m){if(g=[],I(A.split(n)),F(),d)return U()}else I(A.split(n));if(s&&T>=s)return g=g.slice(0,s),U(!0)}}return U()}for(var E=e.indexOf(n,l),R=e.indexOf(r,l),x=new RegExp(b(u)+b(t),"g"),k=e.indexOf(t,l);;)if(e[l]!==t)if(o&&0===A.length&&e.substring(l,l+y)===o){if(-1===R)return U();l=R+v,R=e.indexOf(r,l),E=e.indexOf(n,l)}else if(-1!==E&&(E<R||-1===R))A.push(e.substring(l,E)),l=E+p,E=e.indexOf(n,l);else{if(-1===R)break;if(A.push(e.substring(l,R)),q(R+v),m&&(F(),d))return U();if(s&&g.length>=s)return U(!0)}else for(k=l,l++;;){if(-1===(k=e.indexOf(t,k+1)))return f||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:g.length,index:l}),j();if(k===h-1)return j(e.substring(l,k).replace(x,t));if(t!==u||e[k+1]!==u){if(t===u||0===k||e[k-1]!==u){-1!==E&&E<k+1&&(E=e.indexOf(n,k+1)),-1!==R&&R<k+1&&(R=e.indexOf(r,k+1));var O=N(-1===R?E:Math.min(E,R));if(e.substr(k+1+O,p)===n){A.push(e.substring(l,k).replace(x,t)),l=k+1+O+p,e[k+1+O+p]!==t&&(k=e.indexOf(t,l)),E=e.indexOf(n,l),R=e.indexOf(r,l);break}var P=N(R);if(e.substring(k+1+P,k+1+P+v)===r){if(A.push(e.substring(l,k).replace(x,t)),q(k+1+P+v),E=e.indexOf(n,l),k=e.indexOf(t,l),m&&(F(),d))return U();if(s&&g.length>=s)return U(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:g.length,index:l}),k++}}else k++}return j();function I(e){g.push(e),_=l}function N(t){var n=0;if(-1!==t){var r=e.substring(k+1,t);r&&""===r.trim()&&(n=r.length)}return n}function j(t){return f||(void 0===t&&(t=e.substring(l)),A.push(t),l=h,I(A),m&&F()),U()}function q(t){l=t,I(A),A=[],R=e.indexOf(r,l)}function U(e){return{data:g,errors:w,meta:{delimiter:n,linebreak:r,aborted:d,truncated:!!e,cursor:_+(c||0)}}}function F(){i(U()),g=[],w=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return l}}function A(){if(!c.WORKERS_SUPPORTED)return!1;var e=r(),t=new n.Worker(e);return t.onmessage=_,t.id=a++,s[t.id]=t,t}function _(e){var t=e.data,n=s[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){r=!0,S(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:T,resume:T};if(C(n.userStep)){for(var i=0;i<t.results.data.length&&(n.userStep({data:t.results.data[i],errors:t.results.errors,meta:t.results.meta},o),!r);i++);delete t.results}else C(n.userChunk)&&(n.userChunk(t.results,o,t.file),delete t.results)}t.finished&&!r&&S(t.workerId,t.results)}function S(e,t){var n=s[e];C(n.userComplete)&&n.userComplete(t),n.terminate(),delete s[e]}function T(){throw new Error("Not implemented.")}function E(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var r=c.parse(t.input,t.config);r&&n.postMessage({workerId:c.WORKER_ID,results:r,finished:!0})}}function R(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=R(e[n]);return t}function x(e,t){return function(){e.apply(t,arguments)}}function C(e){return"function"==typeof e}return i&&(n.onmessage=E),h.prototype=Object.create(f.prototype),h.prototype.constructor=h,p.prototype=Object.create(f.prototype),p.prototype.constructor=p,v.prototype=Object.create(v.prototype),v.prototype.constructor=v,y.prototype=Object.create(f.prototype),y.prototype.constructor=y,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(m.prototype=Object.create(f.prototype),m.prototype.constructor=m),c}();var at={},ct={},ut={},lt={},dt={},ft={},ht={};ht.go=void 0,ht.go=function(e){return e()};var pt={};pt.goMicrotask=void 0,pt.goMicrotask=function(e){return new Promise(((t,n)=>{queueMicrotask((async()=>{try{t(await e())}catch(e){n(e)}}))}))};var vt={},yt={},mt={},gt={},bt={};bt.random=void 0,bt.random=function(e,t){return Math.random()*(t-e)+e};var wt={};wt.randomInt=void 0,wt.randomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e};var At={};At.randomIntInclusive=void 0,At.randomIntInclusive=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(bt,e),r(wt,e),r(At,e)}(gt),mt.calculateExponentialBackoffTimeout=void 0;const _t=gt;mt.calculateExponentialBackoffTimeout=function({baseTimeout:e,retries:t,maxTimeout:n=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**t*e,n);return o?(0,_t.randomIntInclusive)(0,i):i};var St={};St.setTimeout=void 0,St.setTimeout=function(e,t){const n=globalThis.setTimeout(t,e);return()=>clearTimeout(n)};var Tt={setSchedule:void 0};const Et=St;Tt.setSchedule=function(e,t){const n=e-Date.now();return(0,Et.setTimeout)(n,t)};var Rt={};Rt.setInterval=void 0,Rt.setInterval=function(e,t){const n=globalThis.setInterval(t,e);return()=>clearInterval(n)};var xt={setImmediate:void 0};const Ct=St;xt.setImmediate=function(e){if(globalThis.setImmediate){const t=globalThis.setImmediate(e);return()=>clearImmediate(t)}return(0,Ct.setTimeout)(0,e)};var kt={setTimeoutLoop:void 0};const Ot=St;kt.setTimeoutLoop=function(e,t){let n=!1,r=(0,Ot.setTimeout)(e,(async function o(){await t(),n||(r=(0,Ot.setTimeout)(e,o))}));return()=>{n=!0,r()}};var Pt={setDynamicTimeoutLoop:void 0};const It=St;Pt.setDynamicTimeoutLoop=function(e,t){let n=!1,r=(0,It.setTimeout)(e,(async function o(){const i=Date.now();await t();const s=Date.now()-i;n||(r=(0,It.setTimeout)(Math.max(e-s,0),o))}));return()=>{n=!0,r()}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(mt,e),r(St,e),r(Tt,e),r(Rt,e),r(xt,e),r(kt,e),r(Pt,e)}(yt),vt.goMacrotask=void 0;const Nt=yt;var jt;vt.goMacrotask=function(e){return new Promise(((t,n)=>{(0,Nt.setImmediate)((async()=>{try{t(await e())}catch(e){n(e)}}))}))},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(ht,e),r(pt,e),r(vt,e)}(ft);var qt={chunkByAsync:void 0};const Ut=b;qt.chunkByAsync=function(e,t){return(0,Ut.isAsyncIterable)(e)?async function*(e,t){let n=[],r=0;for await(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e,t):async function*(e,t){let n=[],r=0;for(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e,t)};var Ft={};Ft.chunkBy=void 0,Ft.chunkBy=function*(e,t){let n=[],r=0;for(const o of e)n.push(o),t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Lt,Mt={};var Dt={concatAsync:void 0};const Bt=b,Ht=ft;Dt.concatAsync=function(e,...t){return(0,Ht.go)((async function*(){for(const n of[e,...t])if((0,Bt.isAsyncIterable)(n))for await(const e of n)yield e;else for(const e of n)yield e}))};var zt={concat:void 0};const $t=ft;zt.concat=function(e,...t){return(0,$t.go)((function*(){for(const n of[e,...t])yield*n}))};var Jt,Gt={},Vt={};Vt.copyIterable=Vt.copyAsyncIterable=void 0,Vt.copyAsyncIterable=async function*(e){for await(const t of e)yield t},Vt.copyIterable=function*(e){for(const t of e)yield t};var Wt,Kt={};var Qt,Zt={};var Xt={dropUntilAsync:void 0};const Yt=b;Xt.dropUntilAsync=function(e,t){return(0,Yt.isAsyncIterable)(e)?async function*(e,t){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(e,t):async function*(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(e,t)};var en={};en.dropUntil=void 0,en.dropUntil=function*(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var tn,nn={};var rn={filterAsync:void 0};const on=b;rn.filterAsync=function(e,t){return(0,on.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)await t(r,n)&&(yield r),n++}(e,t):async function*(e,t){let n=0;for(const r of e)await t(r,n)&&(yield r),n++}(e,t)};var sn={};sn.filter=void 0,sn.filter=function*(e,t){let n=0;for(const r of e)t(r,n)&&(yield r),n++};var an={},cn={},un={flattenByAsync:void 0};const ln=b;async function*dn(e,t,n){for(const r of e)fn(r)&&await t(r,n)?yield*dn(r,t,n+1):yield r}function fn(e){return(0,ln.isIterable)(e)&&(0,ln.isntChar)(e)}var hn,pn;function vn(){if(hn)return cn;hn=1,cn.flattenDeepAsync=void 0;const e=un,t=xo();return cn.flattenDeepAsync=function(n,r=1/0){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,t.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenByAsync)(n,((e,t)=>t<=r))},cn}un.flattenByAsync=function(e,t){return(0,ln.isAsyncIterable)(e)?async function*(e,t){const n=1;for await(const r of e)fn(r)&&await t(r,n)?yield*dn(r,t,n+1):yield r}(e,t):function(e,t){return dn(e,t,1)}(e,t)};var yn={flattenBy:void 0};const mn=b;function*gn(e,t,n){for(const o of e)(0,mn.isIterable)(r=o)&&(0,mn.isntChar)(r)&&t(o,n)?yield*gn(o,t,n+1):yield o;var r}yn.flattenBy=function(e,t){return gn(e,t,1)};var bn,wn={};function An(){if(bn)return wn;bn=1,wn.flattenDeep=void 0;const e=yn,t=xo();return wn.flattenDeep=function(n,r=1/0){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,t.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenBy)(n,((e,t)=>t<=r))},wn}var _n,Sn={};var Tn={mapAsync:void 0};const En=b;Tn.mapAsync=function(e,t){return(0,En.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)yield await t(r,n),n++}(e,t):async function*(e,t){let n=0;for(const r of e)yield await t(r,n),n++}(e,t)};var Rn={};Rn.map=void 0,Rn.map=function*(e,t){let n=0;for(const r of e)yield t(r,n),n++};var xn,Cn={};function kn(){if(xn)return Cn;xn=1,Cn.repeatAsync=void 0;const e=ft,t=xo();return Cn.repeatAsync=function(n,r){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,t.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((async function*(){const e=[];if(r>0){for await(const t of n)yield t,e.push(t);r--}for(;r>0;)yield*e,r--}))},Cn}var On,Pn={};function In(){if(On)return Pn;On=1,Pn.repeat=void 0;const e=ft,t=xo();return Pn.repeat=function(n,r){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,t.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((function*(){const e=[];if(r>0){for(const t of n)yield t,e.push(t);r--}for(;r>0;)yield*e,r--}))},Pn}var Nn,jn={};var qn,Un={};var Fn={};Fn.splitAsync=void 0,Fn.splitAsync=async function*(e,t){let n=[];for await(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var Ln={splitByAsync:void 0};const Mn=b;Ln.splitByAsync=function(e,t){return(0,Mn.isAsyncIterable)(e)?async function*(e,t){let n=[],r=0;for await(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e,t):async function*(e,t){let n=[],r=0;for(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e,t)};var Dn={};Dn.splitBy=void 0,Dn.splitBy=function*(e,t){let n=[],r=0;for(const o of e)t(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var Bn={};Bn.split=void 0,Bn.split=function*(e,t){let n=[];for(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var Hn,zn={};var $n,Jn={};var Gn,Vn={};var Wn={takeUntilAsync:void 0};const Kn=b;Wn.takeUntilAsync=function(e,t){return(0,Kn.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e){if(await t(r,n))break;yield r,n++}}(e,t):async function*(e,t){let n=0;for(const r of e){if(await t(r,n))break;yield r,n++}}(e,t)};var Qn={};Qn.takeUntil=void 0,Qn.takeUntil=function*(e,t){let n=0;for(const r of e){if(t(r,n))break;yield r,n++}};var Zn,Xn={};var Yn={tapAsync:void 0};const er=b;Yn.tapAsync=function(e,t){return(0,er.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)await t(r,n),yield r,n++}(e,t):async function*(e,t){let n=0;for(const r of e)await t(r,n),yield r,n++}(e,t)};var tr={};tr.tap=void 0,tr.tap=function*(e,t){let n=0;for(const r of e)t(r,n),yield r,n++};var nr={};nr.toAsyncIterable=void 0,nr.toAsyncIterable=async function*(e){for(const t of e)yield t};var rr={};rr.transformAsync=void 0,rr.transformAsync=async function*(e,t){yield*t(e)};var or={};or.transform=void 0,or.transform=function*(e,t){yield*t(e)};var ir={};ir.uniqAsync=void 0,ir.uniqAsync=async function*(e){const t=new Set;for await(const n of e)t.has(n)||(yield n,t.add(n))};var sr={uniqByAsync:void 0};const ar=b;sr.uniqByAsync=function(e,t){return(0,ar.isAsyncIterable)(e)?async function*(e,t){const n=new Set;let r=0;for await(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e,t):async function*(e,t){const n=new Set;let r=0;for(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e,t)};var cr={};cr.uniqBy=void 0,cr.uniqBy=function*(e,t){const n=new Set;let r=0;for(const o of e){const e=t(o,r);n.has(e)||(yield o,n.add(e)),r++}};var ur={};ur.uniq=void 0,ur.uniq=function*(e){const t=new Set;for(const n of e)t.has(n)||(yield n,t.add(n))};var lr={zipAsync:void 0};const dr=b;var fr;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(fr||(fr={})),lr.zipAsync=function(e,...t){return async function*(...e){var t,n,r,o;const i=e.length,s=e.map((e=>(0,dr.isAsyncIterable)(e)?[fr.Async,e[Symbol.asyncIterator]()]:[fr.Sync,e[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[n,r]=s[t];let o;if(o=n===fr.Async?await r.next():r.next(),o.done)return void(a[t]=!0);e[t]=o.value}yield e}}finally{const e=s.filter(((e,t)=>!a[t]));for(const[i,s]of e)i===fr.Async?await(null===(n=(t=s).return)||void 0===n?void 0:n.call(t)):null===(o=(r=s).return)||void 0===o||o.call(r)}}(e,...t)};var hr,pr={};function vr(){return hr||(hr=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(function(){if(jt)return dt;jt=1,dt.chunkAsync=void 0;const e=ft,t=xo();return dt.chunkAsync=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,t.assert)(r>0,"The parameter size must be greater than 0"),(0,e.go)((async function*(){let e=[];for await(const t of n)e.push(t),e.length>=r&&(yield e,e=[]);e.length&&(yield e)}))},dt}(),e),r(qt,e),r(Ft,e),r(function(){if(Lt)return Mt;Lt=1,Mt.chunk=void 0;const e=ft,t=xo();return Mt.chunk=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,t.assert)(r>0,"The parameter size must be greater than 0"),(0,e.go)((function*(){let e=[];for(const t of n)e.push(t),e.length>=r&&(yield e,e=[]);e.length&&(yield e)}))},Mt}(),e),r(Dt,e),r(zt,e),r(function(){if(Jt)return Gt;Jt=1,Gt.dropAsync=void 0;const e=ft,t=Vt,n=xo();return Gt.dropAsync=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(r):(0,e.go)((async function*(){var e;const t=r[Symbol.asyncIterator]();let n;try{let r;for(;({value:r,done:n}=await t.next()),!(n||o<=0);)o--;for(;!n;)yield r,({value:r,done:n}=await t.next())}finally{n||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},Gt}(),e),r(function(){if(Wt)return Kt;Wt=1,Kt.dropRightAsync=void 0;const e=ft,t=Vt,n=xo();return Kt.dropRightAsync=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(r):(0,e.go)((async function*(){const e=(await async function(e){const t=[];for await(const n of e)t.push(n);return t}(r)).slice(0,-o);for(const t of e)yield t}))},Kt}(),e),r(function(){if(Qt)return Zt;Qt=1,Zt.dropRight=void 0;const e=ft,t=Vt,n=xo();return Zt.dropRight=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(r):(0,e.go)((function*(){const e=Array.from(r);yield*e.slice(0,-o)}))},Zt}(),e),r(Xt,e),r(en,e),r(function(){if(tn)return nn;tn=1,nn.drop=void 0;const e=ft,t=Vt,n=xo();return nn.drop=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(r):(0,e.go)((function*(){var e;const t=r[Symbol.iterator]();let n;try{let r;for(;({value:r,done:n}=t.next()),!(n||o<=0);)o--;for(;!n;)yield r,({value:r,done:n}=t.next())}finally{n||null===(e=t.return)||void 0===e||e.call(t)}}))},nn}(),e),r(rn,e),r(sn,e),r(function(){if(pn)return an;pn=1,an.flattenAsync=void 0;const e=vn();return an.flattenAsync=function(t){return(0,e.flattenDeepAsync)(t,1)},an}(),e),r(un,e),r(yn,e),r(vn(),e),r(An(),e),r(function(){if(_n)return Sn;_n=1,Sn.flatten=void 0;const e=An();return Sn.flatten=function(t){return(0,e.flattenDeep)(t,1)},Sn}(),e),r(Tn,e),r(Rn,e),r(kn(),e),r(In(),e),r(function(){if(Nn)return jn;Nn=1,jn.sliceAsync=void 0;const e=ft,t=xo();return jn.sliceAsync=function(n,r,o=1/0){return(0,t.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,t.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,e.go)((async function*(){let e=0;for await(const t of n){if(e>=o)break;e>=r&&(yield t),e++}}))},jn}(),e),r(function(){if(qn)return Un;qn=1,Un.slice=void 0;const e=ft,t=xo();return Un.slice=function(n,r,o=1/0){return(0,t.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,t.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,e.go)((function*(){let e=0;for(const t of n){if(e>=o)break;e>=r&&(yield t),e++}}))},Un}(),e),r(Fn,e),r(Ln,e),r(Dn,e),r(Bn,e),r(function(){if(Hn)return zn;Hn=1,zn.takeAsync=void 0;const e=ft,t=xo();return zn.takeAsync=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){if(0!==r)for await(const e of n)if(yield e,0==--r)break}))},zn}(),e),r(function(){if($n)return Jn;$n=1,Jn.takeRightAsync=void 0;const e=ft,t=xo();return Jn.takeRightAsync=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){var e;const t=n[Symbol.asyncIterator]();let o;try{const n=[];let i;for(;({value:i,done:o}=await t.next()),!o;)n.push(i),n.length>r&&n.shift();yield*n}finally{o||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},Jn}(),e),r(function(){if(Gn)return Vn;Gn=1,Vn.takeRight=void 0;const e=ft,t=xo();return Vn.takeRight=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){var e;const t=n[Symbol.iterator]();let o;try{const n=[];let i;for(;({value:i,done:o}=t.next()),!o;)n.push(i),n.length>r&&n.shift();yield*n}finally{o||null===(e=t.return)||void 0===e||e.call(t)}}))},Vn}(),e),r(Wn,e),r(Qn,e),r(function(){if(Zn)return Xn;Zn=1,Xn.take=void 0;const e=ft,t=xo();return Xn.take=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){if(0!==r)for(const e of n)if(yield e,0==--r)break}))},Xn}(),e),r(Yn,e),r(tr,e),r(nr,e),r(rr,e),r(or,e),r(ir,e),r(sr,e),r(cr,e),r(ur,e),r(lr,e),r(pr,e)}(lt)),lt}pr.zip=void 0,pr.zip=function(e,...t){return function*(...e){const t=e.length,n=e.map((e=>e[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=n[o].next();if(i)return void(r[o]=!0);e[o]=t}yield e}}finally{n.filter(((e,t)=>!r[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)};var yr={},mr={};mr.consume=void 0,mr.consume=function(e,t){return t(e)};var gr={eachAsync:void 0};const br=b;gr.eachAsync=function(e,t){return(0,br.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e)await t(r,n),n++}(e,t):async function(e,t){let n=0;for(const r of e)await t(r,n),n++}(e,t)};var wr={};wr.each=void 0,wr.each=function(e,t){let n=0;for(const r of e)t(r,n),n++};var Ar={everyAsync:void 0};const _r=b;Ar.everyAsync=function(e,t){return(0,_r.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(!await t(r,n))return!1;n++}return!0}(e,t):async function(e,t){let n=0;for(const r of e){if(!await t(r,n))return!1;n++}return!0}(e,t)};var Sr={};Sr.every=void 0,Sr.every=function(e,t){let n=0;for(const r of e){if(!t(r,n))return!1;n++}return!0};var Tr={findAsync:void 0};const Er=b;Tr.findAsync=function(e,t){return(0,Er.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(await t(r,n))return r;n++}return}(e,t):async function(e,t){let n=0;for(const r of e){if(await t(r,n))return r;n++}return}(e,t)};var Rr={};Rr.find=void 0,Rr.find=function(e,t){let n=0;for(const r of e){if(t(r,n))return r;n++}};var xr={};xr.firstAsync=void 0,xr.firstAsync=async function(e){for await(const t of e)return t};var Cr={};Cr.first=void 0,Cr.first=function(e){for(const t of e)return t};var kr={};kr.includesAsync=void 0,kr.includesAsync=async function(e,t){for await(const n of e)if(n===t)return!0;return!1};var Or={};Or.includes=void 0,Or.includes=function(e,t){for(const n of e)if(n===t)return!0;return!1};var Pr={};Pr.matchAsync=void 0,Pr.matchAsync=async function(e,t){const n=t.length;let r=0;for await(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var Ir={};Ir.match=void 0,Ir.match=function(e,t){const n=t.length;let r=0;for(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var Nr={reduceAsync:void 0};const jr=b;Nr.reduceAsync=function(e,t,n){return(0,jr.isUndefined)(n)?function(e,t){return(0,jr.isAsyncIterable)(e)?n(e):r(e);async function n(e){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,s=await i(r),a=1;for(;({value:e,done:o}=await r.next()),!o;)s=await t(s,e,a++);return s}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function r(e){var n;const r=e[Symbol.iterator]();let o;try{let e,s=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)s=await t(s,e,a++);return s}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,n){return(0,jr.isAsyncIterable)(e)?o(e):r(e);async function r(e){let r=n,o=0;for(const n of e)r=await t(r,n,o++);return r}async function o(e){let r=n,o=0;for await(const n of e)r=await t(r,n,o++);return r}}(e,t,n)};var qr={reduce:void 0};const Ur=b;qr.reduce=function(e,t,n){return(0,Ur.isUndefined)(n)?function(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,s=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)s=t(s,e,a++);return s}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,n){let r=n,o=0;for(const n of e)r=t(r,n,o++);return r}(e,t,n)};var Fr={someAsync:void 0};const Lr=b;Fr.someAsync=function(e,t){return(0,Lr.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(await t(r,n))return!0;n++}return!1}(e,t):async function(e,t){let n=0;for(const r of e){if(await t(r,n))return!0;n++}return!1}(e,t)};var Mr={};Mr.some=void 0,Mr.some=function(e,t){let n=0;for(const r of e){if(t(r,n))return!0;n++}return!1};var Dr={};Dr.lastAsync=void 0,Dr.lastAsync=async function(e){var t;const n=e[Symbol.asyncIterator]();let r;try{let e,o;for(;({value:e,done:r}=await n.next()),!r;)o=e;return o}finally{r||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}};var Br={};Br.last=void 0,Br.last=function(e){var t;const n=e[Symbol.iterator]();let r;try{let e,o;for(;({value:e,done:r}=n.next()),!r;)o=e;return o}finally{r||null===(t=n.return)||void 0===t||t.call(n)}};var Hr={toArrayAsync:void 0};const zr=mr;Hr.toArrayAsync=function(e){return(0,zr.consume)(e,(async e=>{const t=[];for await(const n of e)t.push(n);return t}))};var $r={toArray:void 0};const Jr=mr;$r.toArray=function(e){return(0,Jr.consume)(e,(e=>Array.from(e)))};var Gr={toSetAsync:void 0};const Vr=mr;Gr.toSetAsync=function(e){return(0,Vr.consume)(e,(async e=>{const t=new Set;for await(const n of e)t.add(n);return t}))};var Wr={toSet:void 0};const Kr=mr;Wr.toSet=function(e){return(0,Kr.consume)(e,(e=>new Set(e)))};var Qr={};Qr.count=void 0,Qr.count=function(e){let t=0;for(const n of e)t++;return t};var Zr={};Zr.countAsync=void 0,Zr.countAsync=async function(e){let t=0;for await(const n of e)t++;return t};var Xr={groupBy:void 0};const Yr=wr;Xr.groupBy=function(e,t){const n=new Map;return(0,Yr.each)(e,((e,r)=>{const o=t(e,r);n.has(o)||n.set(o,[]),n.get(o).push(e)})),n};var eo={groupByAsync:void 0};const to=gr;var no;function ro(){return no||(no=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(vr(),e),r(yr,e)}(ut)),ut}eo.groupByAsync=async function(e,t){const n=new Map;return await(0,to.eachAsync)(e,(async(e,r)=>{const o=await t(e,r);n.has(o)||n.set(o,[]),n.get(o).push(e)})),n},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(mr,e),r(gr,e),r(wr,e),r(Ar,e),r(Sr,e),r(Tr,e),r(Rr,e),r(xr,e),r(Cr,e),r(kr,e),r(Or,e),r(Pr,e),r(Ir,e),r(Nr,e),r(qr,e),r(Fr,e),r(Mr,e),r(Dr,e),r(Br,e),r(Hr,e),r($r,e),r(Gr,e),r(Wr,e),r(Qr,e),r(Zr,e),r(Xr,e),r(eo,e)}(yr);var oo={},io={};io.traverseErrorPrototypeChain=void 0,io.traverseErrorPrototypeChain=function*(e){let t=e;for(;(t=Object.getPrototypeOf(t))&&(yield t,t!==Error.prototype););},oo.getErrorNames=void 0;const so=b,ao=io;oo.getErrorNames=function*(e){var t;if((0,so.isError)(e))for(const n of(0,ao.traverseErrorPrototypeChain)(e))(null===(t=n.constructor)||void 0===t?void 0:t.name)&&(yield n.constructor.name);else yield e.name,yield*e.ancestors};var co={isSerializableError:void 0};const uo=b;var lo;function fo(){if(lo)return ct;lo=1,ct.CustomError=void 0;const e=ro(),t=oo,n=b,r=co;class o extends Error{get name(){var n,r;return null!==(r=null!==(n=(0,e.first)((0,t.getErrorNames)(this)))&&void 0!==n?n:o.name)&&void 0!==r?r:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,n.isError)(o)||(0,r.isSerializableError)(o)){const n=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,t.getErrorNames)(this.prototype)].reverse(),r=(0,e.toArray)((0,t.getErrorNames)(o)).reverse();return n.every(((e,t)=>e===r[t]))}return!1}}return ct.CustomError=o,ct}co.isSerializableError=function(e){return(0,uo.isObject)(e)&&(0,uo.isString)(e.name)&&(0,uo.isString)(e.message)&&((0,uo.isString)(e.stack)||(0,uo.isNull)(e.stack))&&(0,uo.isArray)(e.ancestors)&&e.ancestors.every(uo.isString)};var ho,po={};function vo(){if(ho)return po;ho=1,po.AssertionError=void 0;const e=fo();class t extends e.CustomError{}return po.AssertionError=t,po}var yo,mo={};var go={},bo={},wo={};wo.pass=void 0,wo.pass=function(){};var Ao={};Ao.passAsync=void 0,Ao.passAsync=async function(){},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(wo,e),r(Ao,e)}(bo),go.hydrate=void 0;const _o=bo;function So(e,t){const n=function(){(0,_o.pass)()};return(n.prototype=Object.create(e.prototype)).constructor=n,Object.defineProperty(n,"name",{value:t}),n}go.hydrate=function(e){var t;const n=[e.name,...e.ancestors].slice(0,-1).reverse();let r=Error;for(const e of n)r=So(r,e);const o=new r;return o.name=e.name,o.message=e.message,o.stack=null!==(t=e.stack)&&void 0!==t?t:void 0,o};var To,Eo,Ro={};function xo(){return Eo||(Eo=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(fo(),e),r(vo(),e),r(co,e),r(function(){if(yo)return mo;yo=1,mo.normalize=void 0;const e=oo,t=ro();return mo.normalize=function(n){var r;const[o,...i]=(0,t.toArray)((0,e.getErrorNames)(n));return{name:o,ancestors:i,message:n.message,stack:null!==(r=n.stack)&&void 0!==r?r:null}},mo}(),e),r(go,e),r(function(){if(To)return Ro;To=1,Ro.assert=void 0;const e=vo();return Ro.assert=function(t,n){if(!t)throw new e.AssertionError(n)},Ro}(),e),r(oo,e),r(io,e)}(at)),at}it.csv=void 0;const Co=r,ko=st.exports,Oo=xo();function Po(e){const t=Object.keys(e[0]);return(0,ko.unparse)({data:e,fields:t})}it.csv=function(e){return(0,Oo.assert)(e.length>0,"payload must be a non-empty array"),t=>{const n=new Co.Headers(t.headers);return n.set("Content-Type","text/csv"),{...t,headers:n,payload:Po(e)}}};var Io={};Io.signal=void 0,Io.signal=function(e){return t=>({...t,signal:e})};var No={header:void 0};const jo=r;No.header=function(e,t){return n=>{const r=new jo.Headers(n.headers);return r.set(e,t),{...n,headers:r}}};var qo={appendHeader:void 0};const Uo=r;qo.appendHeader=function(e,t){return n=>{const r=new Uo.Headers(n.headers);return r.append(e,t),{...n,headers:r}}};var Fo={headers:void 0};const Lo=r;Fo.headers=function(e){return t=>{const n=new Lo.Headers(t.headers);for(const[t,r]of Object.entries(e))n.set(t,r);return{...t,headers:n}}};var Mo={accept:void 0};const Do=qo;Mo.accept=function(e){return(0,Do.appendHeader)("Accept",e)};var Bo={};Bo.host=void 0,Bo.host=function(e){return t=>{const n=new URL(t.url.href);return n.host=e,{...t,url:n}}};var Ho={};Ho.port=void 0,Ho.port=function(e){return t=>{const n=new URL(t.url.href);return n.port=e.toString(),{...t,url:n}}};var zo={};zo.pathname=void 0,zo.pathname=function(e){return t=>{const n=new URL(t.url.href);return n.pathname=e,{...t,url:n}}};var $o={};$o.search=void 0,$o.search=function(e){return t=>{const n=new URL(t.url.href);return n.search=e,{...t,url:n}}};var Jo={};Jo.searchParam=void 0,Jo.searchParam=function(e,t){return n=>{const r=new URL(n.url.href),o=new URLSearchParams(r.searchParams);return o.set(e,t.toString()),r.search=o.toString(),{...n,url:r}}};var Go={};Go.searchParams=void 0,Go.searchParams=function(e){return t=>{const n=new URL(t.url.href),r=new URLSearchParams(n.searchParams);for(const[t,n]of Object.entries(e))r.set(t,n.toString());return n.search=r.toString(),{...t,url:n}}};var Vo={};Vo.appendSearchParam=void 0,Vo.appendSearchParam=function(e,t){return n=>{const r=new URL(n.url.href),o=new URLSearchParams(r.searchParams);return o.append(e,t.toString()),r.search=o.toString(),{...n,url:r}}};var Wo={formDataField:void 0};const Ko=r,Qo=b;Wo.formDataField=function(e,t){return n=>{const r=n.payload instanceof Ko.FormData?function(e){const t=new Ko.FormData;for(const[n,r]of e.entries())t.append(n,r);return t}(n.payload):new Ko.FormData;return(0,Qo.isArray)(t)?t.forEach((t=>r.append(e,t))):r.append(e,t),{...n,payload:r}}};var Zo,Xo,Yo,ei,ti,ni,ri,oi,ii,si,ai,ci,ui,li,di,fi,hi,pi,vi,yi,mi,gi,bi,wi,Ai,_i,Si,Ti,Ei,Ri,xi,Ci,ki,Oi,Pi,Ii,Ni,ji,qi,Ui,Fi,Li={},Mi={exports:{}};"undefined"!=typeof self?self:"undefined"!=typeof window&&window,Mi.exports=(Xo=Zo="3.7.2",Yo="function"==typeof atob,ei="function"==typeof btoa,ti="function"==typeof Buffer,ni="function"==typeof TextDecoder?new TextDecoder:void 0,ri="function"==typeof TextEncoder?new TextEncoder:void 0,oi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ii=Array.prototype.slice.call(oi),Fi={},ii.forEach((function(e,t){return Fi[e]=t})),si=Fi,ai=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ci=String.fromCharCode.bind(String),ui="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},li=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},di=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},fi=function(e){for(var t,n,r,o,i="",s=e.length%3,a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");i+=ii[(t=n<<16|r<<8|o)>>18&63]+ii[t>>12&63]+ii[t>>6&63]+ii[63&t]}return s?i.slice(0,s-3)+"===".substring(s):i},pi=ti?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,o=e.length;r<o;r+=t)n.push(ci.apply(null,e.subarray(r,r+t)));return hi(n.join(""))},yi=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?ci(192|t>>>6)+ci(128|63&t):ci(224|t>>>12&15)+ci(128|t>>>6&63)+ci(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return ci(240|t>>>18&7)+ci(128|t>>>12&63)+ci(128|t>>>6&63)+ci(128|63&t)},mi=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,bi=ti?function(e){return Buffer.from(e,"utf8").toString("base64")}:ri?function(e){return pi(ri.encode(e))}:function(e){return hi(gi(e))},Ai=function(e){return wi(e,!0)},_i=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Si=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return ci(55296+(t>>>10))+ci(56320+(1023&t));case 3:return ci((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return ci((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ei=function(e){if(e=e.replace(/\s+/g,""),!ai.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,o="",i=0;i<e.length;)t=si[e.charAt(i++)]<<18|si[e.charAt(i++)]<<12|(n=si[e.charAt(i++)])<<6|(r=si[e.charAt(i++)]),o+=64===n?ci(t>>16&255):64===r?ci(t>>16&255,t>>8&255):ci(t>>16&255,t>>8&255,255&t);return o},xi=ti?function(e){return ui(Buffer.from(e,"base64"))}:function(e){return ui(Ri(e),(function(e){return e.charCodeAt(0)}))},Ci=function(e){return xi(Oi(e))},ki=ti?function(e){return Buffer.from(e,"base64").toString("utf8")}:ni?function(e){return ni.decode(xi(e))}:function(e){return Ti(Ri(e))},Oi=function(e){return di(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},Ii=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},Ni=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,Ii(t))};e("fromBase64",(function(){return Pi(this)})),e("toBase64",(function(e){return wi(this,e)})),e("toBase64URI",(function(){return wi(this,!0)})),e("toBase64URL",(function(){return wi(this,!0)})),e("toUint8Array",(function(){return Ci(this)}))},ji=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,Ii(t))};e("toBase64",(function(e){return vi(this,e)})),e("toBase64URI",(function(){return vi(this,!0)})),e("toBase64URL",(function(){return vi(this,!0)}))},qi=function(){Ni(),ji()},Ui={version:Zo,VERSION:Xo,atob:Ri=Yo?function(e){return atob(di(e))}:ti?function(e){return Buffer.from(e,"base64").toString("binary")}:Ei,atobPolyfill:Ei,btoa:hi=ei?function(e){return btoa(e)}:ti?function(e){return Buffer.from(e,"binary").toString("base64")}:fi,btoaPolyfill:fi,fromBase64:Pi=function(e){return ki(Oi(e))},toBase64:wi=function(e,t){return void 0===t&&(t=!1),t?li(bi(e)):bi(e)},encode:wi,encodeURI:Ai,encodeURL:Ai,utob:gi=function(e){return e.replace(mi,yi)},btou:Ti=function(e){return e.replace(_i,Si)},decode:Pi,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:vi=function(e,t){return void 0===t&&(t=!1),t?li(pi(e)):pi(e)},toUint8Array:Ci,extendString:Ni,extendUint8Array:ji,extendBuiltins:qi,Base64:{}},Object.keys(Ui).forEach((function(e){return Ui.Base64[e]=Ui[e]})),Ui),Li.basicAuth=void 0;const Di=No,Bi=Mi.exports;Li.basicAuth=function(e,t){return(0,Di.header)("Authorization","Basic "+(0,Bi.btoa)(`${e}:${t}`))};var Hi={bearerAuth:void 0};const zi=No;Hi.bearerAuth=function(e){return(0,zi.header)("Authorization",`Bearer ${e}`)};var $i={};$i.keepalive=void 0,$i.keepalive=function(e=!0){return t=>({...t,keepalive:e})},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(et,e),r(tt,e),r(rt,e),r(it,e),r(Io,e),r(No,e),r(qo,e),r(Fo,e),r(Mo,e),r(Bo,e),r(Ho,e),r(zo,e),r($o,e),r(Jo,e),r(Go,e),r(Vo,e),r(Wo,e),r(Li,e),r(Hi,e),r($i,e)}(Ye);var Ji={},Gi={},Vi={},Wi={},Ki={},Qi={},Zi={CustomError:void 0};class Xi extends Error{get name(){return this.constructor.name}}Zi.CustomError=Xi;var Yi={ExpectedError:void 0};const es=Zi;class ts extends es.CustomError{}Yi.ExpectedError=ts;var ns={AssertionError:void 0};const rs=Zi;class os extends rs.CustomError{}ns.AssertionError=os;var is={};is.normalize=void 0,is.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var ss={refute:void 0};const as=Yi;ss.refute=function(e,t){if(e)throw new as.ExpectedError(t)};var cs={assert:void 0};const us=ns;cs.assert=function(e,t){if(!e)throw new us.AssertionError(t)},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Zi,e),r(Yi,e),r(ns,e),r(is,e),r(ss,e),r(cs,e)}(Qi),Ki.HTTPError=void 0;const ls=Qi;Ki.HTTPError=class extends ls.CustomError{constructor(e,t){super(t),this.code=e}};var ds={},fs={};!function(e){e.ServerError=e.ClientError=e.Redirection=e.Successful=e.Informational=void 0,function(e){e[e.Continue=100]="Continue",e[e.SwitchingProtocol=101]="SwitchingProtocol",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints"}(e.Informational||(e.Informational={})),function(e){e[e.OK=200]="OK",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.IMUsed=226]="IMUsed"}(e.Successful||(e.Successful={})),function(e){e[e.MultipleChoice=300]="MultipleChoice",e[e.MovedPermanently=3011]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(e.Redirection||(e.Redirection={})),function(e){e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.URITooLong=414]="URITooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons"}(e.ClientError||(e.ClientError={})),function(e){e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HTTPVersionNotSupported=505]="HTTPVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired"}(e.ServerError||(e.ServerError={}))}(fs),ds.EarlyHints=ds.Processing=ds.SwitchingProtocol=ds.Continue=ds.HTTPInformational=void 0;const hs=fs;class ps{constructor(e,t){this.code=e,this.message=t}}ds.HTTPInformational=ps;ds.Continue=class extends ps{constructor(){super(hs.Informational.Continue,"Continue")}};ds.SwitchingProtocol=class extends ps{constructor(){super(hs.Informational.SwitchingProtocol,"Switching Protocol")}};ds.Processing=class extends ps{constructor(){super(hs.Informational.Processing,"Processing")}};ds.EarlyHints=class extends ps{constructor(){super(hs.Informational.EarlyHints,"Early Hints")}};var vs={};vs.IMUsed=vs.AlreadyReported=vs.MultiStatus=vs.PartialContent=vs.ResetContent=vs.NoContent=vs.NonAuthoritativeInformation=vs.Accepted=vs.Created=vs.OK=vs.HTTPSuccessful=void 0;const ys=fs;class ms{constructor(e,t){this.code=e,this.message=t}}vs.HTTPSuccessful=ms;vs.OK=class extends ms{constructor(){super(ys.Successful.OK,"OK")}};vs.Created=class extends ms{constructor(){super(ys.Successful.Created,"Created")}};vs.Accepted=class extends ms{constructor(){super(ys.Successful.Accepted,"Accepted")}};vs.NonAuthoritativeInformation=class extends ms{constructor(){super(ys.Successful.NonAuthoritativeInformation,"Non-Authoritative Information")}};vs.NoContent=class extends ms{constructor(){super(ys.Successful.NoContent,"No Content")}};vs.ResetContent=class extends ms{constructor(){super(ys.Successful.ResetContent,"Reset Content")}};vs.PartialContent=class extends ms{constructor(){super(ys.Successful.PartialContent,"Partial Content")}};vs.MultiStatus=class extends ms{constructor(){super(ys.Successful.MultiStatus,"Multi-Status")}};vs.AlreadyReported=class extends ms{constructor(){super(ys.Successful.AlreadyReported,"Already Reported")}};vs.IMUsed=class extends ms{constructor(){super(ys.Successful.IMUsed,"IM Used")}};var gs={};gs.PermanentRedirect=gs.TemporaryRedirect=gs.NotModified=gs.SeeOther=gs.Found=gs.MovedPermanently=gs.MultipleChoice=gs.HTTPRedirection=void 0;const bs=fs;class ws{constructor(e,t){this.code=e,this.message=t}}gs.HTTPRedirection=ws;gs.MultipleChoice=class extends ws{constructor(){super(bs.Redirection.MultipleChoice,"Multiple Choice")}};gs.MovedPermanently=class extends ws{constructor(){super(bs.Redirection.MovedPermanently,"Moved Permanently")}};gs.Found=class extends ws{constructor(){super(bs.Redirection.Found,"Found")}};gs.SeeOther=class extends ws{constructor(){super(bs.Redirection.SeeOther,"See Other")}};gs.NotModified=class extends ws{constructor(){super(bs.Redirection.NotModified,"Not Modified")}};gs.TemporaryRedirect=class extends ws{constructor(){super(bs.Redirection.TemporaryRedirect,"Temporary Redirect")}};gs.PermanentRedirect=class extends ws{constructor(){super(bs.Redirection.PermanentRedirect,"Permanent Redirect")}};var As={};As.UnavailableForLegalReasons=As.RequestHeaderFieldsTooLarge=As.TooManyRequests=As.PreconditionRequired=As.UpgradeRequired=As.FailedDependency=As.Locked=As.UnprocessableEntity=As.MisdirectedRequest=As.ExpectationFailed=As.RangeNotSatisfiable=As.UnsupportedMediaType=As.URITooLong=As.PayloadTooLarge=As.PreconditionFailed=As.LengthRequired=As.Gone=As.Conflict=As.RequestTimeout=As.ProxyAuthenticationRequired=As.NotAcceptable=As.MethodNotAllowed=As.NotFound=As.Forbidden=As.Unauthorized=As.BadRequest=As.HTTPClientError=void 0;const _s=Ki,Ss=fs;class Ts extends _s.HTTPError{}As.HTTPClientError=Ts;As.BadRequest=class extends Ts{constructor(e){super(Ss.ClientError.BadRequest,null!=e?e:"Bad Request")}};As.Unauthorized=class extends Ts{constructor(e){super(Ss.ClientError.Unauthorized,null!=e?e:"Unauthorized")}};As.Forbidden=class extends Ts{constructor(e){super(Ss.ClientError.Forbidden,null!=e?e:"Forbidden")}};As.NotFound=class extends Ts{constructor(e){super(Ss.ClientError.NotFound,null!=e?e:"Not Found")}};As.MethodNotAllowed=class extends Ts{constructor(e){super(Ss.ClientError.MethodNotAllowed,null!=e?e:"Method Not Allowed")}};As.NotAcceptable=class extends Ts{constructor(e){super(Ss.ClientError.NotAcceptable,null!=e?e:"Not Acceptable")}};As.ProxyAuthenticationRequired=class extends Ts{constructor(e){super(Ss.ClientError.ProxyAuthenticationRequired,null!=e?e:"Proxy Authentication Required")}};As.RequestTimeout=class extends Ts{constructor(e){super(Ss.ClientError.RequestTimeout,null!=e?e:"Request Timeout")}};As.Conflict=class extends Ts{constructor(e){super(Ss.ClientError.Conflict,null!=e?e:"Conflict")}};As.Gone=class extends Ts{constructor(e){super(Ss.ClientError.Gone,null!=e?e:"Gone")}};As.LengthRequired=class extends Ts{constructor(e){super(Ss.ClientError.LengthRequired,null!=e?e:"Length Required")}};As.PreconditionFailed=class extends Ts{constructor(e){super(Ss.ClientError.PreconditionFailed,null!=e?e:"Precondition Failed")}};As.PayloadTooLarge=class extends Ts{constructor(e){super(Ss.ClientError.PayloadTooLarge,null!=e?e:"Payload Too Large")}};As.URITooLong=class extends Ts{constructor(e){super(Ss.ClientError.URITooLong,null!=e?e:"URI Too Long")}};As.UnsupportedMediaType=class extends Ts{constructor(e){super(Ss.ClientError.UnsupportedMediaType,null!=e?e:"Unsupported Media Type")}};As.RangeNotSatisfiable=class extends Ts{constructor(e){super(Ss.ClientError.RangeNotSatisfiable,null!=e?e:"Range Not Satisfiable")}};As.ExpectationFailed=class extends Ts{constructor(e){super(Ss.ClientError.ExpectationFailed,null!=e?e:"Expectation Failed")}};As.MisdirectedRequest=class extends Ts{constructor(e){super(Ss.ClientError.MisdirectedRequest,null!=e?e:"Misdirected Request")}};As.UnprocessableEntity=class extends Ts{constructor(e){super(Ss.ClientError.UnprocessableEntity,null!=e?e:"Unprocessable Entity")}};As.Locked=class extends Ts{constructor(e){super(Ss.ClientError.Locked,null!=e?e:"Locked")}};As.FailedDependency=class extends Ts{constructor(e){super(Ss.ClientError.FailedDependency,null!=e?e:"Failed Dependency")}};As.UpgradeRequired=class extends Ts{constructor(e){super(Ss.ClientError.UpgradeRequired,null!=e?e:"Upgrade Required")}};As.PreconditionRequired=class extends Ts{constructor(e){super(Ss.ClientError.PreconditionRequired,null!=e?e:"Precondition Required")}};As.TooManyRequests=class extends Ts{constructor(e){super(Ss.ClientError.TooManyRequests,null!=e?e:"Too Many Requests")}};As.RequestHeaderFieldsTooLarge=class extends Ts{constructor(e){super(Ss.ClientError.RequestHeaderFieldsTooLarge,null!=e?e:"Request Header Fields Too Large")}};As.UnavailableForLegalReasons=class extends Ts{constructor(e){super(Ss.ClientError.UnavailableForLegalReasons,null!=e?e:"Unavailable For Legal Reasons")}};var Es={};Es.NetworkAuthenticationRequired=Es.NotExtended=Es.LoopDetected=Es.InsufficientStorage=Es.VariantAlsoNegotiates=Es.HTTPVersionNotSupported=Es.GatewayTimeout=Es.ServiceUnavailable=Es.BadGateway=Es.NotImplemented=Es.InternalServerError=Es.HTTPServerError=void 0;const Rs=Ki,xs=fs;class Cs extends Rs.HTTPError{}Es.HTTPServerError=Cs;Es.InternalServerError=class extends Cs{constructor(e){super(xs.ServerError.InternalServerError,null!=e?e:"Internal Server Error")}};Es.NotImplemented=class extends Cs{constructor(e){super(xs.ServerError.NotImplemented,null!=e?e:"Not Implemented")}};Es.BadGateway=class extends Cs{constructor(e){super(xs.ServerError.BadGateway,null!=e?e:"Bad Gateway")}};Es.ServiceUnavailable=class extends Cs{constructor(e){super(xs.ServerError.ServiceUnavailable,null!=e?e:"Service Unavailable")}};Es.GatewayTimeout=class extends Cs{constructor(e){super(xs.ServerError.GatewayTimeout,null!=e?e:"Gateway Timeout")}};Es.HTTPVersionNotSupported=class extends Cs{constructor(e){super(xs.ServerError.HTTPVersionNotSupported,null!=e?e:"HTTP Version Not Supported")}};Es.VariantAlsoNegotiates=class extends Cs{constructor(e){super(xs.ServerError.VariantAlsoNegotiates,null!=e?e:"Variant Also Negotiates")}};Es.InsufficientStorage=class extends Cs{constructor(e){super(xs.ServerError.InsufficientStorage,null!=e?e:"Insufficient Storage")}};Es.LoopDetected=class extends Cs{constructor(e){super(xs.ServerError.LoopDetected,null!=e?e:"Loop Detected")}};Es.NotExtended=class extends Cs{constructor(e){super(xs.ServerError.NotExtended,null!=e?e:"Not Extended")}};Es.NetworkAuthenticationRequired=class extends Cs{constructor(e){super(xs.ServerError.NetworkAuthenticationRequired,null!=e?e:"Network Authentication Required")}};var ks={};ks.fromCode=ks.UnknownHTTPStatusError=void 0;const Os=ds,Ps=vs,Is=gs,Ns=As,js=Es;class qs extends Error{constructor(e){super(`The HTTP status code ${e} is unknown`),this.name=this.constructor.name}}ks.UnknownHTTPStatusError=qs,ks.fromCode=function(e,t){switch(e){case 100:return new Os.Continue;case 101:return new Os.SwitchingProtocol;case 102:return new Os.Processing;case 103:return new Os.EarlyHints;case 200:return new Ps.OK;case 201:return new Ps.Created;case 202:return new Ps.Accepted;case 203:return new Ps.NonAuthoritativeInformation;case 204:return new Ps.NoContent;case 205:return new Ps.ResetContent;case 206:return new Ps.PartialContent;case 207:return new Ps.MultiStatus;case 208:return new Ps.AlreadyReported;case 226:return new Ps.IMUsed;case 300:return new Is.MultipleChoice;case 301:return new Is.MovedPermanently;case 302:return new Is.Found;case 303:return new Is.SeeOther;case 304:return new Is.NotModified;case 307:return new Is.TemporaryRedirect;case 308:return new Is.PermanentRedirect;case 400:return new Ns.BadRequest(t);case 401:return new Ns.Unauthorized(t);case 403:return new Ns.Forbidden(t);case 404:return new Ns.NotFound(t);case 405:return new Ns.MethodNotAllowed(t);case 406:return new Ns.NotAcceptable(t);case 407:return new Ns.ProxyAuthenticationRequired(t);case 408:return new Ns.RequestTimeout(t);case 409:return new Ns.Conflict(t);case 410:return new Ns.Gone(t);case 411:return new Ns.LengthRequired(t);case 412:return new Ns.PreconditionFailed(t);case 413:return new Ns.PayloadTooLarge(t);case 414:return new Ns.URITooLong(t);case 415:return new Ns.UnsupportedMediaType(t);case 416:return new Ns.RangeNotSatisfiable(t);case 417:return new Ns.ExpectationFailed(t);case 421:return new Ns.MisdirectedRequest(t);case 422:return new Ns.UnprocessableEntity(t);case 423:return new Ns.Locked(t);case 424:return new Ns.FailedDependency(t);case 426:return new Ns.UpgradeRequired(t);case 428:return new Ns.PreconditionRequired(t);case 429:return new Ns.TooManyRequests(t);case 431:return new Ns.RequestHeaderFieldsTooLarge(t);case 451:return new Ns.UnavailableForLegalReasons(t);case 500:return new js.InternalServerError(t);case 501:return new js.NotImplemented(t);case 502:return new js.BadGateway(t);case 503:return new js.ServiceUnavailable(t);case 504:return new js.GatewayTimeout(t);case 505:return new js.HTTPVersionNotSupported(t);case 506:return new js.VariantAlsoNegotiates(t);case 507:return new js.InsufficientStorage(t);case 508:return new js.LoopDetected(t);case 510:return new js.NotExtended(t);case 511:return new js.NetworkAuthenticationRequired(t);default:throw new qs(e)}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Wi,e),r(Ki,e),r(ds,e),r(vs,e),r(gs,e),r(As,e),r(Es,e),r(ks,e)}(Vi),function(e){e.ok=e.HTTPError=void 0;const t=Vi;var n=Vi;Object.defineProperty(e,"HTTPError",{enumerable:!0,get:function(){return n.HTTPError}}),e.ok=async function(e){if(!e.ok){const n=await e.text();throw(0,t.fromCode)(e.status,n)}return e}}(Gi);var Us={};Us.toJSON=void 0,Us.toJSON=function(e){return e.json()};var Fs={};Fs.toText=void 0,Fs.toText=async function(e,t){if(t){const n=await e.arrayBuffer();return new TextDecoder(t).decode(n)}return await e.text()};var Ls={};Ls.toLines=void 0,Ls.toLines=async function*(e){const t=e.body.pipeThrough(new TextDecoderStream).getReader();let n="";for(;;){const{value:e,done:r}=await t.read();if(r)break;let o=e;for(;o.includes("\n");){const e=o.indexOf("\n");yield o.slice(0,e),o=o.slice(e+1)}n+=o}n&&(yield n)};var Ms={toNDJSON:void 0};const Ds=ro(),Bs=Ls;Ms.toNDJSON=function(e){return(0,Ds.mapAsync)((0,Bs.toLines)(e),(e=>JSON.parse(e)))};var Hs={toCSV:void 0};const zs=st.exports;Hs.toCSV=async function(e){const t=await e.text();return(0,zs.parse)(t,{header:!0,skipEmptyLines:"greedy"}).data},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Gi,e),r(Us,e),r(Fs,e),r(Ls,e),r(Ms,e),r(Hs,e)}(Ji);var $s={},Js={},Gs={exports:{}};const{AbortController:Vs,AbortSignal:Ws}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;Gs.exports=Vs,Gs.exports.AbortSignal=Ws,Gs.exports.default=Vs;var Ks,Qs=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Js.AbortController=void 0;const Zs=Qs(Gs.exports);Js.AbortController=null!==(Ks=globalThis.AbortController)&&void 0!==Ks?Ks:Zs.default;var Xs={AbortError:void 0};const Ys=xo(),ea=b,ta=ro();class na extends Ys.CustomError{static[Symbol.hasInstance](e){return(0,ea.isError)(e)?(0,ta.some)((0,Ys.getErrorNames)(e),(e=>"AbortError"===e)):super[Symbol.hasInstance](e)}}Xs.AbortError=na;var ra,oa={};oa.AbortSignal=void 0;const ia=Gs.exports;oa.AbortSignal=null!==(ra=globalThis.AbortSignal)&&void 0!==ra?ra:ia.AbortSignal;var sa={raceAbortSignals:void 0};const aa=Js;sa.raceAbortSignals=function(e){const t=new aa.AbortController,n=[];for(const o of e)if(o){if(o.aborted){t.abort();break}o.addEventListener("abort",r),n.push(o)}return t.signal;function r(){t.abort(),n.forEach((e=>e.removeEventListener("abort",r)))}};var ca={timeoutSignal:void 0};const ua=Js;ca.timeoutSignal=function(e){const t=new ua.AbortController;return setTimeout((()=>t.abort()),e),t.signal};var la={withAbortSignal:void 0};const da=Xs;la.withAbortSignal=async function(e,t){return new Promise((async(n,r)=>{if(e.aborted)return o();e.addEventListener("abort",o);try{n(await t())}catch(e){r(e)}finally{e.removeEventListener("abort",o)}function o(){r(new da.AbortError)}}))},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Js,e),r(Xs,e),r(oa,e),r(sa,e),r(ca,e),r(la,e)}($s);class fa{constructor(e){this.options=e}getCommonTransformers(e){var t,n;return[Ye.url(this.options.server),Ye.bearerAuth(this.options.adminPassword),Ye.signal($s.raceAbortSignals([e.signal,!1!==e.timeout&&(null!==(t=e.timeout&&$s.timeoutSignal(e.timeout))&&void 0!==t?t:this.options.timeout&&$s.timeoutSignal(this.options.timeout))])),Ye.keepalive(null!==(n=e.keepalive)&&void 0!==n?n:this.options.keepalive),Ye.header("Accept-Version","0.2.7")]}}class ha{constructor(e){this.options=e}acquire(e,n={}){var o,i,s;return t(this,void 0,void 0,(function*(){const t=null!==(o=n.token)&&void 0!==o?o:this.options.token,a=this.options.basicAuth,c=y.get(Ye.url(this.options.server),Ye.pathname(`geyser/${e}`),a&&Ye.basicAuth(a.username,a.password),t&&Ye.searchParams({token:t}),Ye.signal($s.raceAbortSignals([n.signal,!1!==n.timeout&&(null!==(i=n.timeout&&$s.timeoutSignal(n.timeout))&&void 0!==i?i:this.options.timeout&&$s.timeoutSignal(this.options.timeout))])),Ye.keepalive(null!==(s=n.keepalive)&&void 0!==s?s:this.options.keepalive),Ye.header("Accept-Version","0.2.7"));yield r.fetch(c).then(Ji.ok)}))}}class pa extends fa{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/admin/geyser-with-config"));return yield r.fetch(t).then(Ji.ok).then(Ji.toJSON)}))}get(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),Ye.pathname(`/admin/geyser/${e}/config`));return yield r.fetch(t).then(Ji.ok).then(Ji.toJSON)}))}setDuration(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/geyser/${e}/config/duration`),Ye.json(n));yield r.fetch(t).then(Ji.ok)}))}removeDuration(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/geyser/${e}/config/duration`));yield r.fetch(t).then(Ji.ok)}))}setLimit(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/geyser/${e}/config/limit`),Ye.json(n));yield r.fetch(t).then(Ji.ok)}))}removeLimit(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/geyser/${e}/config/limit`));yield r.fetch(t).then(Ji.ok)}))}}class va extends fa{resetCycle(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/geyser/${e}/cycle`));yield r.fetch(t).then(Ji.ok)}))}}class ya extends fa{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/admin/blacklist"));return yield r.fetch(t).then(Ji.ok).then(Ji.toJSON)}))}add(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(n),Ye.pathname(`/admin/blacklist/${e}`));yield r.fetch(t).then(Ji.ok)}))}remove(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/blacklist/${e}`));yield r.fetch(t).then(Ji.ok)}))}}class ma extends fa{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/admin/whitelist"));return yield r.fetch(t).then(Ji.ok).then(Ji.toJSON)}))}add(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(n),Ye.pathname(`/admin/whitelist/${e}`));yield r.fetch(t).then(Ji.ok)}))}remove(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/whitelist/${e}`));yield r.fetch(t).then(Ji.ok)}))}}class ga extends fa{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/admin/geyser-with-token-policies"));return yield r.fetch(t).then(Ji.ok).then(Ji.toJSON)}))}get(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),Ye.pathname(`/admin/geyser/${e}/token-policies`));return yield r.fetch(t).then(Ji.ok).then(Ji.toJSON)}))}setAcquireTokenRequired(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/geyser/${e}/token-policies/acquire-token-required`),Ye.json(n));yield r.fetch(t).then(Ji.ok)}))}removeAcquireTokenRequired(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/geyser/${e}/token-policies/acquire-token-required`));yield r.fetch(t).then(Ji.ok)}))}}class ba extends fa{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/admin/geyser-with-tokens"));return yield r.fetch(t).then(Ji.ok).then(Ji.toJSON)}))}getTokens(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),Ye.pathname(`/admin/geyser/${e}/tokens`));return yield r.fetch(t).then(Ji.ok).then(Ji.toJSON)}))}addAcquireToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/geyser/${e}/tokens/${n}/acquire`));yield r.fetch(t).then(Ji.ok)}))}removeAcquireToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(o),Ye.pathname(`/admin/geyser/${e}/tokens/${n}/acquire`));yield r.fetch(t).then(Ji.ok)}))}}class wa{constructor(e){this.options=e,this.Configuration=new pa(this.options),this.Cycle=new va(this.options),this.Blacklist=new ya(this.options),this.Whitelist=new ma(this.options),this.TokenPolicy=new ga(this.options),this.Token=new ba(this.options)}}var Aa=r.AbortError,_a=Vi.HTTPClientError,Sa=Ji.HTTPError;export{Aa as AbortError,ha as GeyserClient,wa as GeyserManager,_a as HTTPClientError,Sa as HTTPError};
|
|
16
16
|
//# sourceMappingURL=index.min.mjs.map
|