extra-request 4.0.2 → 5.0.2
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 +0 -6
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +0 -6
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -2
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +0 -6
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +0 -6
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -2
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/package.json +22 -16
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ExtraRequest={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={},r={fetch:void 0};r.fetch=globalThis.fetch.bind(globalThis);var i={Headers:void 0};i.Headers=globalThis.Headers;var o={Request:void 0};o.Request=globalThis.Request;var a={Response:void 0};a.Response=globalThis.Response;var s={FormData:void 0};s.FormData=globalThis.FormData;var c={AbortController:void 0};c.AbortController=globalThis.AbortController;var u={
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ExtraRequest={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={},r={fetch:void 0};r.fetch=globalThis.fetch.bind(globalThis);var i={Headers:void 0};i.Headers=globalThis.Headers;var o={Request:void 0};o.Request=globalThis.Request;var a={Response:void 0};a.Response=globalThis.Response;var s={FormData:void 0};s.FormData=globalThis.FormData;var c={AbortController:void 0};c.AbortController=globalThis.AbortController;var u={Blob:void 0};u.Blob=globalThis.Blob;var f={EventSource:void 0};f.EventSource=globalThis.EventSource,function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),l=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};l(r,t),l(i,t),l(o,t),l(a,t),l(s,t),l(c,t),l(u,t),l(f,t)}(n);var l={},d={};function h(t){return Array.isArray(t)}d.isntEmptyArray=d.isEmptyArray=d.isntArray=d.isArray=void 0,d.isArray=h,d.isntArray=function(t){return!h(t)},d.isEmptyArray=function(t){return 0===t.length},d.isntEmptyArray=function(t){return 0!==t.length};var y={},p={};function v(t){return null===t}p.isntNull=p.isNull=void 0,p.isNull=v,p.isntNull=function(t){return!v(t)};var g={};function m(t){return void 0===t}g.isntUndefined=g.isUndefined=void 0,g.isUndefined=m,g.isntUndefined=function(t){return!m(t)};var b={};function _(t){return"function"==typeof t}b.isntFunction=b.isFunction=void 0,b.isFunction=_,b.isntFunction=function(t){return!_(t)},y.isntAsyncIterable=y.isAsyncIterable=void 0;const w=p,A=g,O=b;function k(t){return(0,w.isntNull)(t)&&(0,A.isntUndefined)(t)&&(0,O.isFunction)(t[Symbol.asyncIterator])}y.isAsyncIterable=k,y.isntAsyncIterable=function(t){return!k(t)};var E={};function S(t){return"bigint"==typeof t}E.isntBigInt=E.isBigInt=void 0,E.isBigInt=S,E.isntBigInt=function(t){return!S(t)};var j={};function I(t){return"boolean"==typeof t}j.isntBoolean=j.isBoolean=void 0,j.isBoolean=I,j.isntBoolean=function(t){return!I(t)};var R={},T={};function x(t){return"string"==typeof t}T.isntString=T.isString=void 0,T.isString=x,T.isntString=function(t){return!x(t)},R.isntChar=R.isChar=void 0;const C=T;function P(t){return(0,C.isString)(t)&&1===t.length}R.isChar=P,R.isntChar=function(t){return!P(t)};var D={};function N(t){return t instanceof Date}D.isntDate=D.isDate=void 0,D.isDate=N,D.isntDate=function(t){return!N(t)};var L={};L.inEnum=void 0,L.inEnum=function(t,e){return Object.values(e).includes(t)};var U={};function B(t){return t instanceof Error}U.isntError=U.isError=void 0,U.isError=B,U.isntError=function(t){return!B(t)};var F={};function q(t){return!t}F.isntFalsy=F.isFalsy=void 0,F.isFalsy=q,F.isntFalsy=function(t){return!q(t)};var z={};z.isntIterable=z.isIterable=void 0;const M=p,H=g,J=b;function W(t){return(0,M.isntNull)(t)&&(0,H.isntUndefined)(t)&&(0,J.isFunction)(t[Symbol.iterator])}z.isIterable=W,z.isntIterable=function(t){return!W(t)};var K={},Q={};function $(t){return"number"==typeof t}Q.isntNumber=Q.isNumber=void 0,Q.isNumber=$,Q.isntNumber=function(t){return!$(t)};var G={},Z="object"==typeof e&&e&&e.Object===Object&&e,V="object"==typeof self&&self&&self.Object===Object&&self,Y=(Z||V||Function("return this")()).Symbol,X=Y,tt=Object.prototype,et=tt.hasOwnProperty,nt=tt.toString,rt=X?X.toStringTag:void 0;var it=function(t){var e=et.call(t,rt),n=t[rt];try{t[rt]=void 0;var r=!0}catch(t){}var i=nt.call(t);return r&&(e?t[rt]=n:delete t[rt]),i},ot=Object.prototype.toString;var at=it,st=function(t){return ot.call(t)},ct=Y?Y.toStringTag:void 0;var ut=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ct&&ct in Object(t)?at(t):st(t)};var ft=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var lt=ut,dt=ft,ht=function(t){return null!=t&&"object"==typeof t},yt=Function.prototype,pt=Object.prototype,vt=yt.toString,gt=pt.hasOwnProperty,mt=vt.call(Object);var bt=function(t){if(!ht(t)||"[object Object]"!=lt(t))return!1;var e=dt(t);if(null===e)return!0;var n=gt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&vt.call(n)==mt},_t=e&&e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};G.isntEmptyObject=G.isEmptyObject=G.isntPlainObject=G.isPlainObject=G.isntObject=G.isObject=void 0;const wt=_t(bt);function At(t){return null!==t&&"object"==typeof t}function Ot(t){return(0,wt.default)(t)}G.isObject=At,G.isntObject=function(t){return!At(t)},G.isPlainObject=Ot,G.isntPlainObject=function(t){return!Ot(t)},G.isEmptyObject=function(t){return 0===Object.keys(t).length},G.isntEmptyObject=function(t){return 0!==Object.keys(t).length},K.isntJsonable=K.isJsonable=K.isntJson=K.isJson=void 0;const kt=p,Et=j,St=T,jt=Q,It=d,Rt=G;function Tt(t){return(0,kt.isNull)(t)||(0,Et.isBoolean)(t)||(0,St.isString)(t)||(0,jt.isNumber)(t)||(0,It.isArray)(t)&&t.every(Tt)||(0,Rt.isPlainObject)(t)&&Object.values(t).every(Tt)}K.isJson=Tt,K.isntJson=function(t){return!Tt(t)},K.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},K.isntJsonable=function t(e){return!t()};var xt={};xt.isPromiseLike=xt.isntPromiseLike=xt.isntPromise=xt.isPromise=void 0;const Ct=G,Pt=b;function Dt(t){return t instanceof Promise}function Nt(t){return(0,Ct.isObject)(t)&&(0,Pt.isFunction)(t.then)}xt.isPromise=Dt,xt.isntPromise=function(t){return!Dt(t)},xt.isntPromiseLike=function(t){return!Nt(t)},xt.isPromiseLike=Nt;var Lt={};function Ut(t,...e){const r=e.reduce(((t,e)=>l.isFunction(e)?e(t):t),{url:new URL("http://localhost"),headers:new n.Headers}),i=new n.Headers(r.headers);return new n.Request(r.url.href,{method:t,headers:i,signal:r.signal,body:r.payload,keepalive:r.keepalive})}Lt.isAbsoluteURL=void 0,Lt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(d,t),r(y,t),r(E,t),r(j,t),r(R,t),r(D,t),r(L,t),r(U,t),r(F,t),r(b,t),r(z,t),r(K,t),r(p,t),r(Q,t),r(G,t),r(xt,t),r(T,t),r(g,t),r(Lt,t)}(l);var Bt={exports:{}};
|
|
2
2
|
/* @license
|
|
3
3
|
Papa Parse
|
|
4
4
|
v5.3.2
|
|
5
5
|
https://github.com/mholt/PapaParse
|
|
6
6
|
License: MIT
|
|
7
|
-
*/!function(t,e){t.exports=function t(){var e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},n=!e.document&&!!e.postMessage,r=n&&/blob:/i.test((e.location||{}).protocol),i={},o=0,a={parse:function(n,r){var s=(r=r||{}).dynamicTyping||!1;if(w(s)&&(r.dynamicTypingFunction=s,s={}),r.dynamicTyping=s,r.transform=!!w(r.transform)&&r.transform,r.worker&&a.WORKERS_SUPPORTED){var c=function(){if(!a.WORKERS_SUPPORTED)return!1;var n,r,s=(n=e.URL||e.webkitURL||null,r=t.toString(),a.BLOB_URL||(a.BLOB_URL=n.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),c=new e.Worker(s);return c.onmessage=v,c.id=o++,i[c.id]=c}();return c.userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error,r.step=w(r.step),r.chunk=w(r.chunk),r.complete=w(r.complete),r.error=w(r.error),delete r.worker,void c.postMessage({input:n,config:r,workerId:c.id})}var h=null;return a.NODE_STREAM_INPUT,"string"==typeof n?h=r.download?new u(r):new l(r):!0===n.readable&&w(n.read)&&w(n.on)?h=new d(r):(e.File&&n instanceof File||n instanceof Object)&&(h=new f(r)),h.stream(n)},unparse:function(t,e){var n=!1,r=!0,i=",",o="\r\n",s='"',c=s+s,u=!1,f=null,l=!1;!function(){if("object"==typeof e){if("string"!=typeof e.delimiter||a.BAD_DELIMITERS.filter((function(t){return-1!==e.delimiter.indexOf(t)})).length||(i=e.delimiter),("boolean"==typeof e.quotes||"function"==typeof e.quotes||Array.isArray(e.quotes))&&(n=e.quotes),"boolean"!=typeof e.skipEmptyLines&&"string"!=typeof e.skipEmptyLines||(u=e.skipEmptyLines),"string"==typeof e.newline&&(o=e.newline),"string"==typeof e.quoteChar&&(s=e.quoteChar),"boolean"==typeof e.header&&(r=e.header),Array.isArray(e.columns)){if(0===e.columns.length)throw new Error("Option columns is empty");f=e.columns}void 0!==e.escapeChar&&(c=e.escapeChar+s),("boolean"==typeof e.escapeFormulae||e.escapeFormulae instanceof RegExp)&&(l=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var d=new RegExp(y(s),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return h(null,t,u);if("object"==typeof t[0])return h(f||Object.keys(t[0]),t,u)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||f),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:"object"==typeof t.data[0]?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||"object"==typeof t.data[0]||(t.data=[t.data])),h(t.fields||[],t.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(t,e,n){var a="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var s=Array.isArray(t)&&0<t.length,c=!Array.isArray(e[0]);if(s&&r){for(var u=0;u<t.length;u++)0<u&&(a+=i),a+=p(t[u],u);0<e.length&&(a+=o)}for(var f=0;f<e.length;f++){var l=s?t.length:e[f].length,d=!1,h=s?0===Object.keys(e[f]).length:0===e[f].length;if(n&&!s&&(d="greedy"===n?""===e[f].join("").trim():1===e[f].length&&0===e[f][0].length),"greedy"===n&&s){for(var y=[],v=0;v<l;v++){var g=c?t[v]:v;y.push(e[f][g])}d=""===y.join("").trim()}if(!d){for(var m=0;m<l;m++){0<m&&!h&&(a+=i);var b=s&&c?t[m]:m;a+=p(e[f][b],m)}f<e.length-1&&(!n||0<l&&!h)&&(a+=o)}}return a}function p(t,e){if(null==t)return"";if(t.constructor===Date)return JSON.stringify(t).slice(1,25);var r=!1;l&&"string"==typeof t&&l.test(t)&&(t="'"+t,r=!0);var o=t.toString().replace(d,c);return(r=r||!0===n||"function"==typeof n&&n(t,e)||Array.isArray(n)&&n[e]||function(t,e){for(var n=0;n<e.length;n++)if(-1<t.indexOf(e[n]))return!0;return!1}(o,a.BAD_DELIMITERS)||-1<o.indexOf(i)||" "===o.charAt(0)||" "===o.charAt(o.length-1))?s+o+s:o}}};if(a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!n&&!!e.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=p,a.ParserHandle=h,a.NetworkStreamer=u,a.FileStreamer=f,a.StringStreamer=l,a.ReadableStreamStreamer=d,e.jQuery){var s=e.jQuery;s.fn.parse=function(t){var n=t.config||{},r=[];return this.each((function(t){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(this).attr("type").toLowerCase()||!e.FileReader||!this.files||0===this.files.length)return!0;for(var i=0;i<this.files.length;i++)r.push({file:this.files[i],inputElem:this,instanceConfig:s.extend({},n)})})),i(),this;function i(){if(0!==r.length){var e,n,i,c,u=r[0];if(w(t.before)){var f=t.before(u.file,u.inputElem);if("object"==typeof f){if("abort"===f.action)return e="AbortError",n=u.file,i=u.inputElem,c=f.reason,void(w(t.error)&&t.error({name:e},n,i,c));if("skip"===f.action)return void o();"object"==typeof f.config&&(u.instanceConfig=s.extend(u.instanceConfig,f.config))}else if("skip"===f)return void o()}var l=u.instanceConfig.complete;u.instanceConfig.complete=function(t){w(l)&&l(t,u.file,u.inputElem),o()},a.parse(u.file,u.instanceConfig)}else w(t.complete)&&t.complete()}function o(){r.splice(0,1),i()}}}function c(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:{}},function(t){var e=b(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new h(e),(this._handle.streamer=this)._config=e}.call(this,t),this.parseChunk=function(t,n){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(t);void 0!==i&&(t=i)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+t;this._partialLine="";var s=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var c=s.meta.cursor;this._finished||(this._partialLine=o.substring(c-this._baseIndex),this._baseIndex=c),s&&s.data&&(this._rowCount+=s.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)e.postMessage({results:s,workerId:a.WORKER_ID,finished:u});else if(w(this._config.chunk)&&!n){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||!w(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(t){w(this._config.error)?this._config.error(t):r&&this._config.error&&e.postMessage({workerId:a.WORKER_ID,error:t,finished:!1})}}function u(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),c.call(this,t),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),n||(e.onload=_(this._chunkLoaded,this),e.onerror=_(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var t=this._config.downloadRequestHeaders;for(var r in t)e.setRequestHeader(r,t[r])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{e.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}n&&0===e.status&&this._chunkError()}},this._chunkLoaded=function(){4===e.readyState&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(t){var e=t.getResponseHeader("Content-Range");return null===e?-1:parseInt(e.substring(e.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(t){var n=e.statusText||t;this._sendError(new Error(n))}}function f(t){var e,n;(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),c.call(this,t);var r="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,n=t.slice||t.webkitSlice||t.mozSlice,r?((e=new FileReader).onload=_(this._chunkLoaded,this),e.onerror=_(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var t=this._input;if(this._config.chunkSize){var i=Math.min(this._start+this._config.chunkSize,this._input.size);t=n.call(t,this._start,i)}var o=e.readAsText(t,this._config.encoding);r||this._chunkLoaded({target:{result:o}})},this._chunkLoaded=function(t){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(e.error)}}function l(t){var e;c.call(this,t=t||{}),this.stream=function(t){return e=t,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var t,n=this._config.chunkSize;return n?(t=e.substring(0,n),e=e.substring(n)):(t=e,e=""),this._finished=!e,this.parseChunk(t)}}}function d(t){c.call(this,t=t||{});var e=[],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(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===e.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):n=!0},this._streamData=_((function(t){try{e.push("string"==typeof t?t:t.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(t){this._streamError(t)}}),this),this._streamError=_((function(t){this._streamCleanUp(),this._sendError(t)}),this),this._streamEnd=_((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=_((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function h(t){var e,n,r,i=Math.pow(2,53),o=-i,s=/^\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,f=0,l=0,d=!1,h=!1,v=[],g={data:[],errors:[],meta:{}};if(w(t.step)){var m=t.step;t.step=function(e){if(g=e,O())A();else{if(A(),0===g.data.length)return;f+=e.data.length,t.preview&&f>t.preview?n.abort():(g.data=g.data[0],m(g,u))}}}function _(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function A(){return g&&r&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),t.skipEmptyLines&&(g.data=g.data.filter((function(t){return!_(t)}))),O()&&function(){if(g)if(Array.isArray(g.data[0])){for(var e=0;O()&&e<g.data.length;e++)g.data[e].forEach(n);g.data.splice(0,1)}else g.data.forEach(n);function n(e,n){w(t.transformHeader)&&(e=t.transformHeader(e,n)),v.push(e)}}(),function(){if(!g||!t.header&&!t.dynamicTyping&&!t.transform)return g;function e(e,n){var r,i=t.header?{}:[];for(r=0;r<e.length;r++){var o=r,a=e[r];t.header&&(o=r>=v.length?"__parsed_extra":v[r]),t.transform&&(a=t.transform(a,o)),a=k(o,a),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(a)):i[o]=a}return t.header&&(r>v.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+r,l+n):r<v.length&&E("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+r,l+n)),i}var n=1;return!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(e),n=g.data.length):g.data=e(g.data,0),t.header&&g.meta&&(g.meta.fields=v),l+=n,g}()}function O(){return t.header&&0===v.length}function k(e,n){return r=e,t.dynamicTypingFunction&&void 0===t.dynamicTyping[r]&&(t.dynamicTyping[r]=t.dynamicTypingFunction(r)),!0===(t.dynamicTyping[r]||t.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(t){if(s.test(t)){var e=parseFloat(t);if(o<e&&e<i)return!0}return!1}(n)?parseFloat(n):c.test(n)?new Date(n):""===n?null:n):n;var r}function E(t,e,n,r){var i={type:t,code:e,message:n};void 0!==r&&(i.row=r),g.errors.push(i)}this.parse=function(i,o,s){var c=t.quoteChar||'"';if(t.newline||(t.newline=function(t,e){t=t.substring(0,1048576);var n=new RegExp(y(e)+"([^]*?)"+y(e),"gm"),r=(t=t.replace(n,"")).split("\r"),i=t.split("\n"),o=1<i.length&&i[0].length<r[0].length;if(1===r.length||o)return"\n";for(var a=0,s=0;s<r.length;s++)"\n"===r[s][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(i,c)),r=!1,t.delimiter)w(t.delimiter)&&(t.delimiter=t.delimiter(i),g.meta.delimiter=t.delimiter);else{var u=function(e,n,r,i,o){var s,c,u,f;o=o||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var l=0;l<o.length;l++){var d=o[l],h=0,y=0,v=0;u=void 0;for(var g=new p({comments:i,delimiter:d,newline:n,preview:10}).parse(e),m=0;m<g.data.length;m++)if(r&&_(g.data[m]))v++;else{var b=g.data[m].length;y+=b,void 0!==u?0<b&&(h+=Math.abs(b-u),u=b):u=b}0<g.data.length&&(y/=g.data.length-v),(void 0===c||h<=c)&&(void 0===f||f<y)&&1.99<y&&(c=h,s=d,f=y)}return{successful:!!(t.delimiter=s),bestDelimiter:s}}(i,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);u.successful?t.delimiter=u.bestDelimiter:(r=!0,t.delimiter=a.DefaultDelimiter),g.meta.delimiter=t.delimiter}var f=b(t);return t.preview&&t.header&&f.preview++,e=i,n=new p(f),g=n.parse(e,o,s),A(),d?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),e=w(t.chunk)?"":e.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(d=!1,u.streamer.parseChunk(e,!0)):setTimeout(u.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),g.meta.aborted=!0,w(t.complete)&&t.complete(g),e=""}}function y(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(t){var e,n=(t=t||{}).delimiter,r=t.newline,i=t.comments,o=t.step,s=t.preview,c=t.fastMode,u=e=void 0===t.quoteChar||null===t.quoteChar?'"':t.quoteChar;if(void 0!==t.escapeChar&&(u=t.escapeChar),("string"!=typeof n||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var f=0,l=!1;this.parse=function(t,a,d){if("string"!=typeof t)throw new Error("Input must be a string");var h=t.length,p=n.length,v=r.length,g=i.length,m=w(o),b=[],_=[],A=[],O=f=0;if(!t)return L();if(c||!1!==c&&-1===t.indexOf(e)){for(var k=t.split(r),E=0;E<k.length;E++){if(A=k[E],f+=A.length,E!==k.length-1)f+=r.length;else if(d)return L();if(!i||A.substring(0,g)!==i){if(m){if(b=[],C(A.split(n)),U(),l)return L()}else C(A.split(n));if(s&&s<=E)return b=b.slice(0,s),L(!0)}}return L()}for(var S=t.indexOf(n,f),j=t.indexOf(r,f),I=new RegExp(y(u)+y(e),"g"),R=t.indexOf(e,f);;)if(t[f]!==e)if(i&&0===A.length&&t.substring(f,f+g)===i){if(-1===j)return L();f=j+v,j=t.indexOf(r,f),S=t.indexOf(n,f)}else if(-1!==S&&(S<j||-1===j))A.push(t.substring(f,S)),f=S+p,S=t.indexOf(n,f);else{if(-1===j)break;if(A.push(t.substring(f,j)),N(j+v),m&&(U(),l))return L();if(s&&b.length>=s)return L(!0)}else for(R=f,f++;;){if(-1===(R=t.indexOf(e,R+1)))return d||_.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:f}),P();if(R===h-1)return P(t.substring(f,R).replace(I,e));if(e!==u||t[R+1]!==u){if(e===u||0===R||t[R-1]!==u){-1!==S&&S<R+1&&(S=t.indexOf(n,R+1)),-1!==j&&j<R+1&&(j=t.indexOf(r,R+1));var T=D(-1===j?S:Math.min(S,j));if(t.substr(R+1+T,p)===n){A.push(t.substring(f,R).replace(I,e)),t[f=R+1+T+p]!==e&&(R=t.indexOf(e,f)),S=t.indexOf(n,f),j=t.indexOf(r,f);break}var x=D(j);if(t.substring(R+1+x,R+1+x+v)===r){if(A.push(t.substring(f,R).replace(I,e)),N(R+1+x+v),S=t.indexOf(n,f),R=t.indexOf(e,f),m&&(U(),l))return L();if(s&&b.length>=s)return L(!0);break}_.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:f}),R++}}else R++}return P();function C(t){b.push(t),O=f}function D(e){var n=0;if(-1!==e){var r=t.substring(R+1,e);r&&""===r.trim()&&(n=r.length)}return n}function P(e){return d||(void 0===e&&(e=t.substring(f)),A.push(e),f=h,C(A),m&&U()),L()}function N(e){f=e,C(A),A=[],j=t.indexOf(r,f)}function L(t){return{data:b,errors:_,meta:{delimiter:n,linebreak:r,aborted:l,truncated:!!t,cursor:O+(a||0)}}}function U(){o(L()),b=[],_=[]}},this.abort=function(){l=!0},this.getCharIndex=function(){return f}}function v(t){var e=t.data,n=i[e.workerId],r=!1;if(e.error)n.userError(e.error,e.file);else if(e.results&&e.results.data){var o={abort:function(){r=!0,g(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:m,resume:m};if(w(n.userStep)){for(var a=0;a<e.results.data.length&&(n.userStep({data:e.results.data[a],errors:e.results.errors,meta:e.results.meta},o),!r);a++);delete e.results}else w(n.userChunk)&&(n.userChunk(e.results,o,e.file),delete e.results)}e.finished&&!r&&g(e.workerId,e.results)}function g(t,e){var n=i[t];w(n.userComplete)&&n.userComplete(e),n.terminate(),delete i[t]}function m(){throw new Error("Not implemented.")}function b(t){if("object"!=typeof t||null===t)return t;var e=Array.isArray(t)?[]:{};for(var n in t)e[n]=b(t[n]);return e}function _(t,e){return function(){t.apply(e,arguments)}}function w(t){return"function"==typeof t}return r&&(e.onmessage=function(t){var n=t.data;if(void 0===a.WORKER_ID&&n&&(a.WORKER_ID=n.workerId),"string"==typeof n.input)e.postMessage({workerId:a.WORKER_ID,results:a.parse(n.input,n.config),finished:!0});else if(e.File&&n.input instanceof File||n.input instanceof Object){var r=a.parse(n.input,n.config);r&&e.postMessage({workerId:a.WORKER_ID,results:r,finished:!0})}}),(u.prototype=Object.create(c.prototype)).constructor=u,(f.prototype=Object.create(c.prototype)).constructor=f,(l.prototype=Object.create(l.prototype)).constructor=l,(d.prototype=Object.create(c.prototype)).constructor=d,a}()}(qt);var zt={},Mt={},Ht={},Jt={},Wt={},Kt={},Qt={};Qt.go=void 0,Qt.go=function(t){return t()},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Qt,t)}(Kt),Wt.chunkAsync=void 0;const $t=Kt,Gt=zt;Wt.chunkAsync=function(t,e){return(0,Gt.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Gt.assert)(e>0,"The parameter size must be greater than 0"),(0,$t.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Zt={chunkByAsync:void 0};const Vt=d;Zt.chunkByAsync=function(t,e){return(0,Vt.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var Yt={};Yt.chunkBy=void 0,Yt.chunkBy=function*(t,e){let n=[],r=0;for(const i of t)n.push(i),e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Xt={chunk:void 0};const te=Kt,ee=zt;Xt.chunk=function(t,e){return(0,ee.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,ee.assert)(e>0,"The parameter size must be greater than 0"),(0,te.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var ne={concatAsync:void 0};const re=d,ie=Kt;ne.concatAsync=function(t,...e){return(0,ie.go)((async function*(){for(const n of[t,...e])if((0,re.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var oe={concat:void 0};const ae=Kt;oe.concat=function(t,...e){return(0,ae.go)((function*(){for(const n of[t,...e])yield*n}))};var se={},ce={};ce.copyIterable=ce.copyAsyncIterable=void 0,ce.copyAsyncIterable=async function*(t){for await(const e of t)yield e},ce.copyIterable=function*(t){for(const e of t)yield e},se.dropAsync=void 0;const ue=Kt,fe=ce,le=zt;se.dropAsync=function(t,e){return(0,le.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,le.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,fe.copyAsyncIterable)(t):(0,ue.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{let t;for(;!(({value:t,done:i}=await r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var de={dropRightAsync:void 0};const he=Kt,ye=ce,pe=zt;de.dropRightAsync=function(t,e){return(0,pe.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,pe.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ye.copyAsyncIterable)(t):(0,he.go)((async function*(){const n=await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t),r=n.slice(0,-e);for(const t of r)yield t}))};var ve={dropRight:void 0};const ge=Kt,me=ce,be=zt;ve.dropRight=function(t,e){return(0,be.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,be.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,me.copyIterable)(t):(0,ge.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var _e={dropUntilAsync:void 0};const we=d;_e.dropUntilAsync=function(t,e){return(0,we.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Ae={};Ae.dropUntil=void 0,Ae.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}};var Oe={drop:void 0};const ke=Kt,Ee=ce,Se=zt;Oe.drop=function(t,e){return(0,Se.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Se.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Ee.copyIterable)(t):(0,ke.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{let t;for(;!(({value:t,done:i}=r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var je={filterAsync:void 0};const Ie=d;je.filterAsync=function(t,e){return(0,Ie.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var Re={};Re.filter=void 0,Re.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Te={},xe={},Ce={flattenByAsync:void 0};const De=d;function Pe(t){return(0,De.isIterable)(t)&&(0,De.isntChar)(t)}Ce.flattenByAsync=function(t,e){return(0,De.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)Pe(i)&&await e(i,r)?yield*n(i,r+1):yield i}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const i of t)Pe(i)&&await e(i,r)?yield*n(i,r+1):yield i}},xe.flattenDeepAsync=void 0;const Ne=Ce,Le=zt;xe.flattenDeepAsync=function(t,e=1/0){return(0,Le.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Le.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Ne.flattenByAsync)(t,((t,n)=>n<=e))},Te.flattenAsync=void 0;const Ue=xe;Te.flattenAsync=function(t){return(0,Ue.flattenDeepAsync)(t,1)};var Be={flattenBy:void 0};const Fe=d;Be.flattenBy=function(t,e){return function*t(n,r){for(const o of n)i=o,(0,Fe.isIterable)(i)&&(0,Fe.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var qe={flattenDeep:void 0};const ze=Be,Me=zt;qe.flattenDeep=function(t,e=1/0){return(0,Me.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Me.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,ze.flattenBy)(t,((t,n)=>n<=e))};var He={flatten:void 0};const Je=qe;He.flatten=function(t){return(0,Je.flattenDeep)(t,1)};var We={mapAsync:void 0};const Ke=d;We.mapAsync=function(t,e){return(0,Ke.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var Qe={};Qe.map=void 0,Qe.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var $e={repeatAsync:void 0};const Ge=Kt,Ze=zt;$e.repeatAsync=function(t,e){return(0,Ze.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Ze.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,Ge.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Ve={repeat:void 0};const Ye=Kt,Xe=zt;Ve.repeat=function(t,e){return(0,Xe.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Xe.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,Ye.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var tn={sliceAsync:void 0};const en=Kt,nn=zt;tn.sliceAsync=function(t,e,n=1/0){return(0,nn.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,nn.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,nn.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,nn.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,en.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var rn={slice:void 0};const on=Kt,an=zt;rn.slice=function(t,e,n=1/0){return(0,an.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,an.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,an.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,an.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,on.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var sn={};sn.splitAsync=void 0,sn.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var cn={splitByAsync:void 0};const un=d;cn.splitByAsync=function(t,e){return(0,un.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t):async function*(t){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t)};var fn={};fn.splitBy=void 0,fn.splitBy=function*(t,e){let n=[],r=0;for(const i of t)e(i,r)?(yield n,n=[]):n.push(i),r++;yield n};var ln={};ln.split=void 0,ln.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var dn={takeAsync:void 0};const hn=Kt,yn=zt;dn.takeAsync=function(t,e){return(0,yn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,yn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,hn.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var pn={takeRightAsync:void 0};const vn=Kt,gn=zt;pn.takeRightAsync=function(t,e){return(0,gn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,gn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,vn.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=await r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var mn={takeRight:void 0};const bn=Kt,_n=zt;mn.takeRight=function(t,e){return(0,_n.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,_n.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,bn.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var wn={takeUntilAsync:void 0};const An=d;wn.takeUntilAsync=function(t,e){return(0,An.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var On={};On.takeUntil=void 0,On.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var kn={take:void 0};const En=Kt,Sn=zt;kn.take=function(t,e){return(0,Sn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Sn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,En.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var jn={tapAsync:void 0};const In=d;jn.tapAsync=function(t,e){return(0,In.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var Rn={};Rn.tap=void 0,Rn.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Tn={};Tn.toAsyncIterable=void 0,Tn.toAsyncIterable=async function*(t){for(const e of t)yield e};var xn={};xn.transformAsync=void 0,xn.transformAsync=async function*(t,e){yield*e(t)};var Cn={};Cn.transform=void 0,Cn.transform=function*(t,e){yield*e(t)};var Dn={};Dn.uniqAsync=void 0,Dn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Pn={uniqByAsync:void 0};const Nn=d;Pn.uniqByAsync=function(t,e){return(0,Nn.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t)};var Ln={};Ln.uniqBy=void 0,Ln.uniqBy=function*(t,e){const n=new Set;let r=0;for(const i of t){const t=e(i,r);n.has(t)||(yield i,n.add(t)),r++}};var Un={};Un.uniq=void 0,Un.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var Bn={zipAsync:void 0};const Fn=d;var qn;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(qn||(qn={})),Bn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,a=t.map((t=>(0,Fn.isAsyncIterable)(t)?[qn.Async,t[Symbol.asyncIterator]()]:[qn.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=a[e];let i;if(i=n===qn.Async?await r.next():r.next(),i.done)return void(s[e]=!0);t[e]=i.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[o,a]of t)o===qn.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(i=(r=a).return)||void 0===i||i.call(r)}}(t,...e)};var zn={};zn.zip=void 0,zn.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let i=0;i<e;i++){const{value:e,done:o}=n[i].next();if(o)return void(r[i]=!0);t[i]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Wt,t),r(Zt,t),r(Yt,t),r(Xt,t),r(ne,t),r(oe,t),r(se,t),r(de,t),r(ve,t),r(_e,t),r(Ae,t),r(Oe,t),r(je,t),r(Re,t),r(Te,t),r(Ce,t),r(Be,t),r(xe,t),r(qe,t),r(He,t),r(We,t),r(Qe,t),r($e,t),r(Ve,t),r(tn,t),r(rn,t),r(sn,t),r(cn,t),r(fn,t),r(ln,t),r(dn,t),r(pn,t),r(mn,t),r(wn,t),r(On,t),r(kn,t),r(jn,t),r(Rn,t),r(Tn,t),r(xn,t),r(Cn,t),r(Dn,t),r(Pn,t),r(Ln,t),r(Un,t),r(Bn,t),r(zn,t)}(Jt);var Mn={},Hn={};Hn.consume=void 0,Hn.consume=function(t,e){return e(t)};var Jn={eachAsync:void 0};const Wn=d;Jn.eachAsync=function(t,e){return(0,Wn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var Kn={};Kn.each=void 0,Kn.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Qn={everyAsync:void 0};const $n=d;Qn.everyAsync=function(t,e){return(0,$n.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var Gn={};Gn.every=void 0,Gn.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var Zn={findAsync:void 0};const Vn=d;Zn.findAsync=function(t,e){return(0,Vn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var Yn={};Yn.find=void 0,Yn.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Xn={};Xn.firstAsync=void 0,Xn.firstAsync=async function(t){for await(const e of t)return e};var tr={};tr.first=void 0,tr.first=function(t){for(const e of t)return e};var er={};er.includesAsync=void 0,er.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var nr={};nr.includes=void 0,nr.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var rr={};rr.matchAsync=void 0,rr.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var ir={};ir.match=void 0,ir.match=function(t,e){const n=e.length;let r=0;for(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var or={reduceAsync:void 0};const ar=d;or.reduceAsync=function(t,e,n){return(0,ar.isUndefined)(n)?function(t,e){return(0,ar.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,a=await o(r),s=1;for(;({value:t,done:i}=await r.next()),!i;)a=await e(a,t,s++);return a}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=await e(a,t,s++);return a}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,ar.isAsyncIterable)(t)?i(t):r(t);async function r(t){let r=n,i=0;for(const n of t)r=await e(r,n,i++);return r}async function i(t){let r=n,i=0;for await(const n of t)r=await e(r,n,i++);return r}}(t,e,n)};var sr={reduce:void 0};const cr=d;sr.reduce=function(t,e,n){return(0,cr.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=e(a,t,s++);return a}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var ur={someAsync:void 0};const fr=d;ur.someAsync=function(t,e){return(0,fr.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var lr={};lr.some=void 0,lr.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var dr={};dr.lastAsync=void 0,dr.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,i;for(;({value:t,done:r}=await n.next()),!r;)i=t;return i}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var hr={};hr.last=void 0,hr.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,i;for(;({value:t,done:r}=n.next()),!r;)i=t;return i}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var yr={toArrayAsync:void 0};const pr=Hn;yr.toArrayAsync=function(t){return(0,pr.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var vr={toArray:void 0};const gr=Hn;vr.toArray=function(t){return(0,gr.consume)(t,(t=>Array.from(t)))};var mr={toSetAsync:void 0};const br=Hn;mr.toSetAsync=function(t){return(0,br.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var _r={toSet:void 0};const wr=Hn;_r.toSet=function(t){return(0,wr.consume)(t,(t=>new Set(t)))},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Hn,t),r(Jn,t),r(Kn,t),r(Qn,t),r(Gn,t),r(Zn,t),r(Yn,t),r(Xn,t),r(tr,t),r(er,t),r(nr,t),r(rr,t),r(ir,t),r(or,t),r(sr,t),r(ur,t),r(lr,t),r(dr,t),r(hr,t),r(yr,t),r(vr,t),r(mr,t),r(_r,t)}(Mn),function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Jt,t),r(Mn,t)}(Ht);var Ar={},Or={};Or.traverseErrorPrototypeChain=void 0,Or.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Ar.getErrorNames=void 0;const kr=d,Er=Or;Ar.getErrorNames=function*(t){var e;if((0,kr.isError)(t))for(const n of(0,Er.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Sr={isSerializableError:void 0};const jr=d;Sr.isSerializableError=function(t){return(0,jr.isObject)(t)&&(0,jr.isString)(t.name)&&(0,jr.isString)(t.message)&&((0,jr.isString)(t.stack)||(0,jr.isNull)(t.stack))&&(0,jr.isArray)(t.ancestors)&&t.ancestors.every(jr.isString)},Mt.CustomError=void 0;const Ir=Ht,Rr=Ar,Tr=d,xr=Sr;class Cr extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Ir.first)((0,Rr.getErrorNames)(this)))&&void 0!==t?t:Cr.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Tr.isError)(t)||(0,xr.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Rr.getErrorNames)(this.prototype)].reverse(),r=(0,Ir.toArray)((0,Rr.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Mt.CustomError=Cr;var Dr={AssertionError:void 0};const Pr=Mt;class Nr extends Pr.CustomError{}Dr.AssertionError=Nr;var Lr={normalize:void 0};const Ur=Ar,Br=Ht;Lr.normalize=function(t){var e;const[n,...r]=(0,Br.toArray)((0,Ur.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var Fr={},qr={},zr={};zr.pass=void 0,zr.pass=function(){},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(zr,t)}(qr),Fr.hydrate=void 0;const Mr=qr;function Hr(t,e){const n=function(){(0,Mr.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}Fr.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=Hr(r,t);const i=new r;return i.name=t.name,i.message=t.message,i.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,i};var Jr={assert:void 0};const Wr=Dr;function Kr(t){const e=Object.keys(t[0]);return qt.exports.unparse({data:t,fields:e})}function Qr(t,e){return r=>{const i=new n.Headers(r.headers);return i.set(t,e),Object.assign(Object.assign({},r),{headers:i})}}function $r(t,e){return r=>{const i=new n.Headers(r.headers);return i.append(t,e),Object.assign(Object.assign({},r),{headers:i})}}Jr.assert=function(t,e){if(!t)throw new Wr.AssertionError(e)},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Mt,t),r(Dr,t),r(Sr,t),r(Lr,t),r(Fr,t),r(Jr,t),r(Ar,t),r(Or,t)}(zt);const Gr="function"==typeof btoa,Zr="function"==typeof Buffer;"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;const Vr=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(t=>{let e={};t.forEach(((t,n)=>e[t]=n))})(Vr),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);const Yr=Gr?t=>btoa(t):Zr?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,n,r,i,o="";const a=t.length%3;for(let a=0;a<t.length;){if((n=t.charCodeAt(a++))>255||(r=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=Vr[e>>18&63]+Vr[e>>12&63]+Vr[e>>6&63]+Vr[63&e]}return a?o.slice(0,a-3)+"===".substring(a):o};t.accept=function(t){return $r("Accept",t)},t.appendHeader=$r,t.appendSearchParam=function(t,e){return n=>{const r=new URL(n.url.href),i=new URLSearchParams(r.searchParams);return i.append(t,e.toString()),r.search=i.toString(),Object.assign(Object.assign({},n),{url:r})}},t.basicAuth=function(t,e){return Qr("Authorization","Basic "+Yr(`${t}:${e}`))},t.bearerAuth=function(t){return Qr("Authorization",`Bearer ${t}`)},t.csv=function(t){return zt.assert(t.length>0,"payload must be a non-empty array"),e=>{const r=new n.Headers(e.headers);return r.set("Content-Type","text/csv"),Object.assign(Object.assign({},e),{headers:r,payload:Kr(t)})}},t.del=function(...t){return Ft("DELETE",...t)},t.formDataField=function(t,e){return r=>{const i=r.payload instanceof n.FormData?function(t){const e=new n.FormData;for(const[n,r]of t.entries())e.append(n,r);return e}(r.payload):new n.FormData;return d.isArray(e)?e.forEach((e=>i.append(t,e))):i.append(t,e),Object.assign(Object.assign({},r),{payload:i})}},t.get=function(...t){return Ft("GET",...t)},t.head=function(...t){return Ft("HEAD",...t)},t.header=Qr,t.headers=function(t){return e=>{const r=new n.Headers(e.headers);for(const[e,n]of Object.entries(t))r.set(e,n);return Object.assign(Object.assign({},e),{headers:r})}},t.host=function(t){return e=>{const n=new URL(e.url.href);return n.host=t,Object.assign(Object.assign({},e),{url:n})}},t.json=function(t){return e=>{const r=new n.Headers(e.headers);return r.set("Content-Type","application/json"),Object.assign(Object.assign({},e),{headers:r,payload:JSON.stringify(t)})}},t.keepalive=function(t=!0){return e=>Object.assign(Object.assign({},e),{keepalive:t})},t.patch=function(...t){return Ft("PATCH",...t)},t.pathname=function(t){return e=>{const n=new URL(e.url.href);return n.pathname=t,Object.assign(Object.assign({},e),{url:n})}},t.port=function(t){return e=>{const n=new URL(e.url.href);return n.port=t.toString(),Object.assign(Object.assign({},e),{url:n})}},t.post=function(...t){return Ft("POST",...t)},t.put=function(...t){return Ft("PUT",...t)},t.search=function(t){return e=>{const n=new URL(e.url.href);return n.search=t,Object.assign(Object.assign({},e),{url:n})}},t.searchParam=function(t,e){return n=>{const r=new URL(n.url.href),i=new URLSearchParams(r.searchParams);return i.set(t,e.toString()),r.search=i.toString(),Object.assign(Object.assign({},n),{url:r})}},t.searchParams=function(t){return e=>{const n=new URL(e.url.href),r=new URLSearchParams(n.searchParams);for(const[e,n]of Object.entries(t))r.set(e,n.toString());return n.search=r.toString(),Object.assign(Object.assign({},e),{url:n})}},t.signal=function(t){return e=>Object.assign(Object.assign({},e),{signal:t})},t.text=function(t){return e=>{const r=new n.Headers(e.headers);return r.set("Content-Type","application/x-www-form-urlencoded"),Object.assign(Object.assign({},e),{headers:r,payload:t})}},t.url=function(...t){return e=>{const n=new URL(t.reduce(((t,e)=>new URL(e,t).href)));return Object.assign(Object.assign({},e),{url:n})}},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
7
|
+
*/!function(t,e){t.exports=function t(){var e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},n=!e.document&&!!e.postMessage,r=n&&/blob:/i.test((e.location||{}).protocol),i={},o=0,a={parse:function(n,r){var s=(r=r||{}).dynamicTyping||!1;if(w(s)&&(r.dynamicTypingFunction=s,s={}),r.dynamicTyping=s,r.transform=!!w(r.transform)&&r.transform,r.worker&&a.WORKERS_SUPPORTED){var c=function(){if(!a.WORKERS_SUPPORTED)return!1;var n,r,s=(n=e.URL||e.webkitURL||null,r=t.toString(),a.BLOB_URL||(a.BLOB_URL=n.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),c=new e.Worker(s);return c.onmessage=v,c.id=o++,i[c.id]=c}();return c.userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error,r.step=w(r.step),r.chunk=w(r.chunk),r.complete=w(r.complete),r.error=w(r.error),delete r.worker,void c.postMessage({input:n,config:r,workerId:c.id})}var h=null;return a.NODE_STREAM_INPUT,"string"==typeof n?h=r.download?new u(r):new l(r):!0===n.readable&&w(n.read)&&w(n.on)?h=new d(r):(e.File&&n instanceof File||n instanceof Object)&&(h=new f(r)),h.stream(n)},unparse:function(t,e){var n=!1,r=!0,i=",",o="\r\n",s='"',c=s+s,u=!1,f=null,l=!1;!function(){if("object"==typeof e){if("string"!=typeof e.delimiter||a.BAD_DELIMITERS.filter((function(t){return-1!==e.delimiter.indexOf(t)})).length||(i=e.delimiter),("boolean"==typeof e.quotes||"function"==typeof e.quotes||Array.isArray(e.quotes))&&(n=e.quotes),"boolean"!=typeof e.skipEmptyLines&&"string"!=typeof e.skipEmptyLines||(u=e.skipEmptyLines),"string"==typeof e.newline&&(o=e.newline),"string"==typeof e.quoteChar&&(s=e.quoteChar),"boolean"==typeof e.header&&(r=e.header),Array.isArray(e.columns)){if(0===e.columns.length)throw new Error("Option columns is empty");f=e.columns}void 0!==e.escapeChar&&(c=e.escapeChar+s),("boolean"==typeof e.escapeFormulae||e.escapeFormulae instanceof RegExp)&&(l=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var d=new RegExp(y(s),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return h(null,t,u);if("object"==typeof t[0])return h(f||Object.keys(t[0]),t,u)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||f),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:"object"==typeof t.data[0]?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||"object"==typeof t.data[0]||(t.data=[t.data])),h(t.fields||[],t.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(t,e,n){var a="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var s=Array.isArray(t)&&0<t.length,c=!Array.isArray(e[0]);if(s&&r){for(var u=0;u<t.length;u++)0<u&&(a+=i),a+=p(t[u],u);0<e.length&&(a+=o)}for(var f=0;f<e.length;f++){var l=s?t.length:e[f].length,d=!1,h=s?0===Object.keys(e[f]).length:0===e[f].length;if(n&&!s&&(d="greedy"===n?""===e[f].join("").trim():1===e[f].length&&0===e[f][0].length),"greedy"===n&&s){for(var y=[],v=0;v<l;v++){var g=c?t[v]:v;y.push(e[f][g])}d=""===y.join("").trim()}if(!d){for(var m=0;m<l;m++){0<m&&!h&&(a+=i);var b=s&&c?t[m]:m;a+=p(e[f][b],m)}f<e.length-1&&(!n||0<l&&!h)&&(a+=o)}}return a}function p(t,e){if(null==t)return"";if(t.constructor===Date)return JSON.stringify(t).slice(1,25);var r=!1;l&&"string"==typeof t&&l.test(t)&&(t="'"+t,r=!0);var o=t.toString().replace(d,c);return(r=r||!0===n||"function"==typeof n&&n(t,e)||Array.isArray(n)&&n[e]||function(t,e){for(var n=0;n<e.length;n++)if(-1<t.indexOf(e[n]))return!0;return!1}(o,a.BAD_DELIMITERS)||-1<o.indexOf(i)||" "===o.charAt(0)||" "===o.charAt(o.length-1))?s+o+s:o}}};if(a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!n&&!!e.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=p,a.ParserHandle=h,a.NetworkStreamer=u,a.FileStreamer=f,a.StringStreamer=l,a.ReadableStreamStreamer=d,e.jQuery){var s=e.jQuery;s.fn.parse=function(t){var n=t.config||{},r=[];return this.each((function(t){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(this).attr("type").toLowerCase()||!e.FileReader||!this.files||0===this.files.length)return!0;for(var i=0;i<this.files.length;i++)r.push({file:this.files[i],inputElem:this,instanceConfig:s.extend({},n)})})),i(),this;function i(){if(0!==r.length){var e,n,i,c,u=r[0];if(w(t.before)){var f=t.before(u.file,u.inputElem);if("object"==typeof f){if("abort"===f.action)return e="AbortError",n=u.file,i=u.inputElem,c=f.reason,void(w(t.error)&&t.error({name:e},n,i,c));if("skip"===f.action)return void o();"object"==typeof f.config&&(u.instanceConfig=s.extend(u.instanceConfig,f.config))}else if("skip"===f)return void o()}var l=u.instanceConfig.complete;u.instanceConfig.complete=function(t){w(l)&&l(t,u.file,u.inputElem),o()},a.parse(u.file,u.instanceConfig)}else w(t.complete)&&t.complete()}function o(){r.splice(0,1),i()}}}function c(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:{}},function(t){var e=b(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new h(e),(this._handle.streamer=this)._config=e}.call(this,t),this.parseChunk=function(t,n){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(t);void 0!==i&&(t=i)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+t;this._partialLine="";var s=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var c=s.meta.cursor;this._finished||(this._partialLine=o.substring(c-this._baseIndex),this._baseIndex=c),s&&s.data&&(this._rowCount+=s.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)e.postMessage({results:s,workerId:a.WORKER_ID,finished:u});else if(w(this._config.chunk)&&!n){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||!w(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(t){w(this._config.error)?this._config.error(t):r&&this._config.error&&e.postMessage({workerId:a.WORKER_ID,error:t,finished:!1})}}function u(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),c.call(this,t),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),n||(e.onload=_(this._chunkLoaded,this),e.onerror=_(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var t=this._config.downloadRequestHeaders;for(var r in t)e.setRequestHeader(r,t[r])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{e.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}n&&0===e.status&&this._chunkError()}},this._chunkLoaded=function(){4===e.readyState&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(t){var e=t.getResponseHeader("Content-Range");return null===e?-1:parseInt(e.substring(e.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(t){var n=e.statusText||t;this._sendError(new Error(n))}}function f(t){var e,n;(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),c.call(this,t);var r="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,n=t.slice||t.webkitSlice||t.mozSlice,r?((e=new FileReader).onload=_(this._chunkLoaded,this),e.onerror=_(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var t=this._input;if(this._config.chunkSize){var i=Math.min(this._start+this._config.chunkSize,this._input.size);t=n.call(t,this._start,i)}var o=e.readAsText(t,this._config.encoding);r||this._chunkLoaded({target:{result:o}})},this._chunkLoaded=function(t){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(e.error)}}function l(t){var e;c.call(this,t=t||{}),this.stream=function(t){return e=t,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var t,n=this._config.chunkSize;return n?(t=e.substring(0,n),e=e.substring(n)):(t=e,e=""),this._finished=!e,this.parseChunk(t)}}}function d(t){c.call(this,t=t||{});var e=[],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(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===e.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):n=!0},this._streamData=_((function(t){try{e.push("string"==typeof t?t:t.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(t){this._streamError(t)}}),this),this._streamError=_((function(t){this._streamCleanUp(),this._sendError(t)}),this),this._streamEnd=_((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=_((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function h(t){var e,n,r,i=Math.pow(2,53),o=-i,s=/^\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,f=0,l=0,d=!1,h=!1,v=[],g={data:[],errors:[],meta:{}};if(w(t.step)){var m=t.step;t.step=function(e){if(g=e,O())A();else{if(A(),0===g.data.length)return;f+=e.data.length,t.preview&&f>t.preview?n.abort():(g.data=g.data[0],m(g,u))}}}function _(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function A(){return g&&r&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),t.skipEmptyLines&&(g.data=g.data.filter((function(t){return!_(t)}))),O()&&function(){if(g)if(Array.isArray(g.data[0])){for(var e=0;O()&&e<g.data.length;e++)g.data[e].forEach(n);g.data.splice(0,1)}else g.data.forEach(n);function n(e,n){w(t.transformHeader)&&(e=t.transformHeader(e,n)),v.push(e)}}(),function(){if(!g||!t.header&&!t.dynamicTyping&&!t.transform)return g;function e(e,n){var r,i=t.header?{}:[];for(r=0;r<e.length;r++){var o=r,a=e[r];t.header&&(o=r>=v.length?"__parsed_extra":v[r]),t.transform&&(a=t.transform(a,o)),a=k(o,a),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(a)):i[o]=a}return t.header&&(r>v.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+r,l+n):r<v.length&&E("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+r,l+n)),i}var n=1;return!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(e),n=g.data.length):g.data=e(g.data,0),t.header&&g.meta&&(g.meta.fields=v),l+=n,g}()}function O(){return t.header&&0===v.length}function k(e,n){return r=e,t.dynamicTypingFunction&&void 0===t.dynamicTyping[r]&&(t.dynamicTyping[r]=t.dynamicTypingFunction(r)),!0===(t.dynamicTyping[r]||t.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(t){if(s.test(t)){var e=parseFloat(t);if(o<e&&e<i)return!0}return!1}(n)?parseFloat(n):c.test(n)?new Date(n):""===n?null:n):n;var r}function E(t,e,n,r){var i={type:t,code:e,message:n};void 0!==r&&(i.row=r),g.errors.push(i)}this.parse=function(i,o,s){var c=t.quoteChar||'"';if(t.newline||(t.newline=function(t,e){t=t.substring(0,1048576);var n=new RegExp(y(e)+"([^]*?)"+y(e),"gm"),r=(t=t.replace(n,"")).split("\r"),i=t.split("\n"),o=1<i.length&&i[0].length<r[0].length;if(1===r.length||o)return"\n";for(var a=0,s=0;s<r.length;s++)"\n"===r[s][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(i,c)),r=!1,t.delimiter)w(t.delimiter)&&(t.delimiter=t.delimiter(i),g.meta.delimiter=t.delimiter);else{var u=function(e,n,r,i,o){var s,c,u,f;o=o||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var l=0;l<o.length;l++){var d=o[l],h=0,y=0,v=0;u=void 0;for(var g=new p({comments:i,delimiter:d,newline:n,preview:10}).parse(e),m=0;m<g.data.length;m++)if(r&&_(g.data[m]))v++;else{var b=g.data[m].length;y+=b,void 0!==u?0<b&&(h+=Math.abs(b-u),u=b):u=b}0<g.data.length&&(y/=g.data.length-v),(void 0===c||h<=c)&&(void 0===f||f<y)&&1.99<y&&(c=h,s=d,f=y)}return{successful:!!(t.delimiter=s),bestDelimiter:s}}(i,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);u.successful?t.delimiter=u.bestDelimiter:(r=!0,t.delimiter=a.DefaultDelimiter),g.meta.delimiter=t.delimiter}var f=b(t);return t.preview&&t.header&&f.preview++,e=i,n=new p(f),g=n.parse(e,o,s),A(),d?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),e=w(t.chunk)?"":e.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(d=!1,u.streamer.parseChunk(e,!0)):setTimeout(u.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),g.meta.aborted=!0,w(t.complete)&&t.complete(g),e=""}}function y(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(t){var e,n=(t=t||{}).delimiter,r=t.newline,i=t.comments,o=t.step,s=t.preview,c=t.fastMode,u=e=void 0===t.quoteChar||null===t.quoteChar?'"':t.quoteChar;if(void 0!==t.escapeChar&&(u=t.escapeChar),("string"!=typeof n||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var f=0,l=!1;this.parse=function(t,a,d){if("string"!=typeof t)throw new Error("Input must be a string");var h=t.length,p=n.length,v=r.length,g=i.length,m=w(o),b=[],_=[],A=[],O=f=0;if(!t)return L();if(c||!1!==c&&-1===t.indexOf(e)){for(var k=t.split(r),E=0;E<k.length;E++){if(A=k[E],f+=A.length,E!==k.length-1)f+=r.length;else if(d)return L();if(!i||A.substring(0,g)!==i){if(m){if(b=[],C(A.split(n)),U(),l)return L()}else C(A.split(n));if(s&&s<=E)return b=b.slice(0,s),L(!0)}}return L()}for(var S=t.indexOf(n,f),j=t.indexOf(r,f),I=new RegExp(y(u)+y(e),"g"),R=t.indexOf(e,f);;)if(t[f]!==e)if(i&&0===A.length&&t.substring(f,f+g)===i){if(-1===j)return L();f=j+v,j=t.indexOf(r,f),S=t.indexOf(n,f)}else if(-1!==S&&(S<j||-1===j))A.push(t.substring(f,S)),f=S+p,S=t.indexOf(n,f);else{if(-1===j)break;if(A.push(t.substring(f,j)),N(j+v),m&&(U(),l))return L();if(s&&b.length>=s)return L(!0)}else for(R=f,f++;;){if(-1===(R=t.indexOf(e,R+1)))return d||_.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:f}),D();if(R===h-1)return D(t.substring(f,R).replace(I,e));if(e!==u||t[R+1]!==u){if(e===u||0===R||t[R-1]!==u){-1!==S&&S<R+1&&(S=t.indexOf(n,R+1)),-1!==j&&j<R+1&&(j=t.indexOf(r,R+1));var T=P(-1===j?S:Math.min(S,j));if(t.substr(R+1+T,p)===n){A.push(t.substring(f,R).replace(I,e)),t[f=R+1+T+p]!==e&&(R=t.indexOf(e,f)),S=t.indexOf(n,f),j=t.indexOf(r,f);break}var x=P(j);if(t.substring(R+1+x,R+1+x+v)===r){if(A.push(t.substring(f,R).replace(I,e)),N(R+1+x+v),S=t.indexOf(n,f),R=t.indexOf(e,f),m&&(U(),l))return L();if(s&&b.length>=s)return L(!0);break}_.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:f}),R++}}else R++}return D();function C(t){b.push(t),O=f}function P(e){var n=0;if(-1!==e){var r=t.substring(R+1,e);r&&""===r.trim()&&(n=r.length)}return n}function D(e){return d||(void 0===e&&(e=t.substring(f)),A.push(e),f=h,C(A),m&&U()),L()}function N(e){f=e,C(A),A=[],j=t.indexOf(r,f)}function L(t){return{data:b,errors:_,meta:{delimiter:n,linebreak:r,aborted:l,truncated:!!t,cursor:O+(a||0)}}}function U(){o(L()),b=[],_=[]}},this.abort=function(){l=!0},this.getCharIndex=function(){return f}}function v(t){var e=t.data,n=i[e.workerId],r=!1;if(e.error)n.userError(e.error,e.file);else if(e.results&&e.results.data){var o={abort:function(){r=!0,g(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:m,resume:m};if(w(n.userStep)){for(var a=0;a<e.results.data.length&&(n.userStep({data:e.results.data[a],errors:e.results.errors,meta:e.results.meta},o),!r);a++);delete e.results}else w(n.userChunk)&&(n.userChunk(e.results,o,e.file),delete e.results)}e.finished&&!r&&g(e.workerId,e.results)}function g(t,e){var n=i[t];w(n.userComplete)&&n.userComplete(e),n.terminate(),delete i[t]}function m(){throw new Error("Not implemented.")}function b(t){if("object"!=typeof t||null===t)return t;var e=Array.isArray(t)?[]:{};for(var n in t)e[n]=b(t[n]);return e}function _(t,e){return function(){t.apply(e,arguments)}}function w(t){return"function"==typeof t}return r&&(e.onmessage=function(t){var n=t.data;if(void 0===a.WORKER_ID&&n&&(a.WORKER_ID=n.workerId),"string"==typeof n.input)e.postMessage({workerId:a.WORKER_ID,results:a.parse(n.input,n.config),finished:!0});else if(e.File&&n.input instanceof File||n.input instanceof Object){var r=a.parse(n.input,n.config);r&&e.postMessage({workerId:a.WORKER_ID,results:r,finished:!0})}}),(u.prototype=Object.create(c.prototype)).constructor=u,(f.prototype=Object.create(c.prototype)).constructor=f,(l.prototype=Object.create(l.prototype)).constructor=l,(d.prototype=Object.create(c.prototype)).constructor=d,a}()}(Bt);var Ft={},qt={},zt={},Mt={},Ht={},Jt={},Wt={};Wt.go=void 0,Wt.go=function(t){return t()},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(Wt,t)}(Jt),Ht.chunkAsync=void 0;const Kt=Jt,Qt=Ft;Ht.chunkAsync=function(t,e){return(0,Qt.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Qt.assert)(e>0,"The parameter size must be greater than 0"),(0,Kt.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var $t={chunkByAsync:void 0};const Gt=l;$t.chunkByAsync=function(t,e){return(0,Gt.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var Zt={};Zt.chunkBy=void 0,Zt.chunkBy=function*(t,e){let n=[],r=0;for(const i of t)n.push(i),e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Vt={chunk:void 0};const Yt=Jt,Xt=Ft;Vt.chunk=function(t,e){return(0,Xt.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Xt.assert)(e>0,"The parameter size must be greater than 0"),(0,Yt.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var te={concatAsync:void 0};const ee=l,ne=Jt;te.concatAsync=function(t,...e){return(0,ne.go)((async function*(){for(const n of[t,...e])if((0,ee.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var re={concat:void 0};const ie=Jt;re.concat=function(t,...e){return(0,ie.go)((function*(){for(const n of[t,...e])yield*n}))};var oe={},ae={};ae.copyIterable=ae.copyAsyncIterable=void 0,ae.copyAsyncIterable=async function*(t){for await(const e of t)yield e},ae.copyIterable=function*(t){for(const e of t)yield e},oe.dropAsync=void 0;const se=Jt,ce=ae,ue=Ft;oe.dropAsync=function(t,e){return(0,ue.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ue.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ce.copyAsyncIterable)(t):(0,se.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{let t;for(;!(({value:t,done:i}=await r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var fe={dropRightAsync:void 0};const le=Jt,de=ae,he=Ft;fe.dropRightAsync=function(t,e){return(0,he.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,he.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,de.copyAsyncIterable)(t):(0,le.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var ye={dropRight:void 0};const pe=Jt,ve=ae,ge=Ft;ye.dropRight=function(t,e){return(0,ge.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ge.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ve.copyIterable)(t):(0,pe.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var me={dropUntilAsync:void 0};const be=l;me.dropUntilAsync=function(t,e){return(0,be.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var _e={};_e.dropUntil=void 0,_e.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}};var we={drop:void 0};const Ae=Jt,Oe=ae,ke=Ft;we.drop=function(t,e){return(0,ke.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ke.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Oe.copyIterable)(t):(0,Ae.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{let t;for(;!(({value:t,done:i}=r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var Ee={filterAsync:void 0};const Se=l;Ee.filterAsync=function(t,e){return(0,Se.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var je={};je.filter=void 0,je.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Ie={},Re={},Te={flattenByAsync:void 0};const xe=l;function Ce(t){return(0,xe.isIterable)(t)&&(0,xe.isntChar)(t)}Te.flattenByAsync=function(t,e){return(0,xe.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)Ce(i)&&await e(i,r)?yield*n(i,r+1):yield i}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const i of t)Ce(i)&&await e(i,r)?yield*n(i,r+1):yield i}},Re.flattenDeepAsync=void 0;const Pe=Te,De=Ft;Re.flattenDeepAsync=function(t,e=1/0){return(0,De.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,De.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Pe.flattenByAsync)(t,((t,n)=>n<=e))},Ie.flattenAsync=void 0;const Ne=Re;Ie.flattenAsync=function(t){return(0,Ne.flattenDeepAsync)(t,1)};var Le={flattenBy:void 0};const Ue=l;Le.flattenBy=function(t,e){return function*t(n,r){for(const o of n)i=o,(0,Ue.isIterable)(i)&&(0,Ue.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var Be={flattenDeep:void 0};const Fe=Le,qe=Ft;Be.flattenDeep=function(t,e=1/0){return(0,qe.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,qe.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Fe.flattenBy)(t,((t,n)=>n<=e))};var ze={flatten:void 0};const Me=Be;ze.flatten=function(t){return(0,Me.flattenDeep)(t,1)};var He={mapAsync:void 0};const Je=l;He.mapAsync=function(t,e){return(0,Je.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var We={};We.map=void 0,We.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var Ke={repeatAsync:void 0};const Qe=Jt,$e=Ft;Ke.repeatAsync=function(t,e){return(0,$e.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,$e.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,Qe.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Ge={repeat:void 0};const Ze=Jt,Ve=Ft;Ge.repeat=function(t,e){return(0,Ve.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Ve.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,Ze.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Ye={sliceAsync:void 0};const Xe=Jt,tn=Ft;Ye.sliceAsync=function(t,e,n=1/0){return(0,tn.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,tn.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,tn.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,tn.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Xe.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var en={slice:void 0};const nn=Jt,rn=Ft;en.slice=function(t,e,n=1/0){return(0,rn.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,rn.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,rn.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,rn.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,nn.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var on={};on.splitAsync=void 0,on.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var an={splitByAsync:void 0};const sn=l;an.splitByAsync=function(t,e){return(0,sn.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t):async function*(t){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t)};var cn={};cn.splitBy=void 0,cn.splitBy=function*(t,e){let n=[],r=0;for(const i of t)e(i,r)?(yield n,n=[]):n.push(i),r++;yield n};var un={};un.split=void 0,un.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var fn={takeAsync:void 0};const ln=Jt,dn=Ft;fn.takeAsync=function(t,e){return(0,dn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,dn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ln.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var hn={takeRightAsync:void 0};const yn=Jt,pn=Ft;hn.takeRightAsync=function(t,e){return(0,pn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,pn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,yn.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=await r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var vn={takeRight:void 0};const gn=Jt,mn=Ft;vn.takeRight=function(t,e){return(0,mn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,mn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,gn.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var bn={takeUntilAsync:void 0};const _n=l;bn.takeUntilAsync=function(t,e){return(0,_n.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var wn={};wn.takeUntil=void 0,wn.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var An={take:void 0};const On=Jt,kn=Ft;An.take=function(t,e){return(0,kn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,kn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,On.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var En={tapAsync:void 0};const Sn=l;En.tapAsync=function(t,e){return(0,Sn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var jn={};jn.tap=void 0,jn.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var In={};In.toAsyncIterable=void 0,In.toAsyncIterable=async function*(t){for(const e of t)yield e};var Rn={};Rn.transformAsync=void 0,Rn.transformAsync=async function*(t,e){yield*e(t)};var Tn={};Tn.transform=void 0,Tn.transform=function*(t,e){yield*e(t)};var xn={};xn.uniqAsync=void 0,xn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Cn={uniqByAsync:void 0};const Pn=l;Cn.uniqByAsync=function(t,e){return(0,Pn.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t)};var Dn={};Dn.uniqBy=void 0,Dn.uniqBy=function*(t,e){const n=new Set;let r=0;for(const i of t){const t=e(i,r);n.has(t)||(yield i,n.add(t)),r++}};var Nn={};Nn.uniq=void 0,Nn.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var Ln={zipAsync:void 0};const Un=l;var Bn;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Bn||(Bn={})),Ln.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,a=t.map((t=>(0,Un.isAsyncIterable)(t)?[Bn.Async,t[Symbol.asyncIterator]()]:[Bn.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=a[e];let i;if(i=n===Bn.Async?await r.next():r.next(),i.done)return void(s[e]=!0);t[e]=i.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[o,a]of t)o===Bn.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(i=(r=a).return)||void 0===i||i.call(r)}}(t,...e)};var Fn={};Fn.zip=void 0,Fn.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let i=0;i<e;i++){const{value:e,done:o}=n[i].next();if(o)return void(r[i]=!0);t[i]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Ht,t),r($t,t),r(Zt,t),r(Vt,t),r(te,t),r(re,t),r(oe,t),r(fe,t),r(ye,t),r(me,t),r(_e,t),r(we,t),r(Ee,t),r(je,t),r(Ie,t),r(Te,t),r(Le,t),r(Re,t),r(Be,t),r(ze,t),r(He,t),r(We,t),r(Ke,t),r(Ge,t),r(Ye,t),r(en,t),r(on,t),r(an,t),r(cn,t),r(un,t),r(fn,t),r(hn,t),r(vn,t),r(bn,t),r(wn,t),r(An,t),r(En,t),r(jn,t),r(In,t),r(Rn,t),r(Tn,t),r(xn,t),r(Cn,t),r(Dn,t),r(Nn,t),r(Ln,t),r(Fn,t)}(Mt);var qn={},zn={};zn.consume=void 0,zn.consume=function(t,e){return e(t)};var Mn={eachAsync:void 0};const Hn=l;Mn.eachAsync=function(t,e){return(0,Hn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var Jn={};Jn.each=void 0,Jn.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Wn={everyAsync:void 0};const Kn=l;Wn.everyAsync=function(t,e){return(0,Kn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var Qn={};Qn.every=void 0,Qn.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var $n={findAsync:void 0};const Gn=l;$n.findAsync=function(t,e){return(0,Gn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var Zn={};Zn.find=void 0,Zn.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Vn={};Vn.firstAsync=void 0,Vn.firstAsync=async function(t){for await(const e of t)return e};var Yn={};Yn.first=void 0,Yn.first=function(t){for(const e of t)return e};var Xn={};Xn.includesAsync=void 0,Xn.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var tr={};tr.includes=void 0,tr.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var er={};er.matchAsync=void 0,er.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var nr={};nr.match=void 0,nr.match=function(t,e){const n=e.length;let r=0;for(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var rr={reduceAsync:void 0};const ir=l;rr.reduceAsync=function(t,e,n){return(0,ir.isUndefined)(n)?function(t,e){return(0,ir.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,a=await o(r),s=1;for(;({value:t,done:i}=await r.next()),!i;)a=await e(a,t,s++);return a}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=await e(a,t,s++);return a}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,ir.isAsyncIterable)(t)?i(t):r(t);async function r(t){let r=n,i=0;for(const n of t)r=await e(r,n,i++);return r}async function i(t){let r=n,i=0;for await(const n of t)r=await e(r,n,i++);return r}}(t,e,n)};var or={reduce:void 0};const ar=l;or.reduce=function(t,e,n){return(0,ar.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=e(a,t,s++);return a}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var sr={someAsync:void 0};const cr=l;sr.someAsync=function(t,e){return(0,cr.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var ur={};ur.some=void 0,ur.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var fr={};fr.lastAsync=void 0,fr.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,i;for(;({value:t,done:r}=await n.next()),!r;)i=t;return i}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var lr={};lr.last=void 0,lr.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,i;for(;({value:t,done:r}=n.next()),!r;)i=t;return i}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var dr={toArrayAsync:void 0};const hr=zn;dr.toArrayAsync=function(t){return(0,hr.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var yr={toArray:void 0};const pr=zn;yr.toArray=function(t){return(0,pr.consume)(t,(t=>Array.from(t)))};var vr={toSetAsync:void 0};const gr=zn;vr.toSetAsync=function(t){return(0,gr.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var mr={toSet:void 0};const br=zn;mr.toSet=function(t){return(0,br.consume)(t,(t=>new Set(t)))},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(zn,t),r(Mn,t),r(Jn,t),r(Wn,t),r(Qn,t),r($n,t),r(Zn,t),r(Vn,t),r(Yn,t),r(Xn,t),r(tr,t),r(er,t),r(nr,t),r(rr,t),r(or,t),r(sr,t),r(ur,t),r(fr,t),r(lr,t),r(dr,t),r(yr,t),r(vr,t),r(mr,t)}(qn),function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Mt,t),r(qn,t)}(zt);var _r={},wr={};wr.traverseErrorPrototypeChain=void 0,wr.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},_r.getErrorNames=void 0;const Ar=l,Or=wr;_r.getErrorNames=function*(t){var e;if((0,Ar.isError)(t))for(const n of(0,Or.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var kr={isSerializableError:void 0};const Er=l;kr.isSerializableError=function(t){return(0,Er.isObject)(t)&&(0,Er.isString)(t.name)&&(0,Er.isString)(t.message)&&((0,Er.isString)(t.stack)||(0,Er.isNull)(t.stack))&&(0,Er.isArray)(t.ancestors)&&t.ancestors.every(Er.isString)},qt.CustomError=void 0;const Sr=zt,jr=_r,Ir=l,Rr=kr;class Tr extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Sr.first)((0,jr.getErrorNames)(this)))&&void 0!==t?t:Tr.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Ir.isError)(t)||(0,Rr.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,jr.getErrorNames)(this.prototype)].reverse(),r=(0,Sr.toArray)((0,jr.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}qt.CustomError=Tr;var xr={AssertionError:void 0};const Cr=qt;class Pr extends Cr.CustomError{}xr.AssertionError=Pr;var Dr={normalize:void 0};const Nr=_r,Lr=zt;Dr.normalize=function(t){var e;const[n,...r]=(0,Lr.toArray)((0,Nr.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var Ur={},Br={},Fr={};Fr.pass=void 0,Fr.pass=function(){},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(Fr,t)}(Br),Ur.hydrate=void 0;const qr=Br;function zr(t,e){const n=function(){(0,qr.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}Ur.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=zr(r,t);const i=new r;return i.name=t.name,i.message=t.message,i.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,i};var Mr={assert:void 0};const Hr=xr;function Jr(t){const e=Object.keys(t[0]);return Bt.exports.unparse({data:t,fields:e})}function Wr(t,e){return r=>{const i=new n.Headers(r.headers);return i.set(t,e),Object.assign(Object.assign({},r),{headers:i})}}function Kr(t,e){return r=>{const i=new n.Headers(r.headers);return i.append(t,e),Object.assign(Object.assign({},r),{headers:i})}}Mr.assert=function(t,e){if(!t)throw new Hr.AssertionError(e)},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(qt,t),r(xr,t),r(kr,t),r(Dr,t),r(Ur,t),r(Mr,t),r(_r,t),r(wr,t)}(Ft);const Qr="function"==typeof btoa,$r="function"==typeof Buffer;"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;const Gr=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(t=>{let e={};t.forEach(((t,n)=>e[t]=n))})(Gr),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);const Zr=Qr?t=>btoa(t):$r?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,n,r,i,o="";const a=t.length%3;for(let a=0;a<t.length;){if((n=t.charCodeAt(a++))>255||(r=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=Gr[e>>18&63]+Gr[e>>12&63]+Gr[e>>6&63]+Gr[63&e]}return a?o.slice(0,a-3)+"===".substring(a):o};t.accept=function(t){return Kr("Accept",t)},t.appendHeader=Kr,t.appendSearchParam=function(t,e){return n=>{const r=new URL(n.url.href),i=new URLSearchParams(r.searchParams);return i.append(t,e.toString()),r.search=i.toString(),Object.assign(Object.assign({},n),{url:r})}},t.basicAuth=function(t,e){return Wr("Authorization","Basic "+Zr(`${t}:${e}`))},t.bearerAuth=function(t){return Wr("Authorization",`Bearer ${t}`)},t.csv=function(t){return Ft.assert(t.length>0,"payload must be a non-empty array"),e=>{const r=new n.Headers(e.headers);return r.set("Content-Type","text/csv"),Object.assign(Object.assign({},e),{headers:r,payload:Jr(t)})}},t.del=function(...t){return Ut("DELETE",...t)},t.formDataField=function(t,e){return r=>{const i=r.payload instanceof n.FormData?function(t){const e=new n.FormData;for(const[n,r]of t.entries())e.append(n,r);return e}(r.payload):new n.FormData;return l.isArray(e)?e.forEach((e=>i.append(t,e))):i.append(t,e),Object.assign(Object.assign({},r),{payload:i})}},t.get=function(...t){return Ut("GET",...t)},t.head=function(...t){return Ut("HEAD",...t)},t.header=Wr,t.headers=function(t){return e=>{const r=new n.Headers(e.headers);for(const[e,n]of Object.entries(t))r.set(e,n);return Object.assign(Object.assign({},e),{headers:r})}},t.host=function(t){return e=>{const n=new URL(e.url.href);return n.host=t,Object.assign(Object.assign({},e),{url:n})}},t.json=function(t){return e=>{const r=new n.Headers(e.headers);return r.set("Content-Type","application/json"),Object.assign(Object.assign({},e),{headers:r,payload:JSON.stringify(t)})}},t.keepalive=function(t=!0){return e=>Object.assign(Object.assign({},e),{keepalive:t})},t.patch=function(...t){return Ut("PATCH",...t)},t.pathname=function(t){return e=>{const n=new URL(e.url.href);return n.pathname=t,Object.assign(Object.assign({},e),{url:n})}},t.port=function(t){return e=>{const n=new URL(e.url.href);return n.port=t.toString(),Object.assign(Object.assign({},e),{url:n})}},t.post=function(...t){return Ut("POST",...t)},t.put=function(...t){return Ut("PUT",...t)},t.search=function(t){return e=>{const n=new URL(e.url.href);return n.search=t,Object.assign(Object.assign({},e),{url:n})}},t.searchParam=function(t,e){return n=>{const r=new URL(n.url.href),i=new URLSearchParams(r.searchParams);return i.set(t,e.toString()),r.search=i.toString(),Object.assign(Object.assign({},n),{url:r})}},t.searchParams=function(t){return e=>{const n=new URL(e.url.href),r=new URLSearchParams(n.searchParams);for(const[e,n]of Object.entries(t))r.set(e,n.toString());return n.search=r.toString(),Object.assign(Object.assign({},e),{url:n})}},t.signal=function(t){return e=>Object.assign(Object.assign({},e),{signal:t})},t.text=function(t){return e=>{const r=new n.Headers(e.headers);return r.set("Content-Type","application/x-www-form-urlencoded"),Object.assign(Object.assign({},e),{headers:r,payload:t})}},t.url=function(...t){return e=>{const n=new URL(t.reduce(((t,e)=>new URL(e,t).href)));return Object.assign(Object.assign({},e),{url:n})}},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
8
8
|
//# sourceMappingURL=index.umd.min.js.map
|