@botpress/client 0.26.3 → 0.26.5

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/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- var _i=Object.create;var vt=Object.defineProperty;var Fi=Object.getOwnPropertyDescriptor;var Oi=Object.getOwnPropertyNames;var Ni=Object.getPrototypeOf,$i=Object.prototype.hasOwnProperty;var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Vi=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oi(t))!$i.call(e,o)&&o!==s&&vt(e,o,{get:()=>t[o],enumerable:!(a=Fi(t,o))||a.enumerable});return e};var Ae=(e,t,s)=>(s=e!=null?_i(Ni(e)):{},Vi(t||!e||!e.__esModule?vt(s,"default",{value:e,enumerable:!0}):s,e));var Pt=b(()=>{});var At=b(()=>{});var Ut=b((ou,Ct)=>{"use strict";Ct.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;t[s]=o;for(s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==o||p.enumerable!==!0)return!1}return!0}});var Lt=b((iu,wt)=>{"use strict";var Gt=typeof Symbol<"u"&&Symbol,dp=Ut();wt.exports=function(){return typeof Gt!="function"||typeof Symbol!="function"||typeof Gt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:dp()}});var Qt=b((pu,St)=>{"use strict";var Wt={foo:{}},lp=Object;St.exports=function(){return{__proto__:Wt}.foo===Wt.foo&&!({__proto__:null}instanceof lp)}});var Dt=b((cu,Ht)=>{"use strict";var gp="Function.prototype.bind called on incompatible ",Ze=Array.prototype.slice,yp=Object.prototype.toString,mp="[object Function]";Ht.exports=function(t){var s=this;if(typeof s!="function"||yp.call(s)!==mp)throw new TypeError(gp+s);for(var a=Ze.call(arguments,1),o,n=function(){if(this instanceof o){var l=s.apply(this,a.concat(Ze.call(arguments)));return Object(l)===l?l:this}else return s.apply(t,a.concat(Ze.call(arguments)))},p=Math.max(0,s.length-a.length),i=[],r=0;r<p;r++)i.push("$"+r);if(o=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(n),s.prototype){var d=function(){};d.prototype=s.prototype,o.prototype=new d,d.prototype=null}return o}});var ge=b((uu,Mt)=>{"use strict";var Rp=Dt();Mt.exports=Function.prototype.bind||Rp});var _t=b((du,Et)=>{"use strict";var qp=ge();Et.exports=qp.call(Function.call,Object.prototype.hasOwnProperty)});var Re=b((lu,Vt)=>{"use strict";var y,X=SyntaxError,$t=Function,Z=TypeError,Xe=function(e){try{return $t('"use strict"; return ('+e+").constructor;")()}catch{}},O=Object.getOwnPropertyDescriptor;if(O)try{O({},"")}catch{O=null}var et=function(){throw new Z},hp=O?function(){try{return arguments.callee,et}catch{try{return O(arguments,"callee").get}catch{return et}}}():et,J=Lt()(),fp=Qt()(),x=Object.getPrototypeOf||(fp?function(e){return e.__proto__}:null),Y={},bp=typeof Uint8Array>"u"||!x?y:x(Uint8Array),N={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":J&&x?x([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":$t,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":J&&x?x(x([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!J||!x?y:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!J||!x?y:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":J&&x?x(""[Symbol.iterator]()):y,"%Symbol%":J?Symbol:y,"%SyntaxError%":X,"%ThrowTypeError%":hp,"%TypedArray%":bp,"%TypeError%":Z,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet};if(x)try{null.error}catch(e){Ft=x(x(e)),N["%Error.prototype%"]=Ft}var Ft,xp=function e(t){var s;if(t==="%AsyncFunction%")s=Xe("async function () {}");else if(t==="%GeneratorFunction%")s=Xe("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Xe("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&x&&(s=x(o.prototype))}return N[t]=s,s},Ot={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},pe=ge(),ye=_t(),Ip=pe.call(Function.call,Array.prototype.concat),kp=pe.call(Function.apply,Array.prototype.splice),Nt=pe.call(Function.call,String.prototype.replace),me=pe.call(Function.call,String.prototype.slice),vp=pe.call(Function.call,RegExp.prototype.exec),Pp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ap=/\\(\\)?/g,Bp=function(t){var s=me(t,0,1),a=me(t,-1);if(s==="%"&&a!=="%")throw new X("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new X("invalid intrinsic syntax, expected opening `%`");var o=[];return Nt(t,Pp,function(n,p,i,r){o[o.length]=i?Nt(r,Ap,"$1"):p||n}),o},Tp=function(t,s){var a=t,o;if(ye(Ot,a)&&(o=Ot[a],a="%"+o[0]+"%"),ye(N,a)){var n=N[a];if(n===Y&&(n=xp(a)),typeof n>"u"&&!s)throw new Z("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:n}}throw new X("intrinsic "+t+" does not exist!")};Vt.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new Z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new Z('"allowMissing" argument must be a boolean');if(vp(/^%?[^%]*%?$/,t)===null)throw new X("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Bp(t),o=a.length>0?a[0]:"",n=Tp("%"+o+"%",s),p=n.name,i=n.value,r=!1,d=n.alias;d&&(o=d[0],kp(a,Ip([0,1],d)));for(var l=1,m=!0;l<a.length;l+=1){var g=a[l],f=me(g,0,1),h=me(g,-1);if((f==='"'||f==="'"||f==="`"||h==='"'||h==="'"||h==="`")&&f!==h)throw new X("property names with quotes must have matching quotes");if((g==="constructor"||!m)&&(r=!0),o+="."+g,p="%"+o+"%",ye(N,p))i=N[p];else if(i!=null){if(!(g in i)){if(!s)throw new Z("base intrinsic for "+t+" exists, but the property is not available.");return}if(O&&l+1>=a.length){var P=O(i,g);m=!!P,m&&"get"in P&&!("originalValue"in P.get)?i=P.get:i=i[g]}else m=ye(i,g),i=i[g];m&&!r&&(N[p]=i)}}return i}});var Zt=b((gu,qe)=>{"use strict";var tt=ge(),ee=Re(),jt=ee("%Function.prototype.apply%"),Jt=ee("%Function.prototype.call%"),Yt=ee("%Reflect.apply%",!0)||tt.call(Jt,jt),Kt=ee("%Object.getOwnPropertyDescriptor%",!0),$=ee("%Object.defineProperty%",!0),Cp=ee("%Math.max%");if($)try{$({},"a",{value:1})}catch{$=null}qe.exports=function(t){var s=Yt(tt,Jt,arguments);if(Kt&&$){var a=Kt(s,"length");a.configurable&&$(s,"length",{value:1+Cp(0,t.length-(arguments.length-1))})}return s};var zt=function(){return Yt(tt,jt,arguments)};$?$(qe.exports,"apply",{value:zt}):qe.exports.apply=zt});var rr=b((yu,tr)=>{"use strict";var Xt=Re(),er=Zt(),Up=er(Xt("String.prototype.indexOf"));tr.exports=function(t,s){var a=Xt(t,!!s);return typeof a=="function"&&Up(t,".prototype.")>-1?er(a):a}});var sr=b(()=>{});var kr=b((qu,Ir)=>{var dt=typeof Map=="function"&&Map.prototype,rt=Object.getOwnPropertyDescriptor&&dt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fe=dt&&rt&&typeof rt.get=="function"?rt.get:null,ar=dt&&Map.prototype.forEach,lt=typeof Set=="function"&&Set.prototype,st=Object.getOwnPropertyDescriptor&&lt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,be=lt&&st&&typeof st.get=="function"?st.get:null,nr=lt&&Set.prototype.forEach,Gp=typeof WeakMap=="function"&&WeakMap.prototype,ue=Gp?WeakMap.prototype.has:null,wp=typeof WeakSet=="function"&&WeakSet.prototype,de=wp?WeakSet.prototype.has:null,Lp=typeof WeakRef=="function"&&WeakRef.prototype,or=Lp?WeakRef.prototype.deref:null,Wp=Boolean.prototype.valueOf,Sp=Object.prototype.toString,Qp=Function.prototype.toString,Hp=String.prototype.match,gt=String.prototype.slice,D=String.prototype.replace,Dp=String.prototype.toUpperCase,ir=String.prototype.toLowerCase,Rr=RegExp.prototype.test,pr=Array.prototype.concat,B=Array.prototype.join,Mp=Array.prototype.slice,cr=Math.floor,ot=typeof BigInt=="function"?BigInt.prototype.valueOf:null,at=Object.getOwnPropertySymbols,it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,te=typeof Symbol=="function"&&typeof Symbol.iterator=="object",v=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===te||"symbol")?Symbol.toStringTag:null,qr=Object.prototype.propertyIsEnumerable,ur=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function dr(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Rr.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-cr(-e):cr(e);if(a!==e){var o=String(a),n=gt.call(t,o.length+1);return D.call(o,s,"$&_")+"."+D.call(D.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(t,s,"$&_")}var pt=sr(),lr=pt.custom,gr=fr(lr)?lr:null;Ir.exports=function e(t,s,a,o){var n=s||{};if(H(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(n,"maxStringLength")&&(typeof n.maxStringLength=="number"?n.maxStringLength<0&&n.maxStringLength!==1/0:n.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=H(n,"customInspect")?n.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(n,"indent")&&n.indent!==null&&n.indent!==" "&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(n,"numericSeparator")&&typeof n.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=n.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return xr(t,n);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?dr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?dr(t,d):d}var l=typeof n.depth>"u"?5:n.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return ct(t)?"[Array]":"[Object]";var m=sc(n,a);if(typeof o>"u")o=[];else if(br(o,t)>=0)return"[Circular]";function g(A,S,G){if(S&&(o=Mp.call(o),o.push(S)),G){var ie={depth:n.depth};return H(n,"quoteStyle")&&(ie.quoteStyle=n.quoteStyle),e(A,ie,a+1,o)}return e(A,n,a+1,o)}if(typeof t=="function"&&!yr(t)){var f=zp(t),h=he(t,g);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(h.length>0?" { "+B.call(h,", ")+" }":"")}if(fr(t)){var P=te?D.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):it.call(t);return typeof t=="object"&&!te?ce(P):P}if(ec(t)){for(var C="<"+ir.call(String(t.nodeName)),R=t.attributes||[],U=0;U<R.length;U++)C+=" "+R[U].name+"="+hr(Ep(R[U].value),"double",n);return C+=">",t.childNodes&&t.childNodes.length&&(C+="..."),C+="</"+ir.call(String(t.nodeName))+">",C}if(ct(t)){if(t.length===0)return"[]";var L=he(t,g);return m&&!rc(L)?"["+ut(L,m)+"]":"[ "+B.call(L,", ")+" ]"}if(Fp(t)){var K=he(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!qr.call(t,"cause")?"{ ["+String(t)+"] "+B.call(pr.call("[cause]: "+g(t.cause),K),", ")+" }":K.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+B.call(K,", ")+" }"}if(typeof t=="object"&&p){if(gr&&typeof t[gr]=="function"&&pt)return pt(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(jp(t)){var ae=[];return ar&&ar.call(t,function(A,S){ae.push(g(S,t,!0)+" => "+g(A,t))}),mr("Map",fe.call(t),ae,m)}if(Zp(t)){var ne=[];return nr&&nr.call(t,function(A){ne.push(g(A,t))}),mr("Set",be.call(t),ne,m)}if(Jp(t))return nt("WeakMap");if(Xp(t))return nt("WeakSet");if(Yp(t))return nt("WeakRef");if(Np(t))return ce(g(Number(t)));if(Vp(t))return ce(g(ot.call(t)));if($p(t))return ce(Wp.call(t));if(Op(t))return ce(g(String(t)));if(!_p(t)&&!yr(t)){var E=he(t,g),oe=ur?ur(t)===Object.prototype:t instanceof Object||t.constructor===Object,W=t instanceof Object?"":"null prototype",z=!oe&&v&&Object(t)===t&&v in t?gt.call(M(t),8,-1):W?"Object":"",_=oe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=_+(z||W?"["+B.call(pr.call([],z||[],W||[]),": ")+"] ":"");return E.length===0?j+"{}":m?j+"{"+ut(E,m)+"}":j+"{ "+B.call(E,", ")+" }"}return String(t)};function hr(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Ep(e){return D.call(String(e),/"/g,"&quot;")}function ct(e){return M(e)==="[object Array]"&&(!v||!(typeof e=="object"&&v in e))}function _p(e){return M(e)==="[object Date]"&&(!v||!(typeof e=="object"&&v in e))}function yr(e){return M(e)==="[object RegExp]"&&(!v||!(typeof e=="object"&&v in e))}function Fp(e){return M(e)==="[object Error]"&&(!v||!(typeof e=="object"&&v in e))}function Op(e){return M(e)==="[object String]"&&(!v||!(typeof e=="object"&&v in e))}function Np(e){return M(e)==="[object Number]"&&(!v||!(typeof e=="object"&&v in e))}function $p(e){return M(e)==="[object Boolean]"&&(!v||!(typeof e=="object"&&v in e))}function fr(e){if(te)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!it)return!1;try{return it.call(e),!0}catch{}return!1}function Vp(e){if(!e||typeof e!="object"||!ot)return!1;try{return ot.call(e),!0}catch{}return!1}var Kp=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return Kp.call(e,t)}function M(e){return Sp.call(e)}function zp(e){if(e.name)return e.name;var t=Hp.call(Qp.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function br(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,a=e.length;s<a;s++)if(e[s]===t)return s;return-1}function jp(e){if(!fe||!e||typeof e!="object")return!1;try{fe.call(e);try{be.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Jp(e){if(!ue||!e||typeof e!="object")return!1;try{ue.call(e,ue);try{de.call(e,de)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Yp(e){if(!or||!e||typeof e!="object")return!1;try{return or.call(e),!0}catch{}return!1}function Zp(e){if(!be||!e||typeof e!="object")return!1;try{be.call(e);try{fe.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Xp(e){if(!de||!e||typeof e!="object")return!1;try{de.call(e,de);try{ue.call(e,ue)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ec(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function xr(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return xr(gt.call(e,0,t.maxStringLength),t)+a}var o=D.call(D.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,tc);return hr(o,"single",t)}function tc(e){var t=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return s?"\\"+s:"\\x"+(t<16?"0":"")+Dp.call(t.toString(16))}function ce(e){return"Object("+e+")"}function nt(e){return e+" { ? }"}function mr(e,t,s,a){var o=a?ut(s,a):B.call(s,", ");return e+" ("+t+") {"+o+"}"}function rc(e){for(var t=0;t<e.length;t++)if(br(e[t],`
2
- `)>=0)return!1;return!0}function sc(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=B.call(Array(e.indent+1)," ");else return null;return{base:s,prev:B.call(Array(t+1),s)}}function ut(e,t){if(e.length===0)return"";var s=`
1
+ var Oi=Object.create;var vt=Object.defineProperty;var Ni=Object.getOwnPropertyDescriptor;var Vi=Object.getOwnPropertyNames;var $i=Object.getPrototypeOf,Ki=Object.prototype.hasOwnProperty;var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var zi=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vi(t))!Ki.call(e,o)&&o!==s&&vt(e,o,{get:()=>t[o],enumerable:!(a=Ni(t,o))||a.enumerable});return e};var Ae=(e,t,s)=>(s=e!=null?Oi($i(e)):{},zi(t||!e||!e.__esModule?vt(s,"default",{value:e,enumerable:!0}):s,e));var Pt=b(()=>{});var At=b(()=>{});var Ut=b((pu,Ct)=>{"use strict";Ct.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;t[s]=o;for(s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==o||p.enumerable!==!0)return!1}return!0}});var Lt=b((cu,wt)=>{"use strict";var Gt=typeof Symbol<"u"&&Symbol,gp=Ut();wt.exports=function(){return typeof Gt!="function"||typeof Symbol!="function"||typeof Gt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:gp()}});var Qt=b((uu,St)=>{"use strict";var Wt={foo:{}},yp=Object;St.exports=function(){return{__proto__:Wt}.foo===Wt.foo&&!({__proto__:null}instanceof yp)}});var Dt=b((du,Ht)=>{"use strict";var mp="Function.prototype.bind called on incompatible ",Ze=Array.prototype.slice,Rp=Object.prototype.toString,qp="[object Function]";Ht.exports=function(t){var s=this;if(typeof s!="function"||Rp.call(s)!==qp)throw new TypeError(mp+s);for(var a=Ze.call(arguments,1),o,n=function(){if(this instanceof o){var g=s.apply(this,a.concat(Ze.call(arguments)));return Object(g)===g?g:this}else return s.apply(t,a.concat(Ze.call(arguments)))},p=Math.max(0,s.length-a.length),i=[],r=0;r<p;r++)i.push("$"+r);if(o=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(n),s.prototype){var d=function(){};d.prototype=s.prototype,o.prototype=new d,d.prototype=null}return o}});var ge=b((lu,Mt)=>{"use strict";var hp=Dt();Mt.exports=Function.prototype.bind||hp});var _t=b((gu,Et)=>{"use strict";var fp=ge();Et.exports=fp.call(Function.call,Object.prototype.hasOwnProperty)});var Re=b((yu,$t)=>{"use strict";var y,X=SyntaxError,Vt=Function,Z=TypeError,Xe=function(e){try{return Vt('"use strict"; return ('+e+").constructor;")()}catch{}},O=Object.getOwnPropertyDescriptor;if(O)try{O({},"")}catch{O=null}var et=function(){throw new Z},bp=O?function(){try{return arguments.callee,et}catch{try{return O(arguments,"callee").get}catch{return et}}}():et,J=Lt()(),xp=Qt()(),x=Object.getPrototypeOf||(xp?function(e){return e.__proto__}:null),Y={},Ip=typeof Uint8Array>"u"||!x?y:x(Uint8Array),N={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":J&&x?x([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":Vt,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":J&&x?x(x([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!J||!x?y:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!J||!x?y:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":J&&x?x(""[Symbol.iterator]()):y,"%Symbol%":J?Symbol:y,"%SyntaxError%":X,"%ThrowTypeError%":bp,"%TypedArray%":Ip,"%TypeError%":Z,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet};if(x)try{null.error}catch(e){Ft=x(x(e)),N["%Error.prototype%"]=Ft}var Ft,kp=function e(t){var s;if(t==="%AsyncFunction%")s=Xe("async function () {}");else if(t==="%GeneratorFunction%")s=Xe("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Xe("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&x&&(s=x(o.prototype))}return N[t]=s,s},Ot={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},pe=ge(),ye=_t(),vp=pe.call(Function.call,Array.prototype.concat),Pp=pe.call(Function.apply,Array.prototype.splice),Nt=pe.call(Function.call,String.prototype.replace),me=pe.call(Function.call,String.prototype.slice),Ap=pe.call(Function.call,RegExp.prototype.exec),Bp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Tp=/\\(\\)?/g,Cp=function(t){var s=me(t,0,1),a=me(t,-1);if(s==="%"&&a!=="%")throw new X("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new X("invalid intrinsic syntax, expected opening `%`");var o=[];return Nt(t,Bp,function(n,p,i,r){o[o.length]=i?Nt(r,Tp,"$1"):p||n}),o},Up=function(t,s){var a=t,o;if(ye(Ot,a)&&(o=Ot[a],a="%"+o[0]+"%"),ye(N,a)){var n=N[a];if(n===Y&&(n=kp(a)),typeof n>"u"&&!s)throw new Z("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:n}}throw new X("intrinsic "+t+" does not exist!")};$t.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new Z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new Z('"allowMissing" argument must be a boolean');if(Ap(/^%?[^%]*%?$/,t)===null)throw new X("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Cp(t),o=a.length>0?a[0]:"",n=Up("%"+o+"%",s),p=n.name,i=n.value,r=!1,d=n.alias;d&&(o=d[0],Pp(a,vp([0,1],d)));for(var g=1,m=!0;g<a.length;g+=1){var l=a[g],h=me(l,0,1),f=me(l,-1);if((h==='"'||h==="'"||h==="`"||f==='"'||f==="'"||f==="`")&&h!==f)throw new X("property names with quotes must have matching quotes");if((l==="constructor"||!m)&&(r=!0),o+="."+l,p="%"+o+"%",ye(N,p))i=N[p];else if(i!=null){if(!(l in i)){if(!s)throw new Z("base intrinsic for "+t+" exists, but the property is not available.");return}if(O&&g+1>=a.length){var P=O(i,l);m=!!P,m&&"get"in P&&!("originalValue"in P.get)?i=P.get:i=i[l]}else m=ye(i,l),i=i[l];m&&!r&&(N[p]=i)}}return i}});var Zt=b((mu,qe)=>{"use strict";var tt=ge(),ee=Re(),jt=ee("%Function.prototype.apply%"),Jt=ee("%Function.prototype.call%"),Yt=ee("%Reflect.apply%",!0)||tt.call(Jt,jt),Kt=ee("%Object.getOwnPropertyDescriptor%",!0),V=ee("%Object.defineProperty%",!0),Gp=ee("%Math.max%");if(V)try{V({},"a",{value:1})}catch{V=null}qe.exports=function(t){var s=Yt(tt,Jt,arguments);if(Kt&&V){var a=Kt(s,"length");a.configurable&&V(s,"length",{value:1+Gp(0,t.length-(arguments.length-1))})}return s};var zt=function(){return Yt(tt,jt,arguments)};V?V(qe.exports,"apply",{value:zt}):qe.exports.apply=zt});var rr=b((Ru,tr)=>{"use strict";var Xt=Re(),er=Zt(),wp=er(Xt("String.prototype.indexOf"));tr.exports=function(t,s){var a=Xt(t,!!s);return typeof a=="function"&&wp(t,".prototype.")>-1?er(a):a}});var sr=b(()=>{});var kr=b((fu,Ir)=>{var dt=typeof Map=="function"&&Map.prototype,rt=Object.getOwnPropertyDescriptor&&dt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fe=dt&&rt&&typeof rt.get=="function"?rt.get:null,ar=dt&&Map.prototype.forEach,lt=typeof Set=="function"&&Set.prototype,st=Object.getOwnPropertyDescriptor&&lt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,be=lt&&st&&typeof st.get=="function"?st.get:null,nr=lt&&Set.prototype.forEach,Lp=typeof WeakMap=="function"&&WeakMap.prototype,ue=Lp?WeakMap.prototype.has:null,Wp=typeof WeakSet=="function"&&WeakSet.prototype,de=Wp?WeakSet.prototype.has:null,Sp=typeof WeakRef=="function"&&WeakRef.prototype,or=Sp?WeakRef.prototype.deref:null,Qp=Boolean.prototype.valueOf,Hp=Object.prototype.toString,Dp=Function.prototype.toString,Mp=String.prototype.match,gt=String.prototype.slice,D=String.prototype.replace,Ep=String.prototype.toUpperCase,ir=String.prototype.toLowerCase,Rr=RegExp.prototype.test,pr=Array.prototype.concat,B=Array.prototype.join,_p=Array.prototype.slice,cr=Math.floor,ot=typeof BigInt=="function"?BigInt.prototype.valueOf:null,at=Object.getOwnPropertySymbols,it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,te=typeof Symbol=="function"&&typeof Symbol.iterator=="object",v=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===te||"symbol")?Symbol.toStringTag:null,qr=Object.prototype.propertyIsEnumerable,ur=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function dr(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Rr.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-cr(-e):cr(e);if(a!==e){var o=String(a),n=gt.call(t,o.length+1);return D.call(o,s,"$&_")+"."+D.call(D.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(t,s,"$&_")}var pt=sr(),lr=pt.custom,gr=fr(lr)?lr:null;Ir.exports=function e(t,s,a,o){var n=s||{};if(H(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(n,"maxStringLength")&&(typeof n.maxStringLength=="number"?n.maxStringLength<0&&n.maxStringLength!==1/0:n.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=H(n,"customInspect")?n.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(n,"indent")&&n.indent!==null&&n.indent!==" "&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(n,"numericSeparator")&&typeof n.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=n.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return xr(t,n);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?dr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?dr(t,d):d}var g=typeof n.depth>"u"?5:n.depth;if(typeof a>"u"&&(a=0),a>=g&&g>0&&typeof t=="object")return ct(t)?"[Array]":"[Object]";var m=nc(n,a);if(typeof o>"u")o=[];else if(br(o,t)>=0)return"[Circular]";function l(A,S,G){if(S&&(o=_p.call(o),o.push(S)),G){var ie={depth:n.depth};return H(n,"quoteStyle")&&(ie.quoteStyle=n.quoteStyle),e(A,ie,a+1,o)}return e(A,n,a+1,o)}if(typeof t=="function"&&!yr(t)){var h=Jp(t),f=he(t,l);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+B.call(f,", ")+" }":"")}if(fr(t)){var P=te?D.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):it.call(t);return typeof t=="object"&&!te?ce(P):P}if(rc(t)){for(var C="<"+ir.call(String(t.nodeName)),R=t.attributes||[],U=0;U<R.length;U++)C+=" "+R[U].name+"="+hr(Fp(R[U].value),"double",n);return C+=">",t.childNodes&&t.childNodes.length&&(C+="..."),C+="</"+ir.call(String(t.nodeName))+">",C}if(ct(t)){if(t.length===0)return"[]";var L=he(t,l);return m&&!ac(L)?"["+ut(L,m)+"]":"[ "+B.call(L,", ")+" ]"}if(Np(t)){var K=he(t,l);return!("cause"in Error.prototype)&&"cause"in t&&!qr.call(t,"cause")?"{ ["+String(t)+"] "+B.call(pr.call("[cause]: "+l(t.cause),K),", ")+" }":K.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+B.call(K,", ")+" }"}if(typeof t=="object"&&p){if(gr&&typeof t[gr]=="function"&&pt)return pt(t,{depth:g-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Yp(t)){var ae=[];return ar&&ar.call(t,function(A,S){ae.push(l(S,t,!0)+" => "+l(A,t))}),mr("Map",fe.call(t),ae,m)}if(ec(t)){var ne=[];return nr&&nr.call(t,function(A){ne.push(l(A,t))}),mr("Set",be.call(t),ne,m)}if(Zp(t))return nt("WeakMap");if(tc(t))return nt("WeakSet");if(Xp(t))return nt("WeakRef");if($p(t))return ce(l(Number(t)));if(zp(t))return ce(l(ot.call(t)));if(Kp(t))return ce(Qp.call(t));if(Vp(t))return ce(l(String(t)));if(!Op(t)&&!yr(t)){var E=he(t,l),oe=ur?ur(t)===Object.prototype:t instanceof Object||t.constructor===Object,W=t instanceof Object?"":"null prototype",z=!oe&&v&&Object(t)===t&&v in t?gt.call(M(t),8,-1):W?"Object":"",_=oe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=_+(z||W?"["+B.call(pr.call([],z||[],W||[]),": ")+"] ":"");return E.length===0?j+"{}":m?j+"{"+ut(E,m)+"}":j+"{ "+B.call(E,", ")+" }"}return String(t)};function hr(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Fp(e){return D.call(String(e),/"/g,"&quot;")}function ct(e){return M(e)==="[object Array]"&&(!v||!(typeof e=="object"&&v in e))}function Op(e){return M(e)==="[object Date]"&&(!v||!(typeof e=="object"&&v in e))}function yr(e){return M(e)==="[object RegExp]"&&(!v||!(typeof e=="object"&&v in e))}function Np(e){return M(e)==="[object Error]"&&(!v||!(typeof e=="object"&&v in e))}function Vp(e){return M(e)==="[object String]"&&(!v||!(typeof e=="object"&&v in e))}function $p(e){return M(e)==="[object Number]"&&(!v||!(typeof e=="object"&&v in e))}function Kp(e){return M(e)==="[object Boolean]"&&(!v||!(typeof e=="object"&&v in e))}function fr(e){if(te)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!it)return!1;try{return it.call(e),!0}catch{}return!1}function zp(e){if(!e||typeof e!="object"||!ot)return!1;try{return ot.call(e),!0}catch{}return!1}var jp=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return jp.call(e,t)}function M(e){return Hp.call(e)}function Jp(e){if(e.name)return e.name;var t=Mp.call(Dp.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function br(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,a=e.length;s<a;s++)if(e[s]===t)return s;return-1}function Yp(e){if(!fe||!e||typeof e!="object")return!1;try{fe.call(e);try{be.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Zp(e){if(!ue||!e||typeof e!="object")return!1;try{ue.call(e,ue);try{de.call(e,de)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Xp(e){if(!or||!e||typeof e!="object")return!1;try{return or.call(e),!0}catch{}return!1}function ec(e){if(!be||!e||typeof e!="object")return!1;try{be.call(e);try{fe.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function tc(e){if(!de||!e||typeof e!="object")return!1;try{de.call(e,de);try{ue.call(e,ue)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function rc(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function xr(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return xr(gt.call(e,0,t.maxStringLength),t)+a}var o=D.call(D.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,sc);return hr(o,"single",t)}function sc(e){var t=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return s?"\\"+s:"\\x"+(t<16?"0":"")+Ep.call(t.toString(16))}function ce(e){return"Object("+e+")"}function nt(e){return e+" { ? }"}function mr(e,t,s,a){var o=a?ut(s,a):B.call(s,", ");return e+" ("+t+") {"+o+"}"}function ac(e){for(var t=0;t<e.length;t++)if(br(e[t],`
2
+ `)>=0)return!1;return!0}function nc(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=B.call(Array(e.indent+1)," ");else return null;return{base:s,prev:B.call(Array(t+1),s)}}function ut(e,t){if(e.length===0)return"";var s=`
3
3
  `+t.prev+t.base;return s+B.call(e,","+s)+`
4
- `+t.prev}function he(e,t){var s=ct(e),a=[];if(s){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=H(e,o)?t(e[o],e):""}var n=typeof at=="function"?at(e):[],p;if(te){p={};for(var i=0;i<n.length;i++)p["$"+n[i]]=n[i]}for(var r in e)H(e,r)&&(s&&String(Number(r))===r&&r<e.length||te&&p["$"+r]instanceof Symbol||(Rr.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof at=="function")for(var d=0;d<n.length;d++)qr.call(e,n[d])&&a.push("["+t(n[d])+"]: "+t(e[n[d]],e));return a}});var Pr=b((hu,vr)=>{"use strict";var yt=Re(),re=rr(),ac=kr(),nc=yt("%TypeError%"),xe=yt("%WeakMap%",!0),Ie=yt("%Map%",!0),oc=re("WeakMap.prototype.get",!0),ic=re("WeakMap.prototype.set",!0),pc=re("WeakMap.prototype.has",!0),cc=re("Map.prototype.get",!0),uc=re("Map.prototype.set",!0),dc=re("Map.prototype.has",!0),mt=function(e,t){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===t)return s.next=a.next,a.next=e.next,e.next=a,a},lc=function(e,t){var s=mt(e,t);return s&&s.value},gc=function(e,t,s){var a=mt(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},yc=function(e,t){return!!mt(e,t)};vr.exports=function(){var t,s,a,o={assert:function(n){if(!o.has(n))throw new nc("Side channel does not contain "+ac(n))},get:function(n){if(xe&&n&&(typeof n=="object"||typeof n=="function")){if(t)return oc(t,n)}else if(Ie){if(s)return cc(s,n)}else if(a)return lc(a,n)},has:function(n){if(xe&&n&&(typeof n=="object"||typeof n=="function")){if(t)return pc(t,n)}else if(Ie){if(s)return dc(s,n)}else if(a)return yc(a,n);return!1},set:function(n,p){xe&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new xe),ic(t,n,p)):Ie?(s||(s=new Ie),uc(s,n,p)):(a||(a={key:{},next:null}),gc(a,n,p))}};return o}});var ke=b((fu,Ar)=>{"use strict";var mc=String.prototype.replace,Rc=/%20/g,Rt={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ar.exports={default:Rt.RFC3986,formatters:{RFC1738:function(e){return mc.call(e,Rc,"+")},RFC3986:function(e){return String(e)}},RFC1738:Rt.RFC1738,RFC3986:Rt.RFC3986}});var ht=b((bu,Tr)=>{"use strict";var qc=ke(),qt=Object.prototype.hasOwnProperty,V=Array.isArray,T=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),hc=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(V(a)){for(var o=[],n=0;n<a.length;++n)typeof a[n]<"u"&&o.push(a[n]);s.obj[s.prop]=o}}},Br=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(a[o]=t[o]);return a},fc=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(V(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!qt.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var o=t;return V(t)&&!V(s)&&(o=Br(t,a)),V(t)&&V(s)?(s.forEach(function(n,p){if(qt.call(t,p)){var i=t[p];i&&typeof i=="object"&&n&&typeof n=="object"?t[p]=e(i,n,a):t.push(n)}else t[p]=n}),t):Object.keys(s).reduce(function(n,p){var i=s[p];return qt.call(n,p)?n[p]=e(n[p],i,a):n[p]=i,n},o)},bc=function(t,s){return Object.keys(s).reduce(function(a,o){return a[o]=s[o],a},t)},xc=function(e,t,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},Ic=function(t,s,a,o,n){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||n===qc.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+T[d];continue}if(d<2048){i=i+(T[192|d>>6]+T[128|d&63]);continue}if(d<55296||d>=57344){i=i+(T[224|d>>12]+T[128|d>>6&63]+T[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=T[240|d>>18]+T[128|d>>12&63]+T[128|d>>6&63]+T[128|d&63]}return i},kc=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],o=0;o<s.length;++o)for(var n=s[o],p=n.obj[n.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],l=p[d];typeof l=="object"&&l!==null&&a.indexOf(l)===-1&&(s.push({obj:p,prop:d}),a.push(l))}return hc(s),t},vc=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Pc=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Ac=function(t,s){return[].concat(t,s)},Bc=function(t,s){if(V(t)){for(var a=[],o=0;o<t.length;o+=1)a.push(s(t[o]));return a}return s(t)};Tr.exports={arrayToObject:Br,assign:bc,combine:Ac,compact:kc,decode:xc,encode:Ic,isBuffer:Pc,isRegExp:vc,maybeMap:Bc,merge:fc}});var Wr=b((xu,Lr)=>{"use strict";var Gr=Pr(),bt=ht(),le=ke(),Tc=Object.prototype.hasOwnProperty,Cr={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},w=Array.isArray,Cc=String.prototype.split,Uc=Array.prototype.push,wr=function(e,t){Uc.apply(e,w(t)?t:[t])},Gc=Date.prototype.toISOString,Ur=le.default,k={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:bt.encode,encodeValuesOnly:!1,format:Ur,formatter:le.formatters[Ur],indices:!1,serializeDate:function(t){return Gc.call(t)},skipNulls:!1,strictNullHandling:!1},wc=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},ft={},Lc=function e(t,s,a,o,n,p,i,r,d,l,m,g,f,h,P,C){for(var R=t,U=C,L=0,K=!1;(U=U.get(ft))!==void 0&&!K;){var ae=U.get(t);if(L+=1,typeof ae<"u"){if(ae===L)throw new RangeError("Cyclic object value");K=!0}typeof U.get(ft)>"u"&&(L=0)}if(typeof r=="function"?R=r(s,R):R instanceof Date?R=m(R):a==="comma"&&w(R)&&(R=bt.maybeMap(R,function(Pe){return Pe instanceof Date?m(Pe):Pe})),R===null){if(n)return i&&!h?i(s,k.encoder,P,"key",g):s;R=""}if(wc(R)||bt.isBuffer(R)){if(i){var ne=h?s:i(s,k.encoder,P,"key",g);if(a==="comma"&&h){for(var E=Cc.call(String(R),","),oe="",W=0;W<E.length;++W)oe+=(W===0?"":",")+f(i(E[W],k.encoder,P,"value",g));return[f(ne)+(o&&w(R)&&E.length===1?"[]":"")+"="+oe]}return[f(ne)+"="+f(i(R,k.encoder,P,"value",g))]}return[f(s)+"="+f(String(R))]}var z=[];if(typeof R>"u")return z;var _;if(a==="comma"&&w(R))_=[{value:R.length>0?R.join(",")||null:void 0}];else if(w(r))_=r;else{var j=Object.keys(R);_=d?j.sort(d):j}for(var A=o&&w(R)&&R.length===1?s+"[]":s,S=0;S<_.length;++S){var G=_[S],ie=typeof G=="object"&&typeof G.value<"u"?G.value:R[G];if(!(p&&ie===null)){var Ei=w(R)?typeof a=="function"?a(A,G):A:A+(l?"."+G:"["+G+"]");C.set(t,L);var kt=Gr();kt.set(ft,C),wr(z,e(ie,Ei,a,o,n,p,i,r,d,l,m,g,f,h,P,kt))}}return z},Wc=function(t){if(!t)return k;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||k.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=le.default;if(typeof t.format<"u"){if(!Tc.call(le.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var o=le.formatters[a],n=k.filter;return(typeof t.filter=="function"||w(t.filter))&&(n=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:k.addQueryPrefix,allowDots:typeof t.allowDots>"u"?k.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:k.charsetSentinel,delimiter:typeof t.delimiter>"u"?k.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:k.encode,encoder:typeof t.encoder=="function"?t.encoder:k.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:k.encodeValuesOnly,filter:n,format:a,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:k.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:k.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:k.strictNullHandling}};Lr.exports=function(e,t){var s=e,a=Wc(t),o,n;typeof a.filter=="function"?(n=a.filter,s=n("",s)):w(a.filter)&&(n=a.filter,o=n);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Cr?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Cr[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(s)),a.sort&&o.sort(a.sort);for(var l=Gr(),m=0;m<o.length;++m){var g=o[m];a.skipNulls&&s[g]===null||wr(p,Lc(s[g],g,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,l))}var f=p.join(a.delimiter),h=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),f.length>0?h+f:""}});var Hr=b((Iu,Qr)=>{"use strict";var se=ht(),xt=Object.prototype.hasOwnProperty,Sc=Array.isArray,I={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:se.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Qc=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Sr=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Hc="utf8=%26%2310003%3B",Dc="utf8=%E2%9C%93",Mc=function(t,s){var a={},o=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,n=s.parameterLimit===1/0?void 0:s.parameterLimit,p=o.split(s.delimiter,n),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Dc?d="utf-8":p[r]===Hc&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],m=l.indexOf("]="),g=m===-1?l.indexOf("="):m+1,f,h;g===-1?(f=s.decoder(l,I.decoder,d,"key"),h=s.strictNullHandling?null:""):(f=s.decoder(l.slice(0,g),I.decoder,d,"key"),h=se.maybeMap(Sr(l.slice(g+1),s),function(P){return s.decoder(P,I.decoder,d,"value")})),h&&s.interpretNumericEntities&&d==="iso-8859-1"&&(h=Qc(h)),l.indexOf("[]=")>-1&&(h=Sc(h)?[h]:h),xt.call(a,f)?a[f]=se.combine(a[f],h):a[f]=h}return a},Ec=function(e,t,s,a){for(var o=a?t:Sr(t,s),n=e.length-1;n>=0;--n){var p,i=e[n];if(i==="[]"&&s.parseArrays)p=[].concat(o);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:o}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=o):r!=="__proto__"&&(p[r]=o)}o=p}return o},_c=function(t,s,a,o){if(t){var n=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(n),d=r?n.slice(0,r.index):n,l=[];if(d){if(!a.plainObjects&&xt.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var m=0;a.depth>0&&(r=i.exec(n))!==null&&m<a.depth;){if(m+=1,!a.plainObjects&&xt.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+n.slice(r.index)+"]"),Ec(l,s,a,o)}},Fc=function(t){if(!t)return I;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof t.charset>"u"?I.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?I.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:I.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:I.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:I.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:I.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:I.comma,decoder:typeof t.decoder=="function"?t.decoder:I.decoder,delimiter:typeof t.delimiter=="string"||se.isRegExp(t.delimiter)?t.delimiter:I.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:I.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:I.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:I.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:I.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:I.strictNullHandling}};Qr.exports=function(e,t){var s=Fc(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Mc(e,s):e,o=s.plainObjects?Object.create(null):{},n=Object.keys(a),p=0;p<n.length;++p){var i=n[p],r=_c(i,a[i],s,typeof e=="string");o=se.merge(o,r,s)}return s.allowSparse===!0?o:se.compact(o)}});var Mr=b((ku,Dr)=>{"use strict";var Oc=Wr(),Nc=Hr(),$c=ke();Dr.exports={formats:$c,parse:Nc,stringify:Oc}});import*as Su from"axios";import Ki from"crypto";var zi={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Be=typeof window<"u"&&typeof window.document<"u"?window.crypto:Ki;Be.getRandomValues||(Be=zi);var q=class extends Error{constructor(s,a,o,n,p,i){super(n);this.code=s;this.description=a;this.type=o;this.message=n;this.error=p;this.id=i;this.id||(this.id=q.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],o=4,n=Array.from(Be.getRandomValues(new Uint8Array(o))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${n}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},ji=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ji=e=>e instanceof q||ji(e)&&e.isApiError===!0,F=class extends q{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Te=class extends q{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},Ce=class extends q{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},Ue=class extends q{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},Ge=class extends q{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},we=class extends q{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},Le=class extends q{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},We=class extends q{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Se=class extends q{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},Qe=class extends q{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},He=class extends q{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},De=class extends q{constructor(t,s,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,a)}},Me=class extends q{constructor(t,s,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,a)}},Ee=class extends q{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},_e=class extends q{constructor(t,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a)}},Fe=class extends q{constructor(t,s,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,a)}},Oe=class extends q{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},Ne=class extends q{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},$e=class extends q{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},Ve=class extends q{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Ke=class extends q{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},ze=class extends q{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},je=class extends q{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},Je=class extends q{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},Yi={Unknown:F,Internal:Te,Unauthorized:Ce,Forbidden:Ue,PayloadTooLarge:Ge,InvalidPayload:we,UnsupportedMediaType:Le,MethodNotFound:We,ResourceNotFound:Se,InvalidJsonSchema:Qe,InvalidDataFormat:He,InvalidIdentifier:De,RelationConflict:Me,ReferenceConstraint:Ee,ResourceLockedConflict:_e,ReferenceNotFound:Fe,InvalidQuery:Oe,Runtime:Ne,AlreadyExists:$e,RateLimited:Ve,PaymentRequired:Ke,QuotaExceeded:ze,LimitExceeded:je,BreakingChanges:Je},Ye=e=>Ji(e)?e:e instanceof Error?new F(e.message,e):typeof e=="string"?new F(e):Zi(e);function Zi(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=Yi[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new F(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new F("An invalid error occurred: "+JSON.stringify(e))}var Q=class extends Error{constructor(s,a,o){super(s);this.innerError=a;this.file=o;this.name="FileUploadError"}};var Hi=Ae(Pt()),Di=Ae(At());import It from"axios";import{isNode as Si}from"browser-or-node";import{isBrowser as Bt,isNode as ep}from"browser-or-node";var tp="https://api.botpress.cloud",rp=6e4,sp="BP_API_URL",ap="BP_BOT_ID",np="BP_INTEGRATION_ID",op="BP_WORKSPACE_ID",ip="BP_TOKEN";function Tt(e){let t=pp(e),s={};t.workspaceId&&(s["x-workspace-id"]=t.workspaceId),t.botId&&(s["x-bot-id"]=t.botId),t.integrationId&&(s["x-integration-id"]=t.integrationId),t.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let a=t.apiUrl??tp,o=t.timeout??rp;return{apiUrl:a,timeout:o,withCredentials:Bt,headers:s}}function pp(e){return Bt?e:ep?cp(e):e}function cp(e){let t={...e,apiUrl:e.apiUrl??process.env[sp],botId:e.botId??process.env[ap],integrationId:e.integrationId??process.env[np],workspaceId:e.workspaceId??process.env[op]},s=t.token??process.env[ip];return s&&(t.token=s),t}import Kc from"axios";var Er=Ae(Mr()),Vc=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:a,headers:o,body:n}=e,p=Object.entries(o).filter(Vc),i=Object.fromEntries(p),r=Er.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:n}};var _r=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Or=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $r=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var Kr=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var jr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Yr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ts=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var ss=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ns=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var is=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var cs=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ds=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var gs=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var ms=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var qs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var xs=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var ks=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ps=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Bs=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cs=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Gs=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Ls=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Ss=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hs=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Ms=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var _s=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Os=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var $s=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Ks=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var js=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ys=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var Xs=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var ta=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sa=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var na=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ia=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ca=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var da=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var ga=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ma=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var qa=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var xa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ka=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Pa=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ba=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ca=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Ga=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}});var La=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Sa=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Ha=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ma=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _a=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var Oa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var $a=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Ka=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ja=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Ya=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Xa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var tn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var sn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var nn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var pn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var un=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var ln=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var yn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Rn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var hn=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var bn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var In=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var An=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Tn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Un=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var wn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Wn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var Qn=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Dn=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var En=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Fn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Vn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var zn=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Jn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var eo=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var ro=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var ao=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var oo=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var po=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,interfaces:e.interfaces,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var uo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var go=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var mo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var fo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var xo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ko=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,events:e.events,actions:e.actions,entities:e.entities}});var Po=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Co=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{events:e.events,actions:e.actions,entities:e.entities}});var Go=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lo=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var So=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ho=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Mo=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var _o=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Oo=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var $o=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Ko=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt}});var jo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yo=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Xo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ti=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var si=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit},params:{},body:{}});var ni=e=>({path:`/v1/files/${encodeURIComponent(e.fileId)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{fileId:e.fileId},body:{}});var ii=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var ci=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var di=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var gi=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var mi=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var qi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var fi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var xi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ki=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Pi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Bi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ci=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Gi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Li=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var ve=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:o,body:n}=_r(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Or(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listConversations=async t=>{let{path:s,headers:a,query:o,body:n}=$r(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Kr(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=jr(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Yr(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listParticipants=async t=>{let{path:s,headers:a,query:o,body:n}=Xr(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};addParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ts(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ss(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ns(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createEvent=async t=>{let{path:s,headers:a,query:o,body:n}=is(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getEvent=async t=>{let{path:s,headers:a,query:o,body:n}=cs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listEvents=async t=>{let{path:s,headers:a,query:o,body:n}=ds(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createMessage=async t=>{let{path:s,headers:a,query:o,body:n}=gs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=ms(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMessage=async t=>{let{path:s,headers:a,query:o,body:n}=qs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=fs(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listMessages=async t=>{let{path:s,headers:a,query:o,body:n}=xs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:o,body:n}=ks(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ps(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUser=async t=>{let{path:s,headers:a,query:o,body:n}=Bs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsers=async t=>{let{path:s,headers:a,query:o,body:n}=Cs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Gs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ls(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ss(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getState=async t=>{let{path:s,headers:a,query:o,body:n}=Hs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setState=async t=>{let{path:s,headers:a,query:o,body:n}=Ms(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:o,body:n}=_s(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};patchState=async t=>{let{path:s,headers:a,query:o,body:n}=Os(t),i=(this.props.toAxiosRequest??c)({method:"patch",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};callAction=async t=>{let{path:s,headers:a,query:o,body:n}=$s(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ks(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTask=async t=>{let{path:s,headers:a,query:o,body:n}=js(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTask=async t=>{let{path:s,headers:a,query:o,body:n}=Ys(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTask=async t=>{let{path:s,headers:a,query:o,body:n}=Xs(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTask=async t=>{let{path:s,headers:a,query:o,body:n}=ta(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTasks=async t=>{let{path:s,headers:a,query:o,body:n}=sa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=na(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};runVrl=async t=>{let{path:s,headers:a,query:o,body:n}=ia(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccount=async t=>{let{path:s,headers:a,query:o,body:n}=ca(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateAccount=async t=>{let{path:s,headers:a,query:o,body:n}=da(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:o,body:n}=ga(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=ma(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=qa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=fa(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=xa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=ka(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:o,body:n}=Pa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ba(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ca(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ga(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};transferBot=async t=>{let{path:s,headers:a,query:o,body:n}=La(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBots=async t=>{let{path:s,headers:a,query:o,body:n}=Sa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ha(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ma(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:o,body:n}=_a(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:o,body:n}=Oa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=$a(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Ka(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:o,body:n}=ja(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Ya(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:o,body:n}=Xa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:o,body:n}=tn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:o,body:n}=sn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:o,body:n}=nn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:o,body:n}=pn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:o,body:n}=un(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=ln(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:o,body:n}=yn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=Rn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=hn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=bn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=In(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:o,body:n}=vn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:o,body:n}=An(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:o,body:n}=Tn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:o,body:n}=Un(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:o,body:n}=wn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Wn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:o,body:n}=Qn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=Dn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=En(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Fn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:o,body:n}=Nn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:o,body:n}=Vn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=zn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Jn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Zn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=eo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:o,body:n}=ro(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=ao(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=oo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=po(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=uo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=go(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=mo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:o,body:n}=qo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:o,body:n}=fo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=xo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createInterface=async t=>{let{path:s,headers:a,query:o,body:n}=ko(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterface=async t=>{let{path:s,headers:a,query:o,body:n}=Po(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:o,body:n}=Bo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateInterface=async t=>{let{path:s,headers:a,query:o,body:n}=Co(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:o,body:n}=Go(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:o,body:n}=Lo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUsage=async t=>{let{path:s,headers:a,query:o,body:n}=So(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:o,body:n}=Ho(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:o,body:n}=Mo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:o,body:n}=_o(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listActivities=async t=>{let{path:s,headers:a,query:o,body:n}=Oo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};introspect=async t=>{let{path:s,headers:a,query:o,body:n}=$o(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertFile=async t=>{let{path:s,headers:a,query:o,body:n}=Ko(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteFile=async t=>{let{path:s,headers:a,query:o,body:n}=jo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Yo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getFile=async t=>{let{path:s,headers:a,query:o,body:n}=Xo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:o,body:n}=ti(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};searchFiles=async t=>{let{path:s,headers:a,query:o,body:n}=si(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:o,body:n}=ni(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTables=async t=>{let{path:s,headers:a,query:o,body:n}=ii(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTable=async t=>{let{path:s,headers:a,query:o,body:n}=ci(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:o,body:n}=di(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTable=async t=>{let{path:s,headers:a,query:o,body:n}=gi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:o,body:n}=mi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTable=async t=>{let{path:s,headers:a,query:o,body:n}=qi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:o,body:n}=fi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTable=async t=>{let{path:s,headers:a,query:o,body:n}=xi(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTableRow=async t=>{let{path:s,headers:a,query:o,body:n}=ki(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};findTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Pi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Bi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Ci(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Gi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Li(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})}};function u(e){return Kc.isAxiosError(e)&&e.response?.data?Ye(e.response.data):Ye(e)}var Mi=100*1024*1024,jc=Mi,Jc=Mi,Qi=class extends ve{config;constructor(t={}){let s=Tt(t),{apiUrl:a,headers:o,withCredentials:n,timeout:p}=s,i=It.create({baseURL:a,headers:o,withCredentials:n,timeout:p,maxBodyLength:jc,maxContentLength:Jc,httpAgent:Si?new Hi.default.Agent({keepAlive:!0}):void 0,httpsAgent:Si?new Di.default.Agent({keepAlive:!0}):void 0});super(i),this.config=s}uploadFile=async({key:t,index:s,tags:a,contentType:o,accessPolicies:n,content:p,url:i})=>{if(i&&p)throw new Q("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await It.get(i,{responseType:"arraybuffer"}).then(m=>m.data).catch(m=>{throw new Q(`Failed to download file from provided URL: ${m.message}`,m)})),!p)throw new Q("No content was provided for the file");let r,d;if(typeof p=="string"){let g=new TextEncoder().encode(p);r=g,d=g.byteLength}else if(p instanceof Uint8Array)r=p,d=r.byteLength;else if(p instanceof ArrayBuffer)r=p,d=r.byteLength;else if(p instanceof Blob)r=p,d=p.size;else throw new Q("The provided content is not supported");let{file:l}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:n,contentType:o,size:d});try{await It.put(l.uploadUrl,r,{maxBodyLength:1/0,headers:{"Content-Type":l.contentType}})}catch(m){throw new Q(`Failed to upload file: ${m.message}`,m,l)}return{file:l}}};export{$e as AlreadyExistsError,Je as BreakingChangesError,Qi as Client,Ue as ForbiddenError,Te as InternalError,He as InvalidDataFormatError,De as InvalidIdentifierError,Qe as InvalidJsonSchemaError,we as InvalidPayloadError,Oe as InvalidQueryError,je as LimitExceededError,We as MethodNotFoundError,Ge as PayloadTooLargeError,Ke as PaymentRequiredError,ze as QuotaExceededError,Ve as RateLimitedError,Ee as ReferenceConstraintError,Fe as ReferenceNotFoundError,Me as RelationConflictError,_e as ResourceLockedConflictError,Se as ResourceNotFoundError,Ne as RuntimeError,Ce as UnauthorizedError,F as UnknownError,Le as UnsupportedMediaTypeError,Q as UploadFileError,Su as axios,Ye as errorFrom,Ji as isApiError};
4
+ `+t.prev}function he(e,t){var s=ct(e),a=[];if(s){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=H(e,o)?t(e[o],e):""}var n=typeof at=="function"?at(e):[],p;if(te){p={};for(var i=0;i<n.length;i++)p["$"+n[i]]=n[i]}for(var r in e)H(e,r)&&(s&&String(Number(r))===r&&r<e.length||te&&p["$"+r]instanceof Symbol||(Rr.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof at=="function")for(var d=0;d<n.length;d++)qr.call(e,n[d])&&a.push("["+t(n[d])+"]: "+t(e[n[d]],e));return a}});var Pr=b((bu,vr)=>{"use strict";var yt=Re(),re=rr(),oc=kr(),ic=yt("%TypeError%"),xe=yt("%WeakMap%",!0),Ie=yt("%Map%",!0),pc=re("WeakMap.prototype.get",!0),cc=re("WeakMap.prototype.set",!0),uc=re("WeakMap.prototype.has",!0),dc=re("Map.prototype.get",!0),lc=re("Map.prototype.set",!0),gc=re("Map.prototype.has",!0),mt=function(e,t){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===t)return s.next=a.next,a.next=e.next,e.next=a,a},yc=function(e,t){var s=mt(e,t);return s&&s.value},mc=function(e,t,s){var a=mt(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Rc=function(e,t){return!!mt(e,t)};vr.exports=function(){var t,s,a,o={assert:function(n){if(!o.has(n))throw new ic("Side channel does not contain "+oc(n))},get:function(n){if(xe&&n&&(typeof n=="object"||typeof n=="function")){if(t)return pc(t,n)}else if(Ie){if(s)return dc(s,n)}else if(a)return yc(a,n)},has:function(n){if(xe&&n&&(typeof n=="object"||typeof n=="function")){if(t)return uc(t,n)}else if(Ie){if(s)return gc(s,n)}else if(a)return Rc(a,n);return!1},set:function(n,p){xe&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new xe),cc(t,n,p)):Ie?(s||(s=new Ie),lc(s,n,p)):(a||(a={key:{},next:null}),mc(a,n,p))}};return o}});var ke=b((xu,Ar)=>{"use strict";var qc=String.prototype.replace,hc=/%20/g,Rt={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ar.exports={default:Rt.RFC3986,formatters:{RFC1738:function(e){return qc.call(e,hc,"+")},RFC3986:function(e){return String(e)}},RFC1738:Rt.RFC1738,RFC3986:Rt.RFC3986}});var ht=b((Iu,Tr)=>{"use strict";var fc=ke(),qt=Object.prototype.hasOwnProperty,$=Array.isArray,T=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),bc=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if($(a)){for(var o=[],n=0;n<a.length;++n)typeof a[n]<"u"&&o.push(a[n]);s.obj[s.prop]=o}}},Br=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(a[o]=t[o]);return a},xc=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if($(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!qt.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var o=t;return $(t)&&!$(s)&&(o=Br(t,a)),$(t)&&$(s)?(s.forEach(function(n,p){if(qt.call(t,p)){var i=t[p];i&&typeof i=="object"&&n&&typeof n=="object"?t[p]=e(i,n,a):t.push(n)}else t[p]=n}),t):Object.keys(s).reduce(function(n,p){var i=s[p];return qt.call(n,p)?n[p]=e(n[p],i,a):n[p]=i,n},o)},Ic=function(t,s){return Object.keys(s).reduce(function(a,o){return a[o]=s[o],a},t)},kc=function(e,t,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},vc=function(t,s,a,o,n){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||n===fc.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+T[d];continue}if(d<2048){i=i+(T[192|d>>6]+T[128|d&63]);continue}if(d<55296||d>=57344){i=i+(T[224|d>>12]+T[128|d>>6&63]+T[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=T[240|d>>18]+T[128|d>>12&63]+T[128|d>>6&63]+T[128|d&63]}return i},Pc=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],o=0;o<s.length;++o)for(var n=s[o],p=n.obj[n.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],g=p[d];typeof g=="object"&&g!==null&&a.indexOf(g)===-1&&(s.push({obj:p,prop:d}),a.push(g))}return bc(s),t},Ac=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Bc=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Tc=function(t,s){return[].concat(t,s)},Cc=function(t,s){if($(t)){for(var a=[],o=0;o<t.length;o+=1)a.push(s(t[o]));return a}return s(t)};Tr.exports={arrayToObject:Br,assign:Ic,combine:Tc,compact:Pc,decode:kc,encode:vc,isBuffer:Bc,isRegExp:Ac,maybeMap:Cc,merge:xc}});var Wr=b((ku,Lr)=>{"use strict";var Gr=Pr(),bt=ht(),le=ke(),Uc=Object.prototype.hasOwnProperty,Cr={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},w=Array.isArray,Gc=String.prototype.split,wc=Array.prototype.push,wr=function(e,t){wc.apply(e,w(t)?t:[t])},Lc=Date.prototype.toISOString,Ur=le.default,k={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:bt.encode,encodeValuesOnly:!1,format:Ur,formatter:le.formatters[Ur],indices:!1,serializeDate:function(t){return Lc.call(t)},skipNulls:!1,strictNullHandling:!1},Wc=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},ft={},Sc=function e(t,s,a,o,n,p,i,r,d,g,m,l,h,f,P,C){for(var R=t,U=C,L=0,K=!1;(U=U.get(ft))!==void 0&&!K;){var ae=U.get(t);if(L+=1,typeof ae<"u"){if(ae===L)throw new RangeError("Cyclic object value");K=!0}typeof U.get(ft)>"u"&&(L=0)}if(typeof r=="function"?R=r(s,R):R instanceof Date?R=m(R):a==="comma"&&w(R)&&(R=bt.maybeMap(R,function(Pe){return Pe instanceof Date?m(Pe):Pe})),R===null){if(n)return i&&!f?i(s,k.encoder,P,"key",l):s;R=""}if(Wc(R)||bt.isBuffer(R)){if(i){var ne=f?s:i(s,k.encoder,P,"key",l);if(a==="comma"&&f){for(var E=Gc.call(String(R),","),oe="",W=0;W<E.length;++W)oe+=(W===0?"":",")+h(i(E[W],k.encoder,P,"value",l));return[h(ne)+(o&&w(R)&&E.length===1?"[]":"")+"="+oe]}return[h(ne)+"="+h(i(R,k.encoder,P,"value",l))]}return[h(s)+"="+h(String(R))]}var z=[];if(typeof R>"u")return z;var _;if(a==="comma"&&w(R))_=[{value:R.length>0?R.join(",")||null:void 0}];else if(w(r))_=r;else{var j=Object.keys(R);_=d?j.sort(d):j}for(var A=o&&w(R)&&R.length===1?s+"[]":s,S=0;S<_.length;++S){var G=_[S],ie=typeof G=="object"&&typeof G.value<"u"?G.value:R[G];if(!(p&&ie===null)){var Fi=w(R)?typeof a=="function"?a(A,G):A:A+(g?"."+G:"["+G+"]");C.set(t,L);var kt=Gr();kt.set(ft,C),wr(z,e(ie,Fi,a,o,n,p,i,r,d,g,m,l,h,f,P,kt))}}return z},Qc=function(t){if(!t)return k;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||k.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=le.default;if(typeof t.format<"u"){if(!Uc.call(le.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var o=le.formatters[a],n=k.filter;return(typeof t.filter=="function"||w(t.filter))&&(n=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:k.addQueryPrefix,allowDots:typeof t.allowDots>"u"?k.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:k.charsetSentinel,delimiter:typeof t.delimiter>"u"?k.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:k.encode,encoder:typeof t.encoder=="function"?t.encoder:k.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:k.encodeValuesOnly,filter:n,format:a,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:k.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:k.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:k.strictNullHandling}};Lr.exports=function(e,t){var s=e,a=Qc(t),o,n;typeof a.filter=="function"?(n=a.filter,s=n("",s)):w(a.filter)&&(n=a.filter,o=n);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Cr?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Cr[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(s)),a.sort&&o.sort(a.sort);for(var g=Gr(),m=0;m<o.length;++m){var l=o[m];a.skipNulls&&s[l]===null||wr(p,Sc(s[l],l,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,g))}var h=p.join(a.delimiter),f=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),h.length>0?f+h:""}});var Hr=b((vu,Qr)=>{"use strict";var se=ht(),xt=Object.prototype.hasOwnProperty,Hc=Array.isArray,I={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:se.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Dc=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Sr=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Mc="utf8=%26%2310003%3B",Ec="utf8=%E2%9C%93",_c=function(t,s){var a={},o=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,n=s.parameterLimit===1/0?void 0:s.parameterLimit,p=o.split(s.delimiter,n),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Ec?d="utf-8":p[r]===Mc&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var g=p[r],m=g.indexOf("]="),l=m===-1?g.indexOf("="):m+1,h,f;l===-1?(h=s.decoder(g,I.decoder,d,"key"),f=s.strictNullHandling?null:""):(h=s.decoder(g.slice(0,l),I.decoder,d,"key"),f=se.maybeMap(Sr(g.slice(l+1),s),function(P){return s.decoder(P,I.decoder,d,"value")})),f&&s.interpretNumericEntities&&d==="iso-8859-1"&&(f=Dc(f)),g.indexOf("[]=")>-1&&(f=Hc(f)?[f]:f),xt.call(a,h)?a[h]=se.combine(a[h],f):a[h]=f}return a},Fc=function(e,t,s,a){for(var o=a?t:Sr(t,s),n=e.length-1;n>=0;--n){var p,i=e[n];if(i==="[]"&&s.parseArrays)p=[].concat(o);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:o}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=o):r!=="__proto__"&&(p[r]=o)}o=p}return o},Oc=function(t,s,a,o){if(t){var n=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(n),d=r?n.slice(0,r.index):n,g=[];if(d){if(!a.plainObjects&&xt.call(Object.prototype,d)&&!a.allowPrototypes)return;g.push(d)}for(var m=0;a.depth>0&&(r=i.exec(n))!==null&&m<a.depth;){if(m+=1,!a.plainObjects&&xt.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;g.push(r[1])}return r&&g.push("["+n.slice(r.index)+"]"),Fc(g,s,a,o)}},Nc=function(t){if(!t)return I;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof t.charset>"u"?I.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?I.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:I.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:I.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:I.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:I.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:I.comma,decoder:typeof t.decoder=="function"?t.decoder:I.decoder,delimiter:typeof t.delimiter=="string"||se.isRegExp(t.delimiter)?t.delimiter:I.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:I.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:I.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:I.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:I.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:I.strictNullHandling}};Qr.exports=function(e,t){var s=Nc(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?_c(e,s):e,o=s.plainObjects?Object.create(null):{},n=Object.keys(a),p=0;p<n.length;++p){var i=n[p],r=Oc(i,a[i],s,typeof e=="string");o=se.merge(o,r,s)}return s.allowSparse===!0?o:se.compact(o)}});var Mr=b((Pu,Dr)=>{"use strict";var Vc=Wr(),$c=Hr(),Kc=ke();Dr.exports={formats:Kc,parse:$c,stringify:Vc}});import*as Hu from"axios";import ji from"crypto";var Ji={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Be=typeof window<"u"&&typeof window.document<"u"?window.crypto:ji;Be.getRandomValues||(Be=Ji);var q=class extends Error{constructor(s,a,o,n,p,i){super(n);this.code=s;this.description=a;this.type=o;this.message=n;this.error=p;this.id=i;this.id||(this.id=q.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],o=4,n=Array.from(Be.getRandomValues(new Uint8Array(o))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${n}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Yi=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Zi=e=>e instanceof q||Yi(e)&&e.isApiError===!0,F=class extends q{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Te=class extends q{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},Ce=class extends q{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},Ue=class extends q{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},Ge=class extends q{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},we=class extends q{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},Le=class extends q{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},We=class extends q{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Se=class extends q{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},Qe=class extends q{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},He=class extends q{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},De=class extends q{constructor(t,s,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,a)}},Me=class extends q{constructor(t,s,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,a)}},Ee=class extends q{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},_e=class extends q{constructor(t,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a)}},Fe=class extends q{constructor(t,s,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,a)}},Oe=class extends q{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},Ne=class extends q{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},Ve=class extends q{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},$e=class extends q{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Ke=class extends q{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},ze=class extends q{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},je=class extends q{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},Je=class extends q{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},Xi={Unknown:F,Internal:Te,Unauthorized:Ce,Forbidden:Ue,PayloadTooLarge:Ge,InvalidPayload:we,UnsupportedMediaType:Le,MethodNotFound:We,ResourceNotFound:Se,InvalidJsonSchema:Qe,InvalidDataFormat:He,InvalidIdentifier:De,RelationConflict:Me,ReferenceConstraint:Ee,ResourceLockedConflict:_e,ReferenceNotFound:Fe,InvalidQuery:Oe,Runtime:Ne,AlreadyExists:Ve,RateLimited:$e,PaymentRequired:Ke,QuotaExceeded:ze,LimitExceeded:je,BreakingChanges:Je},Ye=e=>Zi(e)?e:e instanceof Error?new F(e.message,e):typeof e=="string"?new F(e):ep(e);function ep(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=Xi[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new F(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new F("An invalid error occurred: "+JSON.stringify(e))}var Q=class extends Error{constructor(s,a,o){super(s);this.innerError=a;this.file=o;this.name="FileUploadError"}};var Mi=Ae(Pt()),Ei=Ae(At());import It from"axios";import{isNode as Hi}from"browser-or-node";import{isBrowser as Bt,isNode as rp}from"browser-or-node";var sp="https://api.botpress.cloud",ap=6e4,np="BP_API_URL",op="BP_BOT_ID",ip="BP_INTEGRATION_ID",pp="BP_WORKSPACE_ID",cp="BP_TOKEN";function Tt(e){let t=up(e),s={};t.workspaceId&&(s["x-workspace-id"]=t.workspaceId),t.botId&&(s["x-bot-id"]=t.botId),t.integrationId&&(s["x-integration-id"]=t.integrationId),t.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let a=t.apiUrl??sp,o=t.timeout??ap;return{apiUrl:a,timeout:o,withCredentials:Bt,headers:s}}function up(e){return Bt?e:rp?dp(e):e}function dp(e){let t={...e,apiUrl:e.apiUrl??process.env[np],botId:e.botId??process.env[op],integrationId:e.integrationId??process.env[ip],workspaceId:e.workspaceId??process.env[pp]},s=t.token??process.env[cp];return s&&(t.token=s),t}import jc from"axios";var Er=Ae(Mr()),zc=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:a,headers:o,body:n}=e,p=Object.entries(o).filter(zc),i=Object.fromEntries(p),r=Er.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:n}};var _r=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Or=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vr=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var Kr=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var jr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Yr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ts=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var ss=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ns=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var is=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var cs=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ds=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var gs=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var ms=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var qs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var xs=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var ks=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ps=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Bs=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cs=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Gs=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Ls=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Ss=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hs=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Ms=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var _s=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Os=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var Vs=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Ks=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var js=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ys=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var Xs=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var ta=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sa=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var na=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ia=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ca=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var da=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var ga=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ma=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var qa=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var xa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ka=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Pa=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ba=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ca=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Ga=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}});var La=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Sa=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Ha=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ma=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _a=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var Oa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Va=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Ka=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ja=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Ya=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Xa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var tn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var sn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var nn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var pn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var un=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var ln=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var yn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Rn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var hn=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var bn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var In=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var An=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Tn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Un=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var wn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Wn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var Qn=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Dn=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var En=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Fn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var $n=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var zn=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Jn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var eo=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var ro=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var ao=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var oo=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var po=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,interfaces:e.interfaces,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var uo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var go=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var mo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var fo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var xo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ko=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Po=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,events:e.events,actions:e.actions,entities:e.entities}});var Bo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Co=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Go=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{events:e.events,actions:e.actions,entities:e.entities}});var Lo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var So=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ho=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Mo=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var _o=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Oo=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Vo=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Ko=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var jo=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt}});var Yo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xo=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var ti=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var si=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var ni=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit},params:{},body:{}});var ii=e=>({path:`/v1/files/${encodeURIComponent(e.fileId)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{fileId:e.fileId},body:{}});var ci=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var di=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var gi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var mi=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var qi=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var fi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var xi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var ki=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Pi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Bi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Ci=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Gi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Li=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Si=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var ve=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:o,body:n}=_r(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Or(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listConversations=async t=>{let{path:s,headers:a,query:o,body:n}=Vr(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Kr(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=jr(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Yr(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listParticipants=async t=>{let{path:s,headers:a,query:o,body:n}=Xr(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};addParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ts(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ss(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ns(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createEvent=async t=>{let{path:s,headers:a,query:o,body:n}=is(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getEvent=async t=>{let{path:s,headers:a,query:o,body:n}=cs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listEvents=async t=>{let{path:s,headers:a,query:o,body:n}=ds(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createMessage=async t=>{let{path:s,headers:a,query:o,body:n}=gs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=ms(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMessage=async t=>{let{path:s,headers:a,query:o,body:n}=qs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=fs(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listMessages=async t=>{let{path:s,headers:a,query:o,body:n}=xs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:o,body:n}=ks(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ps(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUser=async t=>{let{path:s,headers:a,query:o,body:n}=Bs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsers=async t=>{let{path:s,headers:a,query:o,body:n}=Cs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Gs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ls(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ss(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getState=async t=>{let{path:s,headers:a,query:o,body:n}=Hs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setState=async t=>{let{path:s,headers:a,query:o,body:n}=Ms(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:o,body:n}=_s(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};patchState=async t=>{let{path:s,headers:a,query:o,body:n}=Os(t),i=(this.props.toAxiosRequest??c)({method:"patch",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};callAction=async t=>{let{path:s,headers:a,query:o,body:n}=Vs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ks(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTask=async t=>{let{path:s,headers:a,query:o,body:n}=js(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTask=async t=>{let{path:s,headers:a,query:o,body:n}=Ys(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTask=async t=>{let{path:s,headers:a,query:o,body:n}=Xs(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTask=async t=>{let{path:s,headers:a,query:o,body:n}=ta(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTasks=async t=>{let{path:s,headers:a,query:o,body:n}=sa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=na(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};runVrl=async t=>{let{path:s,headers:a,query:o,body:n}=ia(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccount=async t=>{let{path:s,headers:a,query:o,body:n}=ca(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateAccount=async t=>{let{path:s,headers:a,query:o,body:n}=da(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:o,body:n}=ga(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=ma(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=qa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=fa(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=xa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=ka(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:o,body:n}=Pa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ba(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ca(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ga(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};transferBot=async t=>{let{path:s,headers:a,query:o,body:n}=La(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBots=async t=>{let{path:s,headers:a,query:o,body:n}=Sa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ha(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ma(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:o,body:n}=_a(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:o,body:n}=Oa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=Va(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Ka(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:o,body:n}=ja(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Ya(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:o,body:n}=Xa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:o,body:n}=tn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:o,body:n}=sn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:o,body:n}=nn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:o,body:n}=pn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:o,body:n}=un(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=ln(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:o,body:n}=yn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=Rn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=hn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=bn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=In(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:o,body:n}=vn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:o,body:n}=An(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:o,body:n}=Tn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:o,body:n}=Un(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:o,body:n}=wn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Wn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:o,body:n}=Qn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=Dn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=En(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Fn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:o,body:n}=Nn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:o,body:n}=$n(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=zn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Jn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Zn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=eo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:o,body:n}=ro(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=ao(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=oo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=po(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=uo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=go(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=mo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:o,body:n}=qo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:o,body:n}=fo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=xo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:o,body:n}=ko(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createInterface=async t=>{let{path:s,headers:a,query:o,body:n}=Po(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterface=async t=>{let{path:s,headers:a,query:o,body:n}=Bo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:o,body:n}=Co(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateInterface=async t=>{let{path:s,headers:a,query:o,body:n}=Go(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:o,body:n}=Lo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:o,body:n}=So(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUsage=async t=>{let{path:s,headers:a,query:o,body:n}=Ho(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:o,body:n}=Mo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:o,body:n}=_o(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:o,body:n}=Oo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listActivities=async t=>{let{path:s,headers:a,query:o,body:n}=Vo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};introspect=async t=>{let{path:s,headers:a,query:o,body:n}=Ko(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertFile=async t=>{let{path:s,headers:a,query:o,body:n}=jo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteFile=async t=>{let{path:s,headers:a,query:o,body:n}=Yo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Xo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getFile=async t=>{let{path:s,headers:a,query:o,body:n}=ti(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:o,body:n}=si(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};searchFiles=async t=>{let{path:s,headers:a,query:o,body:n}=ni(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:o,body:n}=ii(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTables=async t=>{let{path:s,headers:a,query:o,body:n}=ci(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTable=async t=>{let{path:s,headers:a,query:o,body:n}=di(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:o,body:n}=gi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTable=async t=>{let{path:s,headers:a,query:o,body:n}=mi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:o,body:n}=qi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTable=async t=>{let{path:s,headers:a,query:o,body:n}=fi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:o,body:n}=xi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTable=async t=>{let{path:s,headers:a,query:o,body:n}=ki(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTableRow=async t=>{let{path:s,headers:a,query:o,body:n}=Pi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};findTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Bi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Ci(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Gi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Li(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Si(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})}};function u(e){return jc.isAxiosError(e)&&e.response?.data?Ye(e.response.data):Ye(e)}var _i=100*1024*1024,Yc=_i,Zc=_i,Di=class extends ve{config;constructor(t={}){let s=Tt(t),{apiUrl:a,headers:o,withCredentials:n,timeout:p}=s,i=It.create({baseURL:a,headers:o,withCredentials:n,timeout:p,maxBodyLength:Yc,maxContentLength:Zc,httpAgent:Hi?new Mi.default.Agent({keepAlive:!0}):void 0,httpsAgent:Hi?new Ei.default.Agent({keepAlive:!0}):void 0});super(i),this.config=s}uploadFile=async({key:t,index:s,tags:a,contentType:o,accessPolicies:n,content:p,url:i,expiresAt:r})=>{if(i&&p)throw new Q("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await It.get(i,{responseType:"arraybuffer"}).then(l=>l.data).catch(l=>{throw new Q(`Failed to download file from provided URL: ${l.message}`,l)})),!p)throw new Q("No content was provided for the file");let d,g;if(typeof p=="string"){let h=new TextEncoder().encode(p);d=h,g=h.byteLength}else if(p instanceof Uint8Array)d=p,g=d.byteLength;else if(p instanceof ArrayBuffer)d=p,g=d.byteLength;else if(p instanceof Blob)d=p,g=p.size;else throw new Q("The provided content is not supported");let{file:m}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:n,contentType:o,size:g,expiresAt:r});try{await It.put(m.uploadUrl,d,{maxBodyLength:1/0,headers:{"Content-Type":m.contentType}})}catch(l){throw new Q(`Failed to upload file: ${l.message}`,l,m)}return{file:m}}};export{Ve as AlreadyExistsError,Je as BreakingChangesError,Di as Client,Ue as ForbiddenError,Te as InternalError,He as InvalidDataFormatError,De as InvalidIdentifierError,Qe as InvalidJsonSchemaError,we as InvalidPayloadError,Oe as InvalidQueryError,je as LimitExceededError,We as MethodNotFoundError,Ge as PayloadTooLargeError,Ke as PaymentRequiredError,ze as QuotaExceededError,$e as RateLimitedError,Ee as ReferenceConstraintError,Fe as ReferenceNotFoundError,Me as RelationConflictError,_e as ResourceLockedConflictError,Se as ResourceNotFoundError,Ne as RuntimeError,Ce as UnauthorizedError,F as UnknownError,Le as UnsupportedMediaTypeError,Q as UploadFileError,Hu as axios,Ye as errorFrom,Zi as isApiError};
5
5
  //# sourceMappingURL=index.mjs.map