vendor: 4,565 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41229],{34098:(e,t,r)=>{"use strict";var o=r(25841),n=r(69356),i=r(74160),a=r(23767);e.exports=a||o.call(i,n)},69356:e=>{"use strict";e.exports=Function.prototype.apply},74160:e=>{"use strict";e.exports=Function.prototype.call},6292:(e,t,r)=>{"use strict";var o=r(25841),n=r(87095),i=r(74160),a=r(34098);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return a(o,i,e)}},23767:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},63156:(e,t,r)=>{"use strict";var o=r(82027),n=r(6292),i=n([o("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n([r]):r}},66016:(e,t,r)=>{"use strict";var o,n=r(6292),i=r(25415);try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!o&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},27051:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},34069:e=>{"use strict";e.exports=EvalError},23385:e=>{"use strict";e.exports=Error},44940:e=>{"use strict";e.exports=RangeError},32044:e=>{"use strict";e.exports=ReferenceError},52828:e=>{"use strict";e.exports=SyntaxError},87095:e=>{"use strict";e.exports=TypeError},68535:e=>{"use strict";e.exports=URIError},72490:e=>{"use strict";e.exports=Object},95349:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,o=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},n=function(e,t){for(var r=[],o=t||0,n=0;o<e.length;o+=1,n+=1)r[n]=e[o];return r},i=function(e,t){for(var r="",o=0;o<e.length;o+=1)r+=e[o],o+1<e.length&&(r+=t);return r};e.exports=function(e){var a,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var l=n(arguments,1),u=r(0,s.length-l.length),c=[],d=0;d<u;d++)c[d]="$"+d;if(a=Function("binder","return function ("+i(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=s.apply(this,o(l,arguments));return Object(t)===t?t:this}return s.apply(e,o(l,arguments))}),s.prototype){var h=function(){};h.prototype=s.prototype,a.prototype=new h,h.prototype=null}return a}},25841:(e,t,r)=>{"use strict";var o=r(95349);e.exports=Function.prototype.bind||o},82027:(e,t,r)=>{"use strict";var o,n=r(72490),i=r(23385),a=r(34069),s=r(44940),l=r(32044),u=r(52828),c=r(87095),d=r(68535),h=r(52364),p=r(39390),m=r(48526),f=r(12),y=r(52006),v=r(79312),P=r(39073),g=Function,T=function(e){try{return g('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=r(25415),E=r(27051),b=function(){throw new c},S=_?function(){try{return arguments.callee,b}catch(e){try{return _(arguments,"callee").get}catch(e){return b}}}():b,O=r(8797)(),x=r(57618),w=r(54674),A=r(34492),R=r(69356),C=r(74160),G={},j="undefined"!=typeof Uint8Array&&x?x(Uint8Array):o,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":O&&x?x([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":G,"%AsyncGenerator%":G,"%AsyncGeneratorFunction%":G,"%AsyncIteratorPrototype%":G,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":G,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":O&&x?x(x([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&x?x(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&x?x(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&x?x(""[Symbol.iterator]()):o,"%Symbol%":O?Symbol:o,"%SyntaxError%":u,"%ThrowTypeError%":S,"%TypedArray%":j,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":R,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":w,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":m,"%Math.min%":f,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":P,"%Reflect.getPrototypeOf%":A};if(x)try{null.error}catch(e){var k=x(x(e));I["%Error.prototype%"]=k}var D=function e(t){var r;if("%AsyncFunction%"===t)r=T("async function () {}");else if("%GeneratorFunction%"===t)r=T("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=T("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&x&&(r=x(n.prototype))}return I[t]=r,r},N={__proto__:null,"%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"]},M=r(25841),F=r(39089),q=M.call(C,Array.prototype.concat),L=M.call(R,Array.prototype.splice),U=M.call(C,String.prototype.replace),H=M.call(C,String.prototype.slice),$=M.call(C,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,W=function(e){var t=H(e,0,1),r=H(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var o=[];return U(e,z,function(e,t,r,n){o[o.length]=r?U(n,B,"$1"):t||e}),o},K=function(e,t){var r,o=e;if(F(N,o)&&(o="%"+(r=N[o])[0]+"%"),F(I,o)){var n=I[o];if(n===G&&(n=D(o)),void 0===n&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(e),o=r.length>0?r[0]:"",n=K("%"+o+"%",t),i=n.name,a=n.value,s=!1,l=n.alias;l&&(o=l[0],L(r,q([0,1],l)));for(var d=1,h=!0;d<r.length;d+=1){var p=r[d],m=H(p,0,1),f=H(p,-1);if(('"'===m||"'"===m||"`"===m||'"'===f||"'"===f||"`"===f)&&m!==f)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),o+="."+p,F(I,i="%"+o+"%"))a=I[i];
1else if(null!=a){if(!(p in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&d+1>=r.length){var y=_(a,p);a=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[p]}else h=F(a,p),a=a[p];h&&!s&&(I[i]=a)}}return a}},54674:(e,t,r)=>{"use strict";var o=r(72490);e.exports=o.getPrototypeOf||null},34492:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},57618:(e,t,r)=>{"use strict";var o=r(34492),n=r(54674),i=r(66016);e.exports=o?function(e){return o(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:i?function(e){return i(e)}:null},5771:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},25415:(e,t,r)=>{"use strict";var o=r(5771);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},8797:(e,t,r)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(21487);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},21487:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},39089:(e,t,r)=>{"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(25841);e.exports=i.call(o,n)},67401:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(12115);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),a=e=>{let t=i(e);return t.charAt(0).toUpperCase()+t.slice(1)},s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let u=(0,o.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:u="",children:c,iconNode:d,...h}=e;return(0,o.createElement)("svg",{ref:t,...l,width:n,height:n,stroke:r,strokeWidth:a?24*Number(i)/Number(n):i,className:s("lucide",u),...h},[...d.map(e=>{let[t,r]=e;return(0,o.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),c=(e,t)=>{let r=(0,o.forwardRef)((r,i)=>{let{className:l,...c}=r;return(0,o.createElement)(u,{ref:i,iconNode:t,className:s("lucide-".concat(n(a(e))),"lucide-".concat(e),l),...c})});return r.displayName=a(e),r}},52364:e=>{"use strict";e.exports=Math.abs},39390:e=>{"use strict";e.exports=Math.floor},51561:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},48526:e=>{"use strict";e.exports=Math.max},12:e=>{"use strict";e.exports=Math.min},52006:e=>{"use strict";e.exports=Math.pow},79312:e=>{"use strict";e.exports=Math.round},39073:(e,t,r)=>{"use strict";var o=r(51561);e.exports=function(e){return o(e)||0===e?e:e<0?-1:1}},60687:(e,t,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,f=Object.prototype.toString,y=Function.prototype.toString,v=String.prototype.match,P=String.prototype.slice,g=String.prototype.replace,T=String.prototype.toUpperCase,_=String.prototype.toLowerCase,E=RegExp.prototype.test,b=Array.prototype.concat,S=Array.prototype.join,O=Array.prototype.slice,x=Math.floor,w="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,G="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C?"object":"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function k(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-x(-e):x(e);if(o!==e){var n=String(o),i=P.call(t,n.length+1);return g.call(n,r,"$&_")+"."+g.call(g.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(t,r,"$&_")}
vendor: 4,257 bytes, line 1
1var D=r(42634),N=D.custom,M=z(N)?N:null,F={__proto__:null,double:'"',single:"'"},q={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function L(e,t,r){var o=F[r.quoteStyle||t];return o+e+o}function U(e){return!G||!("object"==typeof e&&(G in e||void 0!==e[G]))}function H(e){return"[object Array]"===K(e)&&U(e)}function $(e){return"[object RegExp]"===K(e)&&U(e)}function z(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,n,s){var l=o||{};if(W(l,"quoteStyle")&&!W(F,l.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=!W(l,"customInspect")||l.customInspect;if("boolean"!=typeof f&&"symbol"!==f)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&" "!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var T=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var o=t.length-r.maxStringLength;return e(P.call(t,0,r.maxStringLength),r)+"... "+o+" more character"+(o>1?"s":"")}var n=q[r.quoteStyle||"single"];return n.lastIndex=0,L(g.call(g.call(t,n,"\\$1"),/[\x00-\x1f]/g,J),"single",r)}(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return T?k(t,E):E}if("bigint"==typeof t){var x=String(t)+"n";return T?k(t,x):x}var A=void 0===l.depth?5:l.depth;if(void 0===n&&(n=0),n>=A&&A>0&&"object"==typeof t)return H(t)?"[Array]":"[Object]";var N=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=S.call(Array(e.indent+1)," ")}return{base:r,prev:S.call(Array(t+1),r)}}(l,n);if(void 0===s)s=[];else if(V(s,t)>=0)return"[Circular]";function B(t,r,o){if(r&&(s=O.call(s)).push(r),o){var i={depth:l.depth};return W(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,n+1,s)}return e(t,l,n+1,s)}if("function"==typeof t&&!$(t)){var et=function(e){if(e.name)return e.name;var t=v.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),er=ee(t,B);return"[Function"+(et?": "+et:" (anonymous)")+"]"+(er.length>0?" { "+S.call(er,", ")+" }":"")}if(z(t)){var eo=C?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!=typeof t||C?eo:Q(eo)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var en,ei="<"+_.call(String(t.nodeName)),ea=t.attributes||[],es=0;es<ea.length;es++)ei+=" "+ea[es].name+"="+L((en=ea[es].value,g.call(String(en),/"/g,""")),"double",l);return ei+=">",t.childNodes&&t.childNodes.length&&(ei+="..."),ei+="</"+_.call(String(t.nodeName))+">"}if(H(t)){if(0===t.length)return"[]";var el=ee(t,B);return N&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(el)?"["+Z(el,N)+"]":"[ "+S.call(el,", ")+" ]"}if("[object Error]"===K(t)&&U(t)){var eu=ee(t,B);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===eu.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(eu,", ")+" }":"{ ["+String(t)+"] "+S.call(b.call("[cause]: "+B(t.cause),eu),", ")+" }"}if("object"==typeof t&&f){if(M&&"function"==typeof t[M]&&D)return D(t,{depth:A-n});if("symbol"!==f&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ec=[];return a&&a.call(t,function(e,r){ec.push(B(r,t,!0)+" => "+B(e,t))}),Y("Map",i.call(t),ec,N)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);
vendor: 4,682 bytes, line 1
1try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ed=[];return c&&c.call(t,function(e){ed.push(B(e,t))}),Y("Set",u.call(t),ed,N)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===K(t)&&U(t))return Q(B(Number(t)));if(function(e){if(!e||"object"!=typeof e||!w)return!1;try{return w.call(e),!0}catch(e){}return!1}(t))return Q(B(w.call(t)));if("[object Boolean]"===K(t)&&U(t))return Q(m.call(t));if("[object String]"===K(t)&&U(t))return Q(B(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===K(t)&&U(t))&&!$(t)){var eh=ee(t,B),ep=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,em=t instanceof Object?"":"null prototype",ef=!ep&&G&&Object(t)===t&&G in t?P.call(K(t),8,-1):em?"Object":"",ey=(ep||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ef||em?"["+S.call(b.call([],ef||[],em||[]),": ")+"] ":"");return 0===eh.length?ey+"{}":N?ey+"{"+Z(eh,N)+"}":ey+"{ "+S.call(eh,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return B.call(e,t)}function K(e){return f.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return -1}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+T.call(t.toString(16))}function Q(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Y(e,t,r,o){return e+" ("+t+") {"+(o?Z(r,o):S.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+S.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,o=H(e),n=[];if(o){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=W(e,i)?t(e[i],e):""}var a="function"==typeof A?A(e):[];if(C){r={};for(var s=0;s<a.length;s++)r["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(!o||String(Number(l))!==l||!(l<e.length))&&(C&&r["$"+l]instanceof Symbol||(E.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof A)for(var u=0;u<a.length;u++)j.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}},18725:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:o.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:o.RFC1738,RFC3986:o.RFC3986}},51973:(e,t,r)=>{"use strict";var o=r(98160),n=r(97254),i=r(18725);e.exports={formats:i,parse:n,stringify:o}},97254:(e,t,r)=>{"use strict";var o=r(21820),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,c=l.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&c.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var d=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p<c.length;++p)0===c[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===c[p]?h="utf-8":"utf8=%26%2310003%3B"===c[p]&&(h="iso-8859-1"),d=p,p=c.length);for(p=0;p<c.length;++p)if(p!==d){var p,m,f,y=c[p],v=y.indexOf("]="),P=-1===v?y.indexOf("="):v+1;-1===P?(m=t.decoder(y,a.decoder,h,"key"),f=t.strictNullHandling?null:""):(m=t.decoder(y.slice(0,P),a.decoder,h,"key"),f=o.maybeMap(s(y.slice(P+1),t,i(r[m])?r[m].length:0),function(e){return t.decoder(e,a.decoder,h,"value")}
vendor: 1,538 bytes, line 1
1)),f&&t.interpretNumericEntities&&"iso-8859-1"===h&&(f=String(f).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),y.indexOf("[]=")>-1&&(f=i(f)?[f]:f);var g=n.call(r,m);g&&"combine"===t.duplicates?r[m]=o.combine(r[m],f):g&&"last"!==t.duplicates||(r[m]=f)}return r},u=function(e,t,r,n){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var l=n?t:s(t,r,i),u=e.length-1;u>=0;--u){var c,d=e[u];if("[]"===d&&r.parseArrays)c=r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:o.combine([],l);else{c=r.plainObjects?{__proto__:null}:{};var h="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,p=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,m=parseInt(p,10);r.parseArrays||""!==p?!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(c=[])[m]=l:"__proto__"!==p&&(c[p]=l):c={0:l}}l=c}return l},c=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,c=[];if(l){if(!r.plainObjects&&n.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var d=0;r.depth>0&&null!==(s=a.exec(i))&&d<r.depth;){if(d+=1,!r.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(s[1])}if(s){if(!0===r.strictDepth)throw RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");c.push("["+i.slice(s.index)+"]")}return u(c,t,r,o)}},d=function(e){if(!e)return a;
vendor: 4,913 bytes, line 1
1if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=d(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?l(e,r):e,i=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),s=0;s<a.length;++s){var u=a[s],h=c(u,n[u],r,"string"==typeof e);i=o.merge(i,h,r)}return!0===r.allowSparse?i:o.compact(i)}},98160:(e,t,r)=>{"use strict";var o=r(59540),n=r(21820),i=r(18725),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},f=function e(t,r,i,a,s,u,d,h,f,y,v,P,g,T,_,E,b,S){for(var O,x,w=t,A=S,R=0,C=!1;void 0!==(A=A.get(m))&&!C;){var G=A.get(t);if(R+=1,void 0!==G){if(G===R)throw RangeError("Cyclic object value");C=!0}void 0===A.get(m)&&(R=0)}if("function"==typeof y?w=y(r,w):w instanceof Date?w=g(w):"comma"===i&&l(w)&&(w=n.maybeMap(w,function(e){return e instanceof Date?g(e):e})),null===w){if(u)return f&&!E?f(r,p.encoder,b,"key",T):r;w=""}if("string"==typeof(O=w)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||n.isBuffer(w))return f?[_(E?r:f(r,p.encoder,b,"key",T))+"="+_(f(w,p.encoder,b,"value",T))]:[_(r)+"="+_(String(w))];var j=[];if(void 0===w)return j;if("comma"===i&&l(w))E&&f&&(w=n.maybeMap(w,f)),x=[{value:w.length>0?w.join(",")||null:void 0}];else if(l(y))x=y;else{var I=Object.keys(w);x=v?I.sort(v):I}var k=h?String(r).replace(/\./g,"%2E"):String(r),D=a&&l(w)&&1===w.length?k+"[]":k;if(s&&l(w)&&0===w.length)return D+"[]";for(var N=0;N<x.length;++N){var M=x[N],F="object"==typeof M&&M&&void 0!==M.value?M.value:w[M];if(!d||null!==F){var q=P&&h?String(M).replace(/\./g,"%2E"):String(M),L=l(w)?"function"==typeof i?i(D,q):D:D+(P?"."+q:"["+q+"]");S.set(t,R);var U=o();U.set(m,S),c(j,e(F,L,i,a,s,u,d,h,"comma"===i&&E&&l(w)?null:f,y,v,P,g,T,_,E,b,U))}}return j},y=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");o=e.format}var n=i.formatters[o],u=p.filter;if(("function"==typeof e.filter||l(e.filter))&&(u=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:o,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var r,n=e,i=y(t);"function"==typeof i.filter?n=(0,i.filter)("",n):l(i.filter)&&(r=i.filter);var a=[];if("object"!=typeof n||null===n)return"";var u=s[i.arrayFormat],d="comma"===u&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var h=o(),p=0;p<r.length;++p){var m=r[p],v=n[m];i.skipNulls&&null===v||c(a,f(v,m,u,d,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,h))}var P=a.join(i.delimiter),g=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),P.length>0?g+P:""}},21820:(e,t,r)=>{"use strict";var o=r(18725),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);t.obj[t.prop]=o}}},l=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],i=n.obj[n.prop],a=Object.keys(i),l=0;l<a.length;++l){var u=a[l],c=i[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:i,prop:u}),r.push(c))}return s(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r,n,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",u=0;u<s.length;u+=1024){for(var c=s.length>=1024?s.slice(u,u+1024):s,d=[],h=0;h<c.length;++h){var p=c.charCodeAt(h);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===o.RFC1738&&(40===p||41===p)){d[d.length]=c.charAt(h);continue}if(p<128){d[d.length]=a[p];continue}if(p<2048){d[d.length]=a[192|p>>6]+a[128|63&p];continue}if(p<55296||p>=57344){d[d.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p];continue}
1h+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(h)),d[d.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p]}l+=d.join("")}return l},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=l(t,o)),i(t)&&i(r))?(r.forEach(function(r,i){if(n.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,o):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},a)}}},84169:(e,t,r)=>{"use strict";var o=r(60687),n=r(87095),i=function(e,t,r){for(var o,n=e;null!=(o=n.next);n=o)if(o.key===t)return n.next=o.next,r||(o.next=e.next,e.next=o),o},a=function(e,t){if(e){var r=i(e,t);return r&&r.value}},s=function(e,t,r){var o=i(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}},l=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){var r=e&&e.next,o=l(e,t);return o&&r&&r===o&&(e=void 0),!!o},get:function(t){return a(e,t)},has:function(t){var r;return!!(r=e)&&!!i(r,t)},set:function(t,r){e||(e={next:void 0}),s(e,t,r)}};return t}},26163:(e,t,r)=>{"use strict";var o=r(82027),n=r(63156),i=r(60687),a=r(87095),s=o("%Map%",!0),l=n("Map.prototype.get",!0),u=n("Map.prototype.set",!0),c=n("Map.prototype.has",!0),d=n("Map.prototype.delete",!0),h=n("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=d(e,t);return 0===h(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&c(e,t)},set:function(t,r){e||(e=new s),u(e,t,r)}};return t}},56699:(e,t,r)=>{"use strict";var o=r(82027),n=r(63156),i=r(60687),a=r(26163),s=r(87095),l=o("%WeakMap%",!0),u=n("WeakMap.prototype.get",!0),c=n("WeakMap.prototype.set",!0),d=n("WeakMap.prototype.has",!0),h=n("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return h(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),c(e,r,o)):a&&(t||(t=a()),t.set(r,o))}};return r}:a},59540:(e,t,r)=>{"use strict";var o=r(87095),n=r(60687),i=r(84169),a=r(26163),s=r(56699)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},88068:(e,t,r)=>{"use strict";r.d(t,{s:()=>a,t:()=>i});var o=r(12115);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let r=!1,o=e.map(e=>{let o=n(e,t);return r||"function"!=typeof o||(r=!0),o});if(r)return()=>{for(let t=0;t<o.length;t++){let r=o[t];"function"==typeof r?r():n(e[t],null)}}}}function a(...e){return o.useCallback(i(...e),e)}},12317:(e,t,r)=>{"use strict";r.d(t,{Slot:()=>a});var o=r(12115),n=r(88068),i=r(95155),a=function(e){let t=function(e){let t=o.forwardRef((e,t)=>{var r,i;let a,s;let{children:l,...u}=e,c=o.isValidElement(l)?(a=null===(r=Object.getOwnPropertyDescriptor(l.props,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning?l.ref:(a=null===(i=Object.getOwnPropertyDescriptor(l,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in a&&a.isReactWarning?l.props.ref:l.props.ref||l.ref:void 0,d=(0,n.s)(c,t);if(o.isValidElement(l)){let e=function(e,t){let r={...t};for(let o in t){let n=e[o],i=t[o];/^on[A-Z]/.test(o)?n&&i?r[o]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=i(...t);return n(...t),o}:n&&(r[o]=n):"style"===o?r[o]={...n,...i}
1:"className"===o&&(r[o]=[n,i].filter(Boolean).join(" "))}return{...e,...r}}(u,l.props);return l.type!==o.Fragment&&(e.ref=d),o.cloneElement(l,e)}return o.Children.count(l)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),r=o.forwardRef((e,r)=>{let{children:n,...a}=e,s=o.Children.toArray(n),u=s.find(l);if(u){let e=u.props.children,n=s.map(t=>t!==u?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...a,ref:r,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,i.jsx)(t,{...a,ref:r,children:n})});return r.displayName="".concat(e,".Slot"),r}("Slot"),s=Symbol("radix.slottable");function l(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}},17506:(e,t,r)=>{"use strict";r.d(t,{c:()=>P});var o,n="basil",i="https://js.stripe.com",a="".concat(i,"/").concat(n,"/stripe.js"),s=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,l=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,u=function(){for(var e=document.querySelectorAll('script[src^="'.concat(i,'"]')),t=0;t<e.length;t++){var r,o=e[t];if(r=o.src,s.test(r)||l.test(r))return o}return null},c=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(a).concat(t);var o=document.head||document.body;if(!o)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(r),r},d=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"7.3.0",startTime:t})},h=null,p=null,m=null,f=function(e,t,r){if(null===e)return null;var o,i=t[0].match(/^pk_test/),a=3===(o=e.version)?"v3":o;i&&a!==n&&console.warn("Stripe.js@".concat(a," was loaded on the page, but @stripe/stripe-js@").concat("7.3.0"," expected Stripe.js@").concat(n,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var s=e.apply(void 0,t);return d(s,r),s},y=!1,v=function(){return o||(o=(null!==h?h:(h=new Promise(function(e,t){if("undefined"==typeof window||"undefined"==typeof document){e(null);return}if(window.Stripe,window.Stripe){e(window.Stripe);return}try{var r,o=u();o?o&&null!==m&&null!==p&&(o.removeEventListener("load",m),o.removeEventListener("error",p),null===(r=o.parentNode)||void 0===r||r.removeChild(o),o=c(null)):o=c(null),m=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},p=function(e){t(Error("Failed to load Stripe.js",{cause:e}))},o.addEventListener("load",m),o.addEventListener("error",p)}catch(e){t(e);return}})).catch(function(e){return h=null,Promise.reject(e)})).catch(function(e){return o=null,Promise.reject(e)}))};Promise.resolve().then(function(){return v()}).catch(function(e){y||console.warn(e)});var P=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];y=!0;var o=Date.now();return v().then(function(e){return f(e,t,o)})}},31027:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var o=r(43463);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=o.$,a=(e,t)=>r=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],o=null==s?void 0:s[e];if(null===t)return null;let i=n(t)||n(o);return a[e][i]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,o]=t;return void 0===o||(e[r]=o),e},{});return i(e,l,null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:r,className:o,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,o]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},77358:(e,t,r)=>{"use strict";var o={};r.r(o),r.d(o,{StripeAPIError:()=>F,StripeAuthenticationError:()=>q,StripeCardError:()=>N,StripeConnectionError:()=>H,StripeError:()=>D,StripeIdempotencyError:()=>z,StripeInvalidGrantError:()=>B,StripeInvalidRequestError:()=>M,StripePermissionError:()=>L,StripeRateLimitError:()=>U,StripeSignatureVerificationError:()=>$,StripeUnknownError:()=>W,TemporarySessionExpiredError:()=>K,generateV1Error:()=>I,generateV2Error:()=>k});var n={};r.r(n),r.d(n,{Account:()=>rx,AccountLinks:()=>rA,AccountSessions:()=>rC,Accounts:()=>rx,ApplePayDomains:()=>rj,ApplicationFees:()=>rk,Apps:()=>ni,Balance:()=>rN,BalanceTransactions:()=>rF,Billing:()=>na,BillingPortal:()=>ns,Charges:()=>rL,Checkout:()=>nl,Climate:()=>nu,ConfirmationTokens:()=>rH,CountrySpecs:()=>rz,Coupons:()=>rW,CreditNotes:()=>rV,CustomerSessions:()=>rQ,Customers:()=>rY,Disputes:()=>r1,Entitlements:()=>nc,EphemeralKeys:()=>r2,Events:()=>r6,ExchangeRates:()=>r5,FileLinks:()=>r9,Files:()=>ot,FinancialConnections:()=>nd,Forwarding:()=>nh,Identity:()=>np,InvoiceItems:()=>oo,InvoicePayments:()=>oi,InvoiceRenderingTemplates:()=>os,Invoices:()=>ou,Issuing:()=>nm,Mandates:()=>od,OAuth:()=>om,PaymentIntents:()=>oy,PaymentLinks:()=>oP,PaymentMethodConfigurations:()=>oT,PaymentMethodDomains:()=>oE,PaymentMethods:()=>oS,Payouts:()=>ox,Plans:()=>oA,Prices:()=>oC,Products:()=>oj,PromotionCodes:()=>ok,Quotes:()=>oN,Radar:()=>nf,Refunds:()=>oF,Reporting:()=>ny,Reviews:()=>oL,SetupAttempts:()=>oH,SetupIntents:()=>oz,ShippingRates:()=>oW,Sigma:()=>nv,Sources:()=>oV,SubscriptionItems:()=>oQ,SubscriptionSchedules:()=>oY,Subscriptions:()=>o1,Tax:()=>nP,TaxCodes:()=>o2,TaxIds:()=>o6,TaxRates:()=>o5,Terminal:()=>ng,TestHelpers:()=>nT,Tokens:()=>o9,Topups:()=>ne,Transfers:()=>nr,Treasury:()=>n_,V2:()=>nE,WebhookEndpoints:()=>nn});var i=r(51973),a=r(2818);let s=["apiKey","idempotencyKey","stripeAccount","apiVersion","maxNetworkRetries","timeout","host","authenticator","stripeContext","additionalHeaders"];function l(e){return e&&"object"==typeof e&&s.some(t=>Object.prototype.hasOwnProperty.call(e,t))}function u(e,t){return i.stringify(e,{serializeDate:e=>Math.floor(e.getTime()/1e3).toString(),arrayFormat:"v2"==t?"repeat":"indices"}).replace(/%5B/g,"[").replace(/%5D/g,"]")}let c=(()=>{let e={"\n":"\\n",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029"};return t=>{let r=t.replace(/["\n\r\u2028\u2029]/g,t=>e[t]);return e=>r.replace(/\{([\s\S]+?)\}/g,(t,r)=>{let o=e[r];return["number","string","boolean"].includes(typeof o)?encodeURIComponent(o):""})}})();function d(e){if(!Array.isArray(e)||!e[0]||"object"!=typeof e[0])return{};if(!l(e[0]))return e.shift();let t=Object.keys(e[0]),r=t.filter(e=>s.includes(e));return r.length>
10&&r.length!==t.length&&f(`Options found in arguments (${r.join(", ")}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options.`),{}}function h(e){let t={host:null,headers:{},settings:{}};if(e.length>0){let r=e[e.length-1];if("string"==typeof r)t.authenticator=v(e.pop());else if(l(r)){let r=Object.assign({},e.pop()),o=Object.keys(r).filter(e=>!s.includes(e));if(o.length&&f(`Invalid options found (${o.join(", ")}); ignoring.`),r.apiKey&&(t.authenticator=v(r.apiKey)),r.idempotencyKey&&(t.headers["Idempotency-Key"]=r.idempotencyKey),r.stripeAccount&&(t.headers["Stripe-Account"]=r.stripeAccount),r.stripeContext){if(t.headers["Stripe-Account"])throw Error("Can't specify both stripeAccount and stripeContext.");t.headers["Stripe-Context"]=r.stripeContext}if(r.apiVersion&&(t.headers["Stripe-Version"]=r.apiVersion),Number.isInteger(r.maxNetworkRetries)&&(t.settings.maxNetworkRetries=r.maxNetworkRetries),Number.isInteger(r.timeout)&&(t.settings.timeout=r.timeout),r.host&&(t.host=r.host),r.authenticator){if(r.apiKey)throw Error("Can't specify both apiKey and authenticator.");if("function"!=typeof r.authenticator)throw Error("The authenticator must be a function receiving a request as the first parameter.");t.authenticator=r.authenticator}r.additionalHeaders&&(t.headers=r.additionalHeaders)}}return t}function p(e){if("object"!=typeof e)throw Error("Argument must be an object");return Object.keys(e).reduce((t,r)=>(null!=e[r]&&(t[r]=e[r]),t),{})}function m(e,t){return t?e.then(e=>{setTimeout(()=>{t(null,e)},0)},e=>{setTimeout(()=>{t(e,null)},0)}):e}function f(e){return"function"!=typeof a.emitWarning?console.warn(`Stripe: ${e}`):a.emitWarning(e,"Stripe")}function y(e,t,r){if(!Number.isInteger(t)){if(void 0!==r)return r;throw Error(`${e} must be an integer`)}return t}function v(e){let t=t=>(t.headers.Authorization="Bearer "+e,Promise.resolve());return t._apiKey=e,t}function P(e,t){return this[e]instanceof Date?Math.floor(this[e].getTime()/1e3).toString():t}function g(e){return e&&e.startsWith("/v2")?"v2":"v1"}function T(e){return Array.isArray(e)?e.join(", "):String(e)}class _{getClientName(){throw Error("getClientName not implemented.")}makeRequest(e,t,r,o,n,i,a,s){throw Error("makeRequest not implemented.")}static makeTimeoutError(){let e=TypeError(_.TIMEOUT_ERROR_CODE);return e.code=_.TIMEOUT_ERROR_CODE,e}}_.CONNECTION_CLOSED_ERROR_CODES=["ECONNRESET","EPIPE"],_.TIMEOUT_ERROR_CODE="ETIMEDOUT";class E{constructor(e,t){this._statusCode=e,this._headers=t}getStatusCode(){return this._statusCode}getHeaders(){return this._headers}getRawResponse(){throw Error("getRawResponse not implemented.")}toStream(e){throw Error("toStream not implemented.")}toJSON(){throw Error("toJSON not implemented.")}}class b extends _{constructor(e){if(super(),!e){if(!globalThis.fetch)throw Error("fetch() function not provided and is not defined in the global scope. You must provide a fetch implementation.");e=globalThis.fetch}globalThis.AbortController?this._fetchFn=b.makeFetchWithAbortTimeout(e):this._fetchFn=b.makeFetchWithRaceTimeout(e)}static makeFetchWithRaceTimeout(e){return(t,r,o)=>{let n;let i=new Promise((e,t)=>{n=setTimeout(()=>{n=null,t(_.makeTimeoutError())},o)});return Promise.race([e(t,r),i]).finally(()=>{n&&clearTimeout(n)})}}static makeFetchWithAbortTimeout(e){return async(t,r,o)=>{let n=new AbortController,i=setTimeout(()=>{i=null,n.abort(_.makeTimeoutError())},o);try{return await e(t,Object.assign(Object.assign({},r),{signal:n.signal}))}catch(e){if("AbortError"===e.name)throw _.makeTimeoutError();throw e}finally{i&&clearTimeout(i)}}}getClientName(){return"fetch"}async makeRequest(e,t,r,o,n,i,a,s){let l=new URL(r,`${"http"===a?"http":"https"}://${e}`);l.port=t;let u="POST"==o||"PUT"==o||"PATCH"==o,c=i||(u?"":void 0);return new S(await this._fetchFn(l.toString(),{method:o,headers:Object.entries(n).map(([e,t])=>[e,T(t)]),body:"object"==typeof c?JSON.stringify(c):c},s))}}class S extends E{constructor(e){super(e.status,S._transformHeadersToObject(e.headers)),this._res=e}getRawResponse(){return this._res}toStream(e){return e(),this._res.body}toJSON(){return this._res.json()}static _transformHeadersToObject(e){let t={};for(let r of e){if(!Array.isArray(r)||2!=r.length)throw Error("Response objects produced by the fetch function given to FetchHttpClient do not have an iterable headers map. Response#headers should be an iterable object.");t[r[0]]=r[1]}return t}}class O{computeHMACSignature(e,t){throw Error("computeHMACSignature not implemented.")}computeHMACSignatureAsync(e,t){throw Error("computeHMACSignatureAsync not implemented.")}computeSHA256Async(e){throw Error("computeSHA256 not implemented.")}}
1class x extends Error{}class w extends O{constructor(e){super(),this.subtleCrypto=e||crypto.subtle}computeHMACSignature(e,t){throw new x("SubtleCryptoProvider cannot be used in a synchronous context.")}async computeHMACSignatureAsync(e,t){let r=new TextEncoder,o=await this.subtleCrypto.importKey("raw",r.encode(t),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),n=new Uint8Array(await this.subtleCrypto.sign("hmac",o,r.encode(e))),i=Array(n.length);for(let e=0;e<n.length;e++)i[e]=A[n[e]];return i.join("")}async computeSHA256Async(e){return new Uint8Array(await this.subtleCrypto.digest("SHA-256",e))}}let A=Array(256);for(let e=0;e<A.length;e++)A[e]=e.toString(16).padStart(2,"0");class R{constructor(){this._fetchFn=null,this._agent=null}getUname(){throw Error("getUname not implemented.")}uuid4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}secureCompare(e,t){if(e.length!==t.length)return!1;let r=e.length,o=0;for(let n=0;n<r;++n)o|=e.charCodeAt(n)^t.charCodeAt(n);return 0===o}createEmitter(){throw Error("createEmitter not implemented.")}tryBufferData(e){throw Error("tryBufferData not implemented.")}createNodeHttpClient(e){throw Error("createNodeHttpClient not implemented.")}createFetchHttpClient(e){return new b(e)}createDefaultHttpClient(){throw Error("createDefaultHttpClient not implemented.")}createNodeCryptoProvider(){throw Error("createNodeCryptoProvider not implemented.")}createSubtleCryptoProvider(e){return new w(e)}createDefaultCryptoProvider(){throw Error("createDefaultCryptoProvider not implemented.")}}class C extends Event{constructor(e,t){super(e),this.data=t}}class G{constructor(){this.eventTarget=new EventTarget,this.listenerMapping=new Map}on(e,t){let r=e=>{t(e.data)};return this.listenerMapping.set(t,r),this.eventTarget.addEventListener(e,r)}removeListener(e,t){let r=this.listenerMapping.get(t);return this.listenerMapping.delete(t),this.eventTarget.removeEventListener(e,r)}once(e,t){let r=e=>{t(e.data)};return this.listenerMapping.set(t,r),this.eventTarget.addEventListener(e,r,{once:!0})}emit(e,t){return this.eventTarget.dispatchEvent(new C(e,t))}}class j extends R{getUname(){return Promise.resolve(null)}createEmitter(){return new G}tryBufferData(e){if(e.file.data instanceof ReadableStream)throw Error("Uploading a file as a stream is not supported in non-Node environments. Please open or upvote an issue at github.com/stripe/stripe-node if you use this, detailing your use-case.");return Promise.resolve(e)}createNodeHttpClient(){throw Error("Stripe: `createNodeHttpClient()` is not available in non-Node environments. Please use `createFetchHttpClient()` instead.")}createDefaultHttpClient(){return super.createFetchHttpClient()}createNodeCryptoProvider(){throw Error("Stripe: `createNodeCryptoProvider()` is not available in non-Node environments. Please use `createSubtleCryptoProvider()` instead.")}createDefaultCryptoProvider(){return this.createSubtleCryptoProvider()}}let I=e=>{switch(e.type){case"card_error":return new N(e);case"invalid_request_error":return new M(e);case"api_error":return new F(e);case"authentication_error":return new q(e);case"rate_limit_error":return new U(e);case"idempotency_error":return new z(e);case"invalid_grant":return new B(e);default:return new W(e)}},k=e=>"temporary_session_expired"===e.type?new K(e):"invalid_fields"===e.code?new M(e):I(e);class D extends Error{constructor(e={},t=null){var r;super(e.message),this.type=t||this.constructor.name,this.raw=e,this.rawType=e.type,this.code=e.code,this.doc_url=e.doc_url,this.param=e.param,this.detail=e.detail,this.headers=e.headers,this.requestId=e.requestId,this.statusCode=e.statusCode,this.message=null!==(r=e.message)&&void 0!==r?r:"",this.userMessage=e.user_message,this.charge=e.charge,this.decline_code=e.decline_code,this.payment_intent=e.payment_intent,this.payment_method=e.payment_method,this.payment_method_type=e.payment_method_type,this.setup_intent=e.setup_intent,this.source=e.source}}D.generate=I;class N extends D{constructor(e={}){super(e,"StripeCardError")}}class M extends D{constructor(e={}){super(e,"StripeInvalidRequestError")}}class F extends D{constructor(e={}){super(e,"StripeAPIError")}}class q extends D{constructor(e={}){super(e,"StripeAuthenticationError")}}class L extends D{constructor(e={}){super(e,"StripePermissionError")}}class U extends D{constructor(e={}){super(e,"StripeRateLimitError")}}class H extends D{constructor(e={}){super(e,"StripeConnectionError")}}class $ extends D{constructor(e,t,r={}){super(r,"StripeSignatureVerificationError"),this.header=e,this.payload=t}}class z extends D{constructor(e={}){super(e,"StripeIdempotencyError")}}class B extends D{constructor(e={}){super(e,"StripeInvalidGrantError")}}class W extends D{constructor(e={}){super(e,"StripeUnknownError")}}class K extends D{constructor(e={}){super(e,"TemporarySessionExpiredError")}}class V{constructor(e,t){this._stripe=e,this._maxBufferedRequestMetric=t}_addHeadersDirectlyToObject(e,t){e.requestId=t["request-id"],e.stripeAccount=e.stripeAccount||t["stripe-account"],e.apiVersion=e.apiVersion||t["stripe-version"],e.idempotencyKey=e.idempotencyKey||t["idempotency-key"]}_makeResponseEvent(e,t,r){let o=Date.now(),n=o-e.request_start_time;return p({api_version:r["stripe-version"],account:r["stripe-account"],idempotency_key:r["idempotency-key"],method:e.method,path:e.path,status:t,request_id:this._getRequestId(r),elapsed:n,request_start_time:e.request_start_time,request_end_time:o})}_getRequestId(e){return e["request-id"]}_streamingResponseHandler(e,t,r){return o=>{let n=o.getHeaders(),i=o.toStream(()=>{let r=this._makeResponseEvent(e,o.getStatusCode(),n);this._stripe._emitter.emit("response",r),this._recordRequestMetrics(this._getRequestId(n),r.elapsed,t)});return this._addHeadersDirectlyToObject(i,n),r(null,i)}}_jsonResponseHandler(e,t,r,o){return n=>{let i=n.getHeaders(),a=this._getRequestId(i),s=n.getStatusCode(),l=this._makeResponseEvent(e,s,i);this._stripe._emitter.emit("response",l),n.toJSON().then(e=>{if(e.error)throw"string"==typeof e.error&&(e.error={type:e.error,message:e.error_description}),e.error.headers=i,e.error.statusCode=s,e.error.requestId=a,401===s?new q(e.error):403===s?
1new L(e.error):429===s?new U(e.error):"v2"===t?k(e.error):I(e.error);return e},e=>{throw new F({message:"Invalid JSON received from the Stripe API",exception:e,requestId:i["request-id"]})}).then(e=>{this._recordRequestMetrics(a,l.elapsed,r);let t=n.getRawResponse();this._addHeadersDirectlyToObject(t,i),Object.defineProperty(e,"lastResponse",{enumerable:!1,writable:!1,value:t}),o(null,e)},e=>o(e,null))}}static _generateConnectionErrorMessage(e){return`An error occurred with our connection to Stripe.${e>0?` Request was retried ${e} times.`:""}`}static _shouldRetry(e,t,r,o){return!!(o&&0===t&&_.CONNECTION_CLOSED_ERROR_CODES.includes(o.code))||!(t>=r)&&(!e||"false"!==e.getHeaders()["stripe-should-retry"]&&!!("true"===e.getHeaders()["stripe-should-retry"]||409===e.getStatusCode()||e.getStatusCode()>=500))}_getSleepTimeInMS(e,t=null){let r=this._stripe.getInitialNetworkRetryDelay(),o=Math.min(r*Math.pow(2,e-1),this._stripe.getMaxNetworkRetryDelay());return o*=.5*(1+Math.random()),o=Math.max(r,o),Number.isInteger(t)&&t<=60&&(o=Math.max(o,t)),1e3*o}_getMaxNetworkRetries(e={}){return void 0!==e.maxNetworkRetries&&Number.isInteger(e.maxNetworkRetries)?e.maxNetworkRetries:this._stripe.getMaxNetworkRetries()}_defaultIdempotencyKey(e,t,r){let o=this._getMaxNetworkRetries(t),n=()=>`stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`;if("v2"===r){if("POST"===e||"DELETE"===e)return n()}else if("v1"===r&&"POST"===e&&o>0)return n();return null}_makeHeaders({contentType:e,contentLength:t,apiVersion:r,clientUserAgent:o,method:n,userSuppliedHeaders:i,userSuppliedSettings:a,stripeAccount:s,stripeContext:l,apiMode:u}){let c={Accept:"application/json","Content-Type":e,"User-Agent":this._getUserAgentString(u),"X-Stripe-Client-User-Agent":o,"X-Stripe-Client-Telemetry":this._getTelemetryHeader(),"Stripe-Version":r,"Stripe-Account":s,"Stripe-Context":l,"Idempotency-Key":this._defaultIdempotencyKey(n,a,u)},d="POST"==n||"PUT"==n||"PATCH"==n;return(d||t)&&(d||f(`${n} method had non-zero contentLength but no payload is expected for this verb`),c["Content-Length"]=t),Object.assign(p(c),i&&"object"==typeof i?Object.keys(i).reduce((e,t)=>(e[t.split("-").map(e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join("-")]=i[t],e),{}):i)}_getUserAgentString(e){let t=this._stripe.getConstant("PACKAGE_VERSION"),r=this._stripe._appInfo?this._stripe.getAppInfoAsString():"";return`Stripe/${e} NodeBindings/${t} ${r}`.trim()}_getTelemetryHeader(){if(this._stripe.getTelemetryEnabled()&&this._stripe._prevRequestMetrics.length>0)return JSON.stringify({last_request_metrics:this._stripe._prevRequestMetrics.shift()})}_recordRequestMetrics(e,t,r){if(this._stripe.getTelemetryEnabled()&&e){if(this._stripe._prevRequestMetrics.length>this._maxBufferedRequestMetric)f("Request metrics buffer is full, dropping telemetry message.");else{let o={request_id:e,request_duration_ms:t};r&&r.length>0&&(o.usage=r),this._stripe._prevRequestMetrics.push(o)}}}_rawRequest(e,t,r,o){return new Promise((n,i)=>{let a;try{let n=e.toUpperCase();if("POST"!==n&&r&&0!==Object.keys(r).length)throw Error("rawRequest only supports params on POST requests. Please pass null and add your parameters to path.");let i=[].slice.call([r,o]),s=d(i),l=Object.assign({},s),u=h(i),c=u.headers,p=u.authenticator;a={requestMethod:n,requestPath:t,bodyData:l,queryData:{},authenticator:p,headers:c,host:null,streaming:!1,settings:{},usage:["raw_request"]}}catch(e){i(e);return}let{headers:s,settings:l}=a,u=a.authenticator;this._request(a.requestMethod,a.host,t,a.bodyData,u,{headers:s,settings:l,streaming:a.streaming},a.usage,function(e,t){e?i(e):n(t)})})}_request(e,t,r,o,n,i,a=[],s,l=null){var c;let d;n=null!==(c=null!=n?n:this._stripe._authenticator)&&void 0!==c?c:null;let h=g(r),m=(e,t,r,o,n)=>setTimeout(e,this._getSleepTimeInMS(o,n),t,r,o+1),f=(o,l,u)=>{let c=i.settings&&i.settings.timeout&&Number.isInteger(i.settings.timeout)&&i.settings.timeout>=0?i.settings.timeout:this._stripe.getApiField("timeout"),y={host:t||this._stripe.getApiField("host"),port:this._stripe.getApiField("port"),path:r,method:e,headers:Object.assign({},l),body:d,protocol:this._stripe.getApiField("protocol")};n(y).then(()=>
1{let t=this._stripe.getApiField("httpClient").makeRequest(y.host,y.port,y.path,y.method,y.headers,y.body,y.protocol,c),n=Date.now(),d=p({api_version:o,account:T(l["Stripe-Account"]),idempotency_key:T(l["Idempotency-Key"]),method:e,path:r,request_start_time:n}),v=u||0,P=this._getMaxNetworkRetries(i.settings||{});this._stripe._emitter.emit("request",d),t.then(e=>{if(V._shouldRetry(e,v,P)){var t;return m(f,o,l,v,Number(Array.isArray(t=e.getHeaders()["retry-after"])?t[0]:t))}return i.streaming&&400>e.getStatusCode()?this._streamingResponseHandler(d,a,s)(e):this._jsonResponseHandler(d,h,a,s)(e)}).catch(e=>V._shouldRetry(null,v,P,e)?m(f,o,l,v,null):s(new H({message:e.code&&e.code===_.TIMEOUT_ERROR_CODE?`Request aborted due to timeout being reached (${c}ms)`:V._generateConnectionErrorMessage(v),detail:e})))}).catch(e=>{throw new D({message:"Unable to authenticate the request",exception:e})})},y=(t,r)=>{if(t)return s(t);d=r,this._stripe.getClientUserAgent(t=>{let r=this._stripe.getApiField("version"),o=this._makeHeaders({contentType:"v2"==h?"application/json":"application/x-www-form-urlencoded",contentLength:d.length,apiVersion:r,clientUserAgent:t,method:e,userSuppliedHeaders:i.headers,userSuppliedSettings:i.settings,stripeAccount:"v2"==h?null:this._stripe.getApiField("stripeAccount"),stripeContext:"v2"==h?this._stripe.getApiField("stripeContext"):null,apiMode:h});f(r,o,0)})};if(l)l(e,o,i.headers,y);else{let e;y(null,"v2"==h?o?JSON.stringify(o,P):"":u(o||{},h))}}}class J{constructor(e,t,r,o){this.index=0,this.pagePromise=e,this.promiseCache={currentPromise:null},this.requestArgs=t,this.spec=r,this.stripeResource=o}async iterate(e){if(!(e&&e.data&&"number"==typeof e.data.length))throw Error("Unexpected: Stripe API response does not have a well-formed `data` array.");let t=et(this.requestArgs);if(this.index<e.data.length){let r=t?e.data.length-1-this.index:this.index,o=e.data[r];return this.index+=1,{value:o,done:!1}}if(e.has_more){this.index=0,this.pagePromise=this.getNextPage(e);let t=await this.pagePromise;return this.iterate(t)}return{done:!0,value:void 0}}getNextPage(e){throw Error("Unimplemented")}async _next(){return this.iterate(await this.pagePromise)}next(){if(this.promiseCache.currentPromise)return this.promiseCache.currentPromise;let e=(async()=>{let e=await this._next();return this.promiseCache.currentPromise=null,e})();return this.promiseCache.currentPromise=e,e}}class Q extends J{getNextPage(e){let t=et(this.requestArgs),r=function(e,t){let r=t?0:e.data.length-1,o=e.data[r],n=o&&o.id;if(!n)throw Error("Unexpected: No `id` found on the last item while auto-paging a list.");return n}(e,t);return this.stripeResource._makeRequest(this.requestArgs,this.spec,{[t?"ending_before":"starting_after"]:r})}}class X extends J{getNextPage(e){if(!e.next_page)throw Error("Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.");return this.stripeResource._makeRequest(this.requestArgs,this.spec,{page:e.next_page})}}class Y{constructor(e,t,r,o){this.currentPageIterator=(async()=>(await e).data[Symbol.iterator]())(),this.nextPageUrl=(async()=>(await e).next_page_url||null)(),this.requestArgs=t,this.spec=r,this.stripeResource=o}async turnPage(){let e=await this.nextPageUrl;if(!e)return null;this.spec.fullPath=e;let t=await this.stripeResource._makeRequest([],this.spec,{});return this.nextPageUrl=Promise.resolve(t.next_page_url),this.currentPageIterator=Promise.resolve(t.data[Symbol.iterator]()),this.currentPageIterator}async next(){{let e=(await this.currentPageIterator).next();if(!e.done)return{done:!1,value:e.value}}let e=await this.turnPage();if(!e)return{done:!0,value:void 0};let t=e.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value}}}let Z=(e,t,r,o)=>{let n=g(r.fullPath||r.path);return"v2"!==n&&"search"===r.methodType?ee(new X(o,t,r,e)):"v2"!==n&&"list"===r.methodType?ee(new Q(o,t,r,e)):"v2"===n&&"list"===r.methodType?ee(new Y(o,t,r,e)):null},ee=e=>{var t;let r=(t=(...t)=>e.next(...t),function(){let e=[].slice.call(arguments),r=function(e){if(0===e.length)return;let t=e[0];if("function"!=typeof t)throw Error(`The first argument to autoPagingEach, if present, must be a callback function; received ${typeof t}`);if(2===t.length)return t;if(t.length>2)throw Error(`The \`onItem\` callback function passed to autoPagingEach must accept at most two arguments; got ${t}`);return function(e,r){r(t(e))}}(e),o=function(e){if(e.length<2)return null;let t=e[1];if("function"!=typeof t)throw Error(`The second argument to autoPagingEach, if present, must be a callback function; received ${typeof t}`);return t}(e);if(e.length>2)throw Error(`autoPagingEach takes up to two arguments; received ${e}`);return m(new Promise((e,o)=>{t().then(function o(n){if(n.done){e();return}let i=n.value;return new Promise(e=>{r(i,e)}).then(e=>!1===e?o({done:!0,value:void 0}):t().then(o))}).catch(o)}),o)}),o={autoPagingEach:r,autoPagingToArray:function(e,t){let o=e&&e.limit;if(!o)throw Error("You must pass a `limit` option to autoPagingToArray, e.g., `autoPagingToArray({limit: 1000});`.");if(o>1e4)throw Error("You cannot specify a limit of more than 10,000 items to fetch in `autoPagingToArray`; use `autoPagingEach` to iterate through longer lists.");return m(new Promise((e,t)=>
1{let n=[];r(e=>{if(n.push(e),n.length>=o)return!1}).then(()=>{e(n)}).catch(t)}),t)},next:()=>e.next(),return:()=>({}),["undefined"!=typeof Symbol&&Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator"]:()=>o};return o};function et(e){return!!d([].slice.call(e)).ending_before}function er(e,t){if(this._stripe=e,t)throw Error("Support for curried url params was dropped in stripe-node v7.0.0. Instead, pass two ids.");this.basePath=c(this.basePath||e.getApiField("basePath")),this.resourcePath=this.path,this.path=c(this.path),this.initialize(...arguments)}function eo(e,t){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let o=r[0].toLowerCase()+r.substring(1),n=new t[r](e);this[o]=n}}function en(e,t){return function(e){return new eo(e,t)}}er.extend=function(e){let t=this,r=Object.prototype.hasOwnProperty.call(e,"constructor")?e.constructor:function(...e){t.apply(this,e)};return Object.assign(r,t),r.prototype=Object.create(t.prototype),Object.assign(r.prototype,e),r},er.method=function(e){if(void 0!==e.path&&void 0!==e.fullPath)throw Error(`Method spec specified both a 'path' (${e.path}) and a 'fullPath' (${e.fullPath}).`);return function(...t){let r="function"==typeof t[t.length-1]&&t.pop();e.urlParams=function(e){let t=e.match(/\{\w+\}/g);return t?t.map(e=>e.replace(/[{}]/g,"")):[]}
1(e.fullPath||this.createResourcePathWithSymbols(e.path||""));let o=m(this._makeRequest(t,e,{}),r);return Object.assign(o,Z(this,t,e,o)),o}},er.MAX_BUFFERED_REQUEST_METRICS=100,er.prototype={_stripe:null,path:"",resourcePath:"",basePath:null,initialize(){},requestDataProcessor:null,validateRequest:null,createFullPath(e,t){let r=[this.basePath(t),this.path(t)];if("function"==typeof e){let o=e(t);o&&r.push(o)}else r.push(e);return this._joinUrlParts(r)},createResourcePathWithSymbols(e){return e?`/${this._joinUrlParts([this.resourcePath,e])}`:`/${this.resourcePath}`},_joinUrlParts:e=>e.join("/").replace(/\/{2,}/g,"/"),_getRequestOpts(e,t,r){var o;let n=(t.method||"GET").toUpperCase(),i=t.usage||[],a=t.urlParams||[],s=t.encode||(e=>e),l=!!t.fullPath,u=c(l?t.fullPath:t.path||""),p=l?t.fullPath:this.createResourcePathWithSymbols(t.path),m=[].slice.call(e),f=a.reduce((e,t)=>{let r=m.shift();if("string"!=typeof r)throw Error(`Stripe: Argument "${t}" must be a string, but got: ${r} (on API request to \`${n} ${p}\`)`);return e[t]=r,e},{}),y=s(Object.assign({},d(m),r)),v=h(m),P=v.host||t.host,g=!!t.streaming;if(m.filter(e=>null!=e).length)throw Error(`Stripe: Unknown arguments (${m}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to ${n} \`${p}\`)`);let T=l?u(f):this.createFullPath(u,f),_=Object.assign(v.headers,t.headers);t.validator&&t.validator(y,{headers:_});let E="GET"===t.method||"DELETE"===t.method;return{requestMethod:n,requestPath:T,bodyData:E?null:y,queryData:E?y:{},authenticator:null!==(o=v.authenticator)&&void 0!==o?o:null,headers:_,host:null!=P?P:null,streaming:g,settings:v.settings,usage:i}},_makeRequest(e,t,r){return new Promise((o,n)=>{var i;let a;try{a=this._getRequestOpts(e,t,r)}catch(e){n(e);return}let s=0===Object.keys(a.queryData).length,l=[a.requestPath,s?"":"?",u(a.queryData,g(a.requestPath))].join(""),{headers:c,settings:d}=a;this._stripe._requestSender._request(a.requestMethod,a.host,l,a.bodyData,a.authenticator,{headers:c,settings:d,streaming:a.streaming},a.usage,function(e,r){e?n(e):o(t.transformResponseData?t.transformResponseData(r):r)},null===(i=this.requestDataProcessor)||void 0===i?void 0:i.bind(this))})}};let ei=er.method,ea=er.extend({retrieve:ei({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}"}),list:ei({method:"GET",fullPath:"/v1/financial_connections/accounts",methodType:"list"}),disconnect:ei({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/disconnect"}),listOwners:ei({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}/owners",methodType:"list"}),refresh:ei({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/refresh"}),subscribe:ei({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/subscribe"}),unsubscribe:ei({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/unsubscribe"})}),es=er.method,el=er.extend({retrieve:es({method:"GET",fullPath:"/v1/entitlements/active_entitlements/{id}"}),list:es({method:"GET",fullPath:"/v1/entitlements/active_entitlements",methodType:"list"})}),eu=er.method,ec=er.extend({create:eu({method:"POST",fullPath:"/v1/billing/alerts"}),retrieve:eu({method:"GET",fullPath:"/v1/billing/alerts/{id}"}),list:eu({method:"GET",fullPath:"/v1/billing/alerts",methodType:"list"}),activate:eu({method:"POST",fullPath:"/v1/billing/alerts/{id}/activate"}),archive:eu({method:"POST",fullPath:"/v1/billing/alerts/{id}/archive"}),deactivate:eu({method:"POST",fullPath:"/v1/billing/alerts/{id}/deactivate"})}),ed=er.method,eh=er.extend({create:ed({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations"}),capture:ed({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/capture"}),expire:ed({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/expire"}),finalizeAmount:ed({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount"}),increment:ed({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/increment"}),respond:ed({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond"}),reverse:ed({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/reverse"})}),ep=er.method,em=er.extend({retrieve:ep({method:"GET",fullPath:"/v1/issuing/authorizations/{authorization}"}),update:ep({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}"}),list:ep({method:"GET",fullPath:"/v1/issuing/authorizations",methodType:"list"}),approve:ep({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/approve"}),decline:ep({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/decline"})}),ef=er.method,ey=er.extend({create:ef({method:"POST",fullPath:"/v1/tax/calculations"}),retrieve:ef({method:"GET",fullPath:"/v1/tax/calculations/{calculation}"}),listLineItems:ef({method:"GET",fullPath:"/v1/tax/calculations/{calculation}/line_items",methodType:"list"})}),ev=er.method,eP=er.extend({create:ev({method:"POST",fullPath:"/v1/issuing/cardholders"}),retrieve:ev({method:"GET",fullPath:"/v1/issuing/cardholders/{cardholder}"}),update:ev({method:"POST",fullPath:"/v1/issuing/cardholders/{cardholder}"}),list:ev({method:"GET",fullPath:"/v1/issuing/cardholders",methodType:"list"})}),eg=er.method,eT=er.extend({deliverCard:eg({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/deliver"}),failCard:eg({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/fail"}),returnCard:eg({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/return"}),shipCard:eg({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/ship"}),submitCard:eg({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/submit"})}),e_=er.method,eE=er.extend({create:e_({method:"POST",fullPath:"/v1/issuing/cards"}),retrieve:e_({method:"GET",fullPath:"/v1/issuing/cards/{card}"}),update:e_({method:"POST",fullPath:"/v1/issuing/cards/{card}"}),list:e_({method:"GET",fullPath:"/v1/issuing/cards",methodType:"list"})}),eb=er.method,eS=er.extend({create:eb({method:"POST",fullPath:"/v1/billing_portal/configurations"}),retrieve:eb({method:"GET",fullPath:"/v1/billing_portal/configurations/{configuration}"}),update:eb({method:"POST",fullPath:"/v1/billing_portal/configurations/{configuration}"}),list:eb({method:"GET",fullPath:"/v1/billing_portal/configurations",methodType:"list"})}),eO=er.method,ex=er.extend({create:eO({method:"POST",fullPath:"/v1/terminal/configurations"}),retrieve:eO({method:"GET",fullPath:"/v1/terminal/configurations/{configuration}"}),update:eO({method:"POST",fullPath:"/v1/terminal/configurations/{configuration}"}),list:eO({method:"GET",fullPath:"/v1/terminal/configurations",methodType:"list"}),del:eO({method:"DELETE",fullPath:"/v1/terminal/configurations/{configuration}"})}),ew=er.method,eA=er.extend({create:ew({method:"POST",fullPath:"/v1/test_helpers/confirmation_tokens"})}),eR=er.method,eC=er.extend({create:eR({method:"POST",fullPath:"/v1/terminal/connection_tokens"})}),eG=er.method,ej=er.extend({retrieve:eG({method:"GET",fullPath:"/v1/billing/credit_balance_summary"})}),eI=er.method,ek=er.extend({retrieve:eI({method:"GET",fullPath:"/v1/billing/credit_balance_transactions/{id}"}),list:eI({method:"GET",fullPath:"/v1/billing/credit_balance_transactions",methodType:"list"})}),eD=er.method,eN=er.extend({create:eD({method:"POST",fullPath:"/v1/billing/credit_grants"}),retrieve:eD({method:"GET",fullPath:"/v1/billing/credit_grants/{id}"}),update:eD({method:"POST",fullPath:"/v1/billing/credit_grants/{id}"}),list:eD({method:"GET",fullPath:"/v1/billing/credit_grants",methodType:"list"}),expire:eD({method:"POST",fullPath:"/v1/billing/credit_grants/{id}/expire"}),voidGrant:eD({method:"POST",fullPath:"/v1/billing/credit_grants/{id}/void"})}),eM=er.method,eF=er.extend({create:eM({method:"POST",fullPath:"/v1/treasury/credit_reversals"}),retrieve:eM({method:"GET",fullPath:"/v1/treasury/credit_reversals/{credit_reversal}"}),list:eM({method:"GET",fullPath:"/v1/treasury/credit_reversals",methodType:"list"})}),eq=er.method,eL=er.extend({fundCashBalance:eq({method:"POST",fullPath:"/v1/test_helpers/customers/{customer}/fund_cash_balance"})}),eU=er.method,eH=er.extend({create:eU({method:"POST",fullPath:"/v1/treasury/debit_reversals"}),retrieve:eU({method:"GET",fullPath:"/v1/treasury/debit_reversals/{debit_reversal}"}),list:eU({method:"GET",fullPath:"/v1/treasury/debit_reversals",methodType:"list"})}),e$=er.method,ez=er.extend({create:e$({method:"POST",fullPath:"/v1/issuing/disputes"}),retrieve:e$({method:"GET",fullPath:"/v1/issuing/disputes/{dispute}"}),update:e$({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}"}),list:e$({method:"GET",fullPath:"/v1/issuing/disputes",methodType:"list"}),submit:e$({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}/submit"})}),eB=er.method,eW=er.extend({retrieve:eB({method:"GET",fullPath:"/v1/radar/early_fraud_warnings/{early_fraud_warning}"}),list:eB({method:"GET",fullPath:"/v1/radar/early_fraud_warnings",methodType:"list"})}),eK=er.method,eV=er.extend({create:eK({method:"POST",fullPath:"/v2/core/event_destinations"}),retrieve:eK({method:"GET",fullPath:"/v2/core/event_destinations/{id}"}),update:eK({method:"POST",fullPath:"/v2/core/event_destinations/{id}"}),list:eK({method:"GET",fullPath:"/v2/core/event_destinations",methodType:"list"}),del:eK({method:"DELETE",fullPath:"/v2/core/event_destinations/{id}"}),disable:eK({method:"POST",fullPath:"/v2/core/event_destinations/{id}/disable"}),enable:eK({method:"POST",fullPath:"/v2/core/event_destinations/{id}
1/enable"}),ping:eK({method:"POST",fullPath:"/v2/core/event_destinations/{id}/ping"})}),eJ=er.method,eQ=er.extend({retrieve(...e){return eJ({method:"GET",fullPath:"/v2/core/events/{id}",transformResponseData:e=>this.addFetchRelatedObjectIfNeeded(e)}).apply(this,e)},list(...e){return eJ({method:"GET",fullPath:"/v2/core/events",methodType:"list",transformResponseData:e=>Object.assign(Object.assign({},e),{data:e.data.map(this.addFetchRelatedObjectIfNeeded.bind(this))})}).apply(this,e)},addFetchRelatedObjectIfNeeded(e){return e.related_object&&e.related_object.url?Object.assign(Object.assign({},e),{fetchRelatedObject:()=>eJ({method:"GET",fullPath:e.related_object.url}).apply(this,[{stripeAccount:e.context}])}):e}}),eX=er.method,eY=er.extend({create:eX({method:"POST",fullPath:"/v1/entitlements/features"}),retrieve:eX({method:"GET",fullPath:"/v1/entitlements/features/{id}"}),update:eX({method:"POST",fullPath:"/v1/entitlements/features/{id}"}),list:eX({method:"GET",fullPath:"/v1/entitlements/features",methodType:"list"})}),eZ=er.method,e1=er.extend({create:eZ({method:"POST",fullPath:"/v1/treasury/financial_accounts"}),retrieve:eZ({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),update:eZ({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),list:eZ({method:"GET",fullPath:"/v1/treasury/financial_accounts",methodType:"list"}),close:eZ({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/close"}),retrieveFeatures:eZ({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"}),updateFeatures:eZ({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"})}),e0=er.method,e2=er.extend({fail:e0({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/fail"}),returnInboundTransfer:e0({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/return"}),succeed:e0({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/succeed"})}),e8=er.method,e6=er.extend({create:e8({method:"POST",fullPath:"/v1/treasury/inbound_transfers"}),retrieve:e8({method:"GET",fullPath:"/v1/treasury/inbound_transfers/{id}"}),list:e8({method:"GET",fullPath:"/v1/treasury/inbound_transfers",methodType:"list"}),cancel:e8({method:"POST",fullPath:"/v1/treasury/inbound_transfers/{inbound_transfer}/cancel"})}),e3=er.method,e5=er.extend({create:e3({method:"POST",fullPath:"/v1/terminal/locations"}),retrieve:e3({method:"GET",fullPath:"/v1/terminal/locations/{location}"}),update:e3({method:"POST",fullPath:"/v1/terminal/locations/{location}"}),list:e3({method:"GET",fullPath:"/v1/terminal/locations",methodType:"list"}),del:e3({method:"DELETE",fullPath:"/v1/terminal/locations/{location}"})}),e4=er.method,e9=er.extend({create:e4({method:"POST",fullPath:"/v1/billing/meter_event_adjustments"})}),e7=er.method,te=er.extend({create:e7({method:"POST",fullPath:"/v2/billing/meter_event_adjustments"})}),tt=er.method,tr=er.extend({create:tt({method:"POST",fullPath:"/v2/billing/meter_event_session"})}),to=er.method,tn=er.extend({create:to({method:"POST",fullPath:"/v2/billing/meter_event_stream",host:"meter-events.stripe.com"})}),ti=er.method,ta=er.extend({create:ti({method:"POST",fullPath:"/v1/billing/meter_events"})}),ts=er.method,tl=er.extend({create:ts({method:"POST",fullPath:"/v2/billing/meter_events"})}),tu=er.method,tc=er.extend({create:tu({method:"POST",fullPath:"/v1/billing/meters"}),retrieve:tu({method:"GET",fullPath:"/v1/billing/meters/{id}"}),update:tu({method:"POST",fullPath:"/v1/billing/meters/{id}"}),list:tu({method:"GET",fullPath:"/v1/billing/meters",methodType:"list"}),deactivate:tu({method:"POST",fullPath:"/v1/billing/meters/{id}/deactivate"}),listEventSummaries:tu({method:"GET",fullPath:"/v1/billing/meters/{id}/event_summaries",methodType:"list"}),reactivate:tu({method:"POST",fullPath:"/v1/billing/meters/{id}/reactivate"})}),td=er.method,th=er.extend({create:td({method:"POST",fullPath:"/v1/climate/orders"}),retrieve:td({method:"GET",fullPath:"/v1/climate/orders/{order}"}),update:td({method:"POST",fullPath:"/v1/climate/orders/{order}"}),list:td({method:"GET",fullPath:"/v1/climate/orders",methodType:"list"}),cancel:td({method:"POST",fullPath:"/v1/climate/orders/{order}/cancel"})}),tp=er.method,tm=er.extend({update:tp({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}"}),fail:tp({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/fail"}),post:tp({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/post"}),returnOutboundPayment:tp({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/return"})}),tf=er.method,ty=er.extend({create:tf({method:"POST",fullPath:"/v1/treasury/outbound_payments"}),retrieve:tf({method:"GET",fullPath:"/v1/treasury/outbound_payments/{id}"}),list:tf({method:"GET",fullPath:"/v1/treasury/outbound_payments",methodType:"list"}),cancel:tf({method:"POST",fullPath:"/v1/treasury/outbound_payments/{id}/cancel"})}),tv=er.method,tP=er.extend({update:tv({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}"}),fail:tv({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail"}),post:tv({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post"}),returnOutboundTransfer:tv({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return"})}),tg=er.method,tT=er.extend({create:tg({method:"POST",fullPath:"/v1/treasury/outbound_transfers"}),retrieve:tg({method:"GET",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}"}),list:tg({method:"GET",fullPath:"/v1/treasury/outbound_transfers",methodType:"list"}),cancel:tg({method:"POST",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel"})}),t_=er.method,tE=er.extend({activate:t_({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}
1/activate"}),deactivate:t_({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate"}),reject:t_({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject"})}),tb=er.method,tS=er.extend({create:tb({method:"POST",fullPath:"/v1/issuing/personalization_designs"}),retrieve:tb({method:"GET",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),update:tb({method:"POST",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),list:tb({method:"GET",fullPath:"/v1/issuing/personalization_designs",methodType:"list"})}),tO=er.method,tx=er.extend({retrieve:tO({method:"GET",fullPath:"/v1/issuing/physical_bundles/{physical_bundle}"}),list:tO({method:"GET",fullPath:"/v1/issuing/physical_bundles",methodType:"list"})}),tw=er.method,tA=er.extend({retrieve:tw({method:"GET",fullPath:"/v1/climate/products/{product}"}),list:tw({method:"GET",fullPath:"/v1/climate/products",methodType:"list"})}),tR=er.method,tC=er.extend({presentPaymentMethod:tR({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/present_payment_method"})}),tG=er.method,tj=er.extend({create:tG({method:"POST",fullPath:"/v1/terminal/readers"}),retrieve:tG({method:"GET",fullPath:"/v1/terminal/readers/{reader}"}),update:tG({method:"POST",fullPath:"/v1/terminal/readers/{reader}"}),list:tG({method:"GET",fullPath:"/v1/terminal/readers",methodType:"list"}),del:tG({method:"DELETE",fullPath:"/v1/terminal/readers/{reader}"}),cancelAction:tG({method:"POST",fullPath:"/v1/terminal/readers/{reader}/cancel_action"}),processPaymentIntent:tG({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_payment_intent"}),processSetupIntent:tG({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_setup_intent"}),refundPayment:tG({method:"POST",fullPath:"/v1/terminal/readers/{reader}/refund_payment"}),setReaderDisplay:tG({method:"POST",fullPath:"/v1/terminal/readers/{reader}/set_reader_display"})}),tI=er.method,tk=er.extend({create:tI({method:"POST",fullPath:"/v1/test_helpers/treasury/received_credits"})}),tD=er.method,tN=er.extend({retrieve:tD({method:"GET",fullPath:"/v1/treasury/received_credits/{id}"}),list:tD({method:"GET",fullPath:"/v1/treasury/received_credits",methodType:"list"})}),tM=er.method,tF=er.extend({create:tM({method:"POST",fullPath:"/v1/test_helpers/treasury/received_debits"})}),tq=er.method,tL=er.extend({retrieve:tq({method:"GET",fullPath:"/v1/treasury/received_debits/{id}"}),list:tq({method:"GET",fullPath:"/v1/treasury/received_debits",methodType:"list"})}),tU=er.method,tH=er.extend({expire:tU({method:"POST",fullPath:"/v1/test_helpers/refunds/{refund}/expire"})}),t$=er.method,tz=er.extend({create:t$({method:"POST",fullPath:"/v1/tax/registrations"}),retrieve:t$({method:"GET",fullPath:"/v1/tax/registrations/{id}"}),update:t$({method:"POST",fullPath:"/v1/tax/registrations/{id}"}),list:t$({method:"GET",fullPath:"/v1/tax/registrations",methodType:"list"})}),tB=er.method,tW=er.extend({create:tB({method:"POST",fullPath:"/v1/reporting/report_runs"}),retrieve:tB({method:"GET",fullPath:"/v1/reporting/report_runs/{report_run}"}),list:tB({method:"GET",fullPath:"/v1/reporting/report_runs",methodType:"list"})}),tK=er.method,tV=er.extend({retrieve:tK({method:"GET",fullPath:"/v1/reporting/report_types/{report_type}"}),list:tK({method:"GET",fullPath:"/v1/reporting/report_types",methodType:"list"})}),tJ=er.method,tQ=er.extend({create:tJ({method:"POST",fullPath:"/v1/forwarding/requests"}),retrieve:tJ({method:"GET",fullPath:"/v1/forwarding/requests/{id}"}),list:tJ({method:"GET",fullPath:"/v1/forwarding/requests",methodType:"list"})}),tX=er.method,tY=er.extend({retrieve:tX({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs/{scheduled_query_run}"}),list:tX({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs",methodType:"list"})}),tZ=er.method,t1=er.extend({create:tZ({method:"POST",fullPath:"/v1/apps/secrets"}),list:tZ({method:"GET",fullPath:"/v1/apps/secrets",methodType:"list"}),deleteWhere:tZ({method:"POST",fullPath:"/v1/apps/secrets/delete"}),find:tZ({method:"GET",fullPath:"/v1/apps/secrets/find"})}),t0=er.method,t2=er.extend({create:t0({method:"POST",fullPath:"/v1/billing_portal/sessions"})}),t8=er.method,t6=er.extend({create:t8({method:"POST",fullPath:"/v1/checkout/sessions"}),retrieve:t8({method:"GET",fullPath:"/v1/checkout/sessions/{session}"}),update:t8({method:"POST",fullPath:"/v1/checkout/sessions/{session}"}),list:t8({method:"GET",fullPath:"/v1/checkout/sessions",methodType:"list"}),expire:t8({method:"POST",fullPath:"/v1/checkout/sessions/{session}/expire"}),listLineItems:t8({method:"GET",fullPath:"/v1/checkout/sessions/{session}/line_items",methodType:"list"})}),t3=er.method,t5=er.extend({create:t3({method:"POST",fullPath:"/v1/financial_connections/sessions"}),retrieve:t3({method:"GET",fullPath:"/v1/financial_connections/sessions/{session}"})}),t4=er.method,t9=er.extend({retrieve:t4({method:"GET",fullPath:"/v1/tax/sett
1ings"}),update:t4({method:"POST",fullPath:"/v1/tax/settings"})}),t7=er.method,re=er.extend({retrieve:t7({method:"GET",fullPath:"/v1/climate/suppliers/{supplier}"}),list:t7({method:"GET",fullPath:"/v1/climate/suppliers",methodType:"list"})}),rt=er.method,rr=er.extend({create:rt({method:"POST",fullPath:"/v1/test_helpers/test_clocks"}),retrieve:rt({method:"GET",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),list:rt({method:"GET",fullPath:"/v1/test_helpers/test_clocks",methodType:"list"}),del:rt({method:"DELETE",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),advance:rt({method:"POST",fullPath:"/v1/test_helpers/test_clocks/{test_clock}/advance"})}),ro=er.method,rn=er.extend({retrieve:ro({method:"GET",fullPath:"/v1/issuing/tokens/{token}"}),update:ro({method:"POST",fullPath:"/v1/issuing/tokens/{token}"}),list:ro({method:"GET",fullPath:"/v1/issuing/tokens",methodType:"list"})}),ri=er.method,ra=er.extend({retrieve:ri({method:"GET",fullPath:"/v1/treasury/transaction_entries/{id}"}),list:ri({method:"GET",fullPath:"/v1/treasury/transaction_entries",methodType:"list"})}),rs=er.method,rl=er.extend({createForceCapture:rs({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_force_capture"}),createUnlinkedRefund:rs({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_unlinked_refund"}),refund:rs({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/{transaction}/refund"})}),ru=er.method,rc=er.extend({retrieve:ru({method:"GET",fullPath:"/v1/financial_connections/transactions/{transaction}"}),list:ru({method:"GET",fullPath:"/v1/financial_connections/transactions",methodType:"list"})}),rd=er.method,rh=er.extend({retrieve:rd({method:"GET",fullPath:"/v1/issuing/transactions/{transaction}"}),update:rd({method:"POST",fullPath:"/v1/issuing/transactions/{transaction}"}),list:rd({method:"GET",fullPath:"/v1/issuing/transactions",methodType:"list"})}),rp=er.method,rm=er.extend({retrieve:rp({method:"GET",fullPath:"/v1/tax/transactions/{transaction}"}),createFromCalculation:rp({method:"POST",fullPath:"/v1/tax/transactions/create_from_calculation"}),createReversal:rp({method:"POST",fullPath:"/v1/tax/transactions/create_reversal"}),listLineItems:rp({method:"GET",fullPath:"/v1/tax/transactions/{transaction}/line_items",methodType:"list"})}),rf=er.method,ry=er.extend({retrieve:rf({method:"GET",fullPath:"/v1/treasury/transactions/{id}"}),list:rf({method:"GET",fullPath:"/v1/treasury/transactions",methodType:"list"})}),rv=er.method,rP=er.extend({create:rv({method:"POST",fullPath:"/v1/radar/value_list_items"}),retrieve:rv({method:"GET",fullPath:"/v1/radar/value_list_items/{item}"}),list:rv({method:"GET",fullPath:"/v1/radar/value_list_items",methodType:"list"}),del:rv({method:"DELETE",fullPath:"/v1/radar/value_list_items/{item}"})}),rg=er.method,rT=er.extend({create:rg({method:"POST",fullPath:"/v1/radar/value_lists"}),retrieve:rg({method:"GET",fullPath:"/v1/radar/value_lists/{value_list}"}),update:rg({method:"POST",fullPath:"/v1/radar/value_lists/{value_list}"}),list:rg({method:"GET",fullPath:"/v1/radar/value_lists",methodType:"list"}),del:rg({method:"DELETE",fullPath:"/v1/radar/value_lists/{value_list}"})}),r_=er.method,rE=er.extend({retrieve:r_({method:"GET",fullPath:"/v1/identity/verification_reports/{report}"}),list:r_({method:"GET",fullPath:"/v1/identity/verification_reports",methodType:"list"})}),rb=er.method,rS=er.extend({create:rb({method:"POST",fullPath:"/v1/identity/verification_sessions"}),retrieve:rb({method:"GET",fullPath:"/v1/identity/verification_sessions/{session}"}),update:rb({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}"}),list:rb({method:"GET",fullPath:"/v1/identity/verification_sessions",methodType:"list"}),cancel:rb({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/cancel"}),redact:rb({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/redact"})}),rO=er.method,rx=er.extend({create:rO({method:"POST",fullPath:"/v1/accounts"}),retrieve(e,...t){return"string"==typeof e?rO({method:"GET",fullPath:"/v1/accounts/{id}"}).apply(this,[e,...t]):(null==e&&[].shift.apply([e,...t]),rO({method:"GET",fullPath:"/v1/account"}).apply(this,[e,...t]))},update:rO({method:"POST",fullPath:"/v1/accounts/{account}"}),list:rO({method:"GET",fullPath:"/v1/accounts",methodType:"list"}),del:rO({method:"DELETE",fullPath:"/v1/accounts/{account}"}),createExternalAccount:rO({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts"}),createLoginLink:rO({method:"POST",fullPath:"/v1/accounts/{account}/login_links"}),createPerson:rO({method:"POST",fullPath:"/v1/accounts/{account}/persons"}),deleteExternalAccount:rO({method:"DELETE",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),deletePerson:rO({method:"DELETE",fullPath:"/v1/accounts/{account}/persons/{person}"}),listCapabilities:rO({method:"GET",fullPath:"/v1/accounts/{account}/capabilities",methodType:"list"}),listExternalAccounts:rO({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts",methodType:"list"}),listPersons:rO({method:"GET",fullPath:"/v1/accounts/{account}/persons",methodType:"list"}),reject:rO({method:"POST",fullPath:"/v1/accounts/{account}/reject"}),retrieveCurrent:rO({method:"GET",fullPath:"/v1/account"}),retrieveCapability:rO({method:"GET",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}
1),retrieveExternalAccount:rO({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),retrievePerson:rO({method:"GET",fullPath:"/v1/accounts/{account}/persons/{person}"}),updateCapability:rO({method:"POST",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}),updateExternalAccount:rO({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),updatePerson:rO({method:"POST",fullPath:"/v1/accounts/{account}/persons/{person}"})}),rw=er.method,rA=er.extend({create:rw({method:"POST",fullPath:"/v1/account_links"})}),rR=er.method,rC=er.extend({create:rR({method:"POST",fullPath:"/v1/account_sessions"})}),rG=er.method,rj=er.extend({create:rG({method:"POST",fullPath:"/v1/apple_pay/domains"}),retrieve:rG({method:"GET",fullPath:"/v1/apple_pay/domains/{domain}"}),list:rG({method:"GET",fullPath:"/v1/apple_pay/domains",methodType:"list"}),del:rG({method:"DELETE",fullPath:"/v1/apple_pay/domains/{domain}"})}),rI=er.method,rk=er.extend({retrieve:rI({method:"GET",fullPath:"/v1/application_fees/{id}"}),list:rI({method:"GET",fullPath:"/v1/application_fees",methodType:"list"}),createRefund:rI({method:"POST",fullPath:"/v1/application_fees/{id}/refunds"}),listRefunds:rI({method:"GET",fullPath:"/v1/application_fees/{id}/refunds",methodType:"list"}),retrieveRefund:rI({method:"GET",fullPath:"/v1/application_fees/{fee}/refunds/{id}"}),updateRefund:rI({method:"POST",fullPath:"/v1/application_fees/{fee}/refunds/{id}"})}),rD=er.method,rN=er.extend({retrieve:rD({method:"GET",fullPath:"/v1/balance"})}),rM=er.method,rF=er.extend({retrieve:rM({method:"GET",fullPath:"/v1/balance_transactions/{id}"}),list:rM({method:"GET",fullPath:"/v1/balance_transactions",methodType:"list"})}),rq=er.method,rL=er.extend({create:rq({method:"POST",fullPath:"/v1/charges"}),retrieve:rq({method:"GET",fullPath:"/v1/charges/{charge}"}),update:rq({method:"POST",fullPath:"/v1/charges/{charge}"}),list:rq({method:"GET",fullPath:"/v1/charges",methodType:"list"}),capture:rq({method:"POST",fullPath:"/v1/charges/{charge}/capture"}),search:rq({method:"GET",fullPath:"/v1/charges/search",methodType:"search"})}),rU=er.method,rH=er.extend({retrieve:rU({method:"GET",fullPath:"/v1/confirmation_tokens/{confirmation_token}"})}),r$=er.method,rz=er.extend({retrieve:r$({method:"GET",fullPath:"/v1/country_specs/{country}"}),list:r$({method:"GET",fullPath:"/v1/country_specs",methodType:"list"})}),rB=er.method,rW=er.extend({create:rB({method:"POST",fullPath:"/v1/coupons"}),retrieve:rB({method:"GET",fullPath:"/v1/coupons/{coupon}"}),update:rB({method:"POST",fullPath:"/v1/coupons/{coupon}"}),list:rB({method:"GET",fullPath:"/v1/coupons",methodType:"list"}),del:rB({method:"DELETE",fullPath:"/v1/coupons/{coupon}"})}),rK=er.method,rV=er.extend({create:rK({method:"POST",fullPath:"/v1/credit_notes"}),retrieve:rK({method:"GET",fullPath:"/v1/credit_notes/{id}"}),update:rK({method:"POST",fullPath:"/v1/credit_notes/{id}"}),list:rK({method:"GET",fullPath:"/v1/credit_notes",methodType:"list"}),listLineItems:rK({method:"GET",fullPath:"/v1/credit_notes/{credit_note}/lines",methodType:"list"}),listPreviewLineItems:rK({method:"GET",fullPath:"/v1/credit_notes/preview/lines",methodType:"list"}),preview:rK({method:"GET",fullPath:"/v1/credit_notes/preview"}),voidCreditNote:rK({method:"POST",fullPath:"/v1/credit_notes/{id}/void"})}),rJ=er.method,rQ=er.extend({create:rJ({method:"POST",fullPath:"/v1/customer_sessions"})}),rX=er.method,rY=er.extend({create:rX({method:"POST",fullPath:"/v1/customers"}),retrieve:rX({method:"GET",fullPath:"/v1/customers/{customer}"}),update:rX({method:"POST",fullPath:"/v1/customers/{customer}"}),list:rX({method:"GET",fullPath:"/v1/customers",methodType:"list"}),del:rX({method:"DELETE",fullPath:"/v1/customers/{customer}"}),createBalanceTransaction:rX({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions"}),createFundingInstructions:rX({method:"POST",fullPath:"/v1/customers/{customer}/funding_instructions"}),createSource:rX({method:"POST",fullPath:"/v1/customers/{customer}/sources"}),createTaxId:rX({method:"POST",fullPath:"/v1/customers/{customer}/tax_ids"}),deleteDiscount:rX({method:"DELETE",fullPath:"/v1/customers/{customer}/discount"}),deleteSource:rX({method:"DELETE",fullPath:"/v1/customers/{customer}/sources/{id}"}),deleteTaxId:rX({method:"DELETE",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),listBalanceTransactions:rX({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions",methodType:"list"}),listCashBalanceTransactions:rX({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions",methodType:"list"}),listPaymentMethods:rX({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods",methodType:"list"}
1),listSources:rX({method:"GET",fullPath:"/v1/customers/{customer}/sources",methodType:"list"}),listTaxIds:rX({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids",methodType:"list"}),retrieveBalanceTransaction:rX({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),retrieveCashBalance:rX({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance"}),retrieveCashBalanceTransaction:rX({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions/{transaction}"}),retrievePaymentMethod:rX({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods/{payment_method}"}),retrieveSource:rX({method:"GET",fullPath:"/v1/customers/{customer}/sources/{id}"}),retrieveTaxId:rX({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),search:rX({method:"GET",fullPath:"/v1/customers/search",methodType:"search"}),updateBalanceTransaction:rX({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),updateCashBalance:rX({method:"POST",fullPath:"/v1/customers/{customer}/cash_balance"}),updateSource:rX({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}"}),verifySource:rX({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}/verify"})}),rZ=er.method,r1=er.extend({retrieve:rZ({method:"GET",fullPath:"/v1/disputes/{dispute}"}),update:rZ({method:"POST",fullPath:"/v1/disputes/{dispute}"}),list:rZ({method:"GET",fullPath:"/v1/disputes",methodType:"list"}),close:rZ({method:"POST",fullPath:"/v1/disputes/{dispute}/close"})}),r0=er.method,r2=er.extend({create:r0({method:"POST",fullPath:"/v1/ephemeral_keys",validator:(e,t)=>{if(!t.headers||!t.headers["Stripe-Version"])throw Error("Passing apiVersion in a separate options hash is required to create an ephemeral key. See https://stripe.com/docs/api/versioning?lang=node")}}),del:r0({method:"DELETE",fullPath:"/v1/ephemeral_keys/{key}"})}),r8=er.method,r6=er.extend({retrieve:r8({method:"GET",fullPath:"/v1/events/{id}"}),list:r8({method:"GET",fullPath:"/v1/events",methodType:"list"})}),r3=er.method,r5=er.extend({retrieve:r3({method:"GET",fullPath:"/v1/exchange_rates/{rate_id}"}),list:r3({method:"GET",fullPath:"/v1/exchange_rates",methodType:"list"})}),r4=er.method,r9=er.extend({create:r4({method:"POST",fullPath:"/v1/file_links"}),retrieve:r4({method:"GET",fullPath:"/v1/file_links/{link}"}),update:r4({method:"POST",fullPath:"/v1/file_links/{link}"}),list:r4({method:"GET",fullPath:"/v1/file_links",methodType:"list"})}),r7=(e,t,r)=>{let o=(Math.round(1e16*Math.random())+Math.round(1e16*Math.random())).toString();r["Content-Type"]=`multipart/form-data; boundary=${o}`;let n=new TextEncoder,i=new Uint8Array(0),a=n.encode("\r\n");function s(e){let t=i,r=e instanceof Uint8Array?e:new Uint8Array(n.encode(e));(i=new Uint8Array(t.length+r.length+2)).set(t),i.set(r,t.length),i.set(a,i.length-2)}function l(e){return`"${e.replace(/"|"/g,"%22").replace(/\r\n|\r|\n/g," ")}"`}let u=function(e){let t={},r=(e,o)=>{Object.entries(e).forEach(([e,n])=>{let i=o?`${o}[${e}]`:e;if(function(e){let t=typeof e;return("function"===t||"object"===t)&&!!e}(n)){if(!(n instanceof Uint8Array)&&!Object.prototype.hasOwnProperty.call(n,"data"))return r(n,i);t[i]=n}else t[i]=String(n)})};return r(e,null),t}(t);for(let e in u){if(!Object.prototype.hasOwnProperty.call(u,e))continue;let t=u[e];s(`--${o}`),Object.prototype.hasOwnProperty.call(t,"data")?(s(`Content-Disposition: form-data; name=${l(e)}; filename=${l(t.name||"blob")}`),s(`Content-Type: ${t.type||"application/octet-stream"}`),s(""),s(t.data)):(s(`Content-Disposition: form-data; name=${l(e)}`),s(""),s(t))}return s(`--${o}--`),i},oe=er.method,ot=er.extend({create:oe({method:"POST",fullPath:"/v1/files",headers:{"Content-Type":"multipart/form-data"},host:"files.stripe.com"}),retrieve:oe({method:"GET",fullPath:"/v1/files/{file}"}),list:oe({method:"GET",fullPath:"/v1/files",methodType:"list"}),requestDataProcessor:function(e,t,r,o){if(t=t||{},"POST"!==e)return o(null,u(t));this._stripe._platformFunctions.tryBufferData(t).then(t=>o(null,r7(e,t,r))).catch(e=>o(e,null))}}),or=er.method,oo=er.extend({create:or({method:"POST",fullPath:"/v1/invoiceitems"}),retrieve:or({method:"GET",fullPath:"/v1/invoiceitems/{invoiceitem}"}),update:or({method:"POST",fullPath:"/v1/invoiceitems/{invoiceitem}"}),list:or({method:"GET",fullPath:"/v1/invoiceitems",methodType:"list"}),del:or({method:"DELETE",fullPath:"/v1/invoiceitems/{invoiceitem}"})}),on=er.method,oi=er.extend({retrieve:on({method:"GET",fullPath:"/v1/invoice_payments/{invoice_payment}"}),list:on({method:"GET",fullPath:"/v1/invoice_payments",methodType:"list"})}),oa=er.method,os=er.extend({retrieve:oa({method:"GET",fullPath:"/v1/invoice_rendering_templates/{template}"}),list:oa({method:"GET",fullPath:"/v1/invoice_rendering_templates",methodType:"list"}),archive:oa({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/archive"}),unarchive:oa({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/unarchive"})}),ol=er.method,ou=er.extend({create:ol({method:"POST",fullPath:"/v1/invoices"}),retrieve:ol({method:"GET",fullPath:"/v1/invoices/{invoice}"}),update:ol({method:"POST",fullPath:"/v1/invoices/{invoice}"}),list:ol({method:"GET",fullPath:"/v1/invoices",methodType:"list"}),del:ol({method:"DELETE",fullPath:"/v1/invoices/{invoice}"}),addLines:ol({method:"POST",fullPath:"/v1/invoices/{invoice}/add_lines"}),createPreview:ol({method:"POST",fullPath:"/v1/invoices/create_preview"}),finalizeInvoice:ol({method:"POST",fullPath:"/v1/invoices/{invoice}/finalize"}),listLineItems:ol({method:"GET",fullPath:"/v1/invoices/{invoice}/lines",methodType:"list"}),markUncollectible:ol({method:"POST",fullPath:"/v1/invoices/{invoice}/mark_uncollectible"}),pay:ol({method:"POST",fullPath:"/v1/invoices/{invoice}/pay"}),removeLines:ol({method:"POST",fullPath:"/v1/invoices/{invoice}/remove_lines"}),search:ol({method:"GET",fullPath:"/v1/invoices/search",methodType:"search"}),sendInvoice:ol({method:"POST",fullPath:"/v1/invoices/{invoice}/send"}),updateLines:ol({method:"POST",fullPath:"/v1/invoices/{invoice}/update_lines"}),updateLineItem:ol({method:"POST",fullPath:"/v1/invoices/{invoice}/lines/{line_item_id}"}),voidInvoice:ol({method:"POST",fullPath:"/v1/invoices/{invoice}/void"})}),oc=er.method,od=er.extend({retrieve:oc({method:"GET",fullPath:"/v1/mandates/{mandate}"})}),oh=er.method,op="connect.stripe.com",om=er.extend({basePath:"/",authorizeUrl(e,t){e=e||{};let r="oauth/authorize";return(t=t||{}).express&&(r=`express/${r}`),e.response_type||(e.response_type="code"),e.client_id||(e.client_id=this._stripe.getClientId()),e.scope||(e.scope="read_write"),`https://${op}/${r}?${u(e)}`},token:oh({method:"POST",path:"oauth/token",host:op}),deauthorize(e,...t){return e.client_id||(e.client_id=this._stripe.getClientId()),oh({method:"POST",path:"oauth/deauthorize",host:op}).apply(this,[e,...t])}}),of=er.method,oy=er.extend({create:of({method:"POST",fullPath:"/v1/payment_intents"}),retrieve:of({method:"GET",fullPath:"/v1/payment_intents/{intent}"}),update:of({method:"POST",fullPath:"/v1/payment_intents/{intent}"}),list:of({method:"GET",fullPath:"/v1/payment_intents",methodType:"list"}),applyCustomerBalance:of({method:"POST",fullPath:"/v1/payment_intents/{intent}/apply_customer_balance"}),cancel:of({method:"POST",fullPath:"/v1/payment_intents/{intent}/cancel"}),capture:of({method:"POST",fullPath:"/v1/payment_intents/{intent}/capture"}),confirm:of({method:"POST",fullPath:"/v1/payment_intents/{intent}/confirm"}),incrementAuthorization:of({method:"POST",fullPath:"/v1/payment_intents/{intent}/increment_authorization"}),search:of({method:"GET",fullPath:"/v1/payment_intents/search",methodType:"search"}),verifyMicrodeposits:of({method:"POST",fullPath:"/v1/payment_intents/{intent}/verify_microdeposits"})}),ov=er.method,oP=er.extend({create:ov({method:"POST",fullPath:"/v1/payment_links"}),retrieve:ov({method:"GET",fullPath:"/v1/payment_links/{payment_link}"}),update:ov({method:"POST",fullPath:"/v1/payment_links/{payment_link}"}),list:ov({method:"GET",fullPath:"/v1/payment_links",methodType:"list"}),listLineItems:ov({method:"GET",fullPath:"/v1/payment_links/{payment_link}/line_items",methodType:"list"})}),og=er.method,oT=er.extend({create:og({method:"POST",fullPath:"/v1/payment_method_configurations"}),retrieve:og({method:"GET",fullPath:"/v1/payment_method_configurations/{configuration}"}),update:og({method:"POST",fullPath:"/v1/payment_method_configurations/{configuration}"}),list:og({method:"GET",fullPath:"/v1/payment_method_configurations",methodType:"list"})}),o_=er.method,oE=er.extend({create:o_({method:"POST",fullPath:"/v1/payment_method_domains"}),retrieve:o_({method:"GET",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),update:o_({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),list:o_({method:"GET",fullPath:"/v1/payment_method_domains",methodType:"list"}),validate:o_({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}/validate"})}),ob=er.method,oS=er.extend({create:ob({method:"POST",fullPath:"/v1/payment_methods"}),retrieve:ob({method:"GET",fullPath:"/v1/payment_methods/{payment_method}"}),update:ob({method:"POST",fullPath:"/v1/payment_methods/{payment_method}"}),list:ob({method:"GET",fullPath:"/v1/payment_methods",methodType:"list"}),attach:ob({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/attach"}),detach:ob({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/detach"})}),oO=er.method,ox=er.extend({create:oO({method:"POST",fullPath:"/v1/payouts"}),retrieve:oO({method:"GET",fullPath:"/v1/payouts/{payout}"}),update:oO({method:"POST",fullPath:"/v1/payouts/{payout}"}),list:oO({method:"GET",fullPath:"/v1/payouts",methodType:"list"}),cancel:oO({method:"POST",fullPath:"/v1/payouts/{payout}/cancel"}),reverse:oO({method:"POST",fullPath:"/v1/payouts/{payout}/reverse"})}),ow=er.method,oA=er.extend({create:ow({method:"POST",fullPath:"/v1/plans"}),retrieve:ow({method:"GET",fullPath:"/v1/plans/{plan}"}),update:ow({method:"POST",fullPath:"/v1/plans/{plan}"}),list:ow({method:"GET",fullPath:"/v1/plans",methodType:"list"}),del:ow({method:"DELETE",fullPath:"/v1/plans/{plan}"})}),oR=er.method,oC=er.extend({create:oR({method:"POST",fullPath:"/v1/prices"}),retrieve:oR({method:"GET",fullPath:"/v1/prices/{price}"}),update:oR({method:"POST",fullPath:"/v1/prices/{price}"}),list:oR({method:"GET",fullPath:"/v1/prices",methodType:"list"}),search:oR({method:"GET",fullPath:"/v1/prices/search",methodType:"search"})}),oG=er.method,oj=er.extend({create:oG({method:"POST",fullPath:"/v1/products"}),retrieve:oG({method:"GET",fullPath:"/v1/products/{id}"}),update:oG({method:"POST",fullPath:"/v1/products/{id}"}),list:oG({method:"GET",fullPath:"/v1/products",methodType:"list"}),del:oG({method:"DELETE",fullPath:"/v1/products/{id}"}),createFeature:oG({method:"POST",fullPath:"/v1/products/{product}/features"}),deleteFeature:oG({method:"DELETE",fullPath:"/v1/products/{product}/features/{id}"}),listFeatures:oG({method:"GET",fullPath:"/v1/products/{product}/features",methodType:"list"}),retrieveFeature:oG({method:"GET",fullPath:"/v1/products/{product}/features/{id}"}),search:oG({method:"GET",fullPath:"/v1/products/search",methodType:"search"})}),oI=er.method,ok=er.extend({create:oI({method:"POST",fullPath:"/v1/promotion_codes"}),retrieve:oI({method:"GET",fullPath:"/v1/promotion_codes/{promotion_code}"}),update:oI({method:"POST",fullPath:"/v1/promotion_codes/{promotion_code}"}),list:oI({method:"GET",fullPath:"/v1/promotion_codes",methodType:"list"})}),oD=er.method,oN=er.extend({create:oD({method:"POST",fullPath:"/v1/quotes"}),retrieve:oD({method:"GET",fullPath:"/v1/quotes/{quote}"}),update:oD({method:"POST",fullPath:"/v1/quotes/{quote}"}),list:oD({method:"GET",fullPath:"/v1/quotes",methodType:"list"}),accept:oD({method:"POST",fullPath:"/v1/quotes/{quote}/accept"}),cancel:oD({method:"POST",fullPath:"/v1/quotes/{quote}/cancel"}),finalizeQuote:oD({method:"POST",fullPath:"/v1/quotes/{quote}/finalize"}),listComputedUpfrontLineItems:oD({method:"GET",fullPath:"/v1/quotes/{quote}/computed_upfront_line_items",methodType:"list"}),listLineItems:oD({method:"GET",fullPath:"/v1/quotes/{quote}/line_items",methodType:"list"}),pdf:oD({method:"GET",fullPath:"/v1/quotes/{quote}/pdf",host:"files.stripe.com",streaming:!0})}),oM=er.method,oF=er.extend({create:oM({method:"POST",fullPath:"/v1/refunds"}),retrieve:oM({method:"GET",fullPath:"/v1/refunds/{refund}"}),update:oM({method:"POST",fullPath:"/v1/refunds/{refund}"}),list:oM({method:"GET",fullPath:"/v1/refunds",methodType:"list"}),cancel:oM({method:"POST",fullPath:"/v1/refunds/{refund}/cancel"})}),oq=er.method,oL=er.extend({retrieve:oq({method:"GET",fullPath:"/v1/reviews/{review}"}),list:oq({method:"GET",fullPath:"/v1/reviews",methodType:"list"}),approve:oq({method:"POST",fullPath:"/v1/reviews/{review}/approve"})}),oU=er.method,oH=er.extend({list:oU({method:"GET",fullPath:"/v1/setup_attempts",methodType:"list"})}),o$=er.method,oz=er.extend({create:o$({method:"POST",fullPath:"/v1/setup_intents"}),retrieve:o$({method:"GET",fullPath:"/v1/setup_intents/{intent}"}),update:o$({method:"POST",fullPath:"/v1/setup_intents/{intent}"}),list:o$({method:"GET",fullPath:"/v1/setup_intents",methodType:"list"}),cancel:o$({method:"POST",fullPath:"/v1/setup_intents/{intent}/cancel"}),confirm:o$({method:"POST",fullPath:"/v1/setup_intents/{intent}/confirm"}),verifyMicrodeposits:o$({method:"POST",fullPath:"/v1/setup_intents/{intent}/verify_microdeposits"})}),oB=er.method,oW=er.extend({create:oB({method:"POST",fullPath:"/v1/shipping_rates"}),retrieve:oB({method:"GET",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),update:oB({method:"POST",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),list:oB({method:"GET",fullPath:"/v1/shipping_rates",methodType:"list"})}),oK=er.method,oV=er.extend({create:oK({method:"POST",fullPath:"/v1/sources"}),retrieve:oK({method:"GET",fullPath:"/v1/sources/{source}"}),update:oK({method:"POST",fullPath:"/v1/sources/{source}"}),listSourceTransactions:oK({method:"GET",fullPath:"/v1/sources/{source}/source_transactions",methodType:"list"}),verify:oK({method:"POST",fullPath:"/v1/sources/{source}/verify"})}),oJ=er.method,oQ=er.extend({create:oJ({method:"POST",fullPath:"/v1/subscription_items"}),retrieve:oJ({method:"GET",fullPath:"/v1/subscription_items/{item}"}),update:oJ({method:"POST",fullPath:"/v1/subscription_items/{item}"}),list:oJ({method:"GET",fullPath:"/v1/subscription_items",methodType:"list"}),del:oJ({method:"DELETE",fullPath:"/v1/subscription_items/{item}"})}),oX=er.method,oY=er.extend({create:oX({method:"POST",fullPath:"/v1/subscription_schedules"}),retrieve:oX({method:"GET",fullPath:"/v1/subscription_schedules/{schedule}"}),update:oX({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}"}),list:oX({method:"GET",fullPath:"/v1/subscription_schedules",methodType:"list"}),cancel:oX({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/cancel"}),release:oX({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/release"})}),oZ=er.method,o1=er.extend({create:oZ({method:"POST",fullPath:"/v1/subscriptions"}),retrieve:oZ({method:"GET",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),update:oZ({method:"POST",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),list:oZ({method:"GET",fullPath:"/v1/subscriptions",methodType:"list"}),cancel:oZ({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),deleteDiscount:oZ({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}/discount"}),resume:oZ({method:"POST",fullPath:"/v1/subscriptions/{subscription}/resume"}),search:oZ({method:"GET",fullPath:"/v1/subscriptions/search",methodType:"search"})}),o0=er.method,o2=er.extend({retrieve:o0({method:"GET",fullPath:"/v1/tax_codes/{id}"}),list:o0({method:"GET",fullPath:"/v1/tax_codes",methodType:"list"})}),o8=er.method,o6=er.extend({create:o8({method:"POST",fullPath:"/v1/tax_ids"}),retrieve:o8({method:"GET",fullPath:"/v1/tax_ids/{id}"}),list:o8({method:"GET",fullPath:"/v1/tax_ids",methodType:"list"}),del:o8({method:"DELETE",fullPath:"/v1/tax_ids/{id}"})}),o3=er.method,o5=er.extend({create:o3({method:"POST",fullPath:"/v1/tax_rates"}),retrieve:o3({method:"GET",fullPath:"/v1/tax_rates/{tax_rate}"}),update:o3({method:"POST",fullPath:"/v1/tax_rates/{tax_rate}"}),list:o3({method:"G
1ET",fullPath:"/v1/tax_rates",methodType:"list"})}),o4=er.method,o9=er.extend({create:o4({method:"POST",fullPath:"/v1/tokens"}),retrieve:o4({method:"GET",fullPath:"/v1/tokens/{token}"})}),o7=er.method,ne=er.extend({create:o7({method:"POST",fullPath:"/v1/topups"}),retrieve:o7({method:"GET",fullPath:"/v1/topups/{topup}"}),update:o7({method:"POST",fullPath:"/v1/topups/{topup}"}),list:o7({method:"GET",fullPath:"/v1/topups",methodType:"list"}),cancel:o7({method:"POST",fullPath:"/v1/topups/{topup}/cancel"})}),nt=er.method,nr=er.extend({create:nt({method:"POST",fullPath:"/v1/transfers"}),retrieve:nt({method:"GET",fullPath:"/v1/transfers/{transfer}"}),update:nt({method:"POST",fullPath:"/v1/transfers/{transfer}"}),list:nt({method:"GET",fullPath:"/v1/transfers",methodType:"list"}),createReversal:nt({method:"POST",fullPath:"/v1/transfers/{id}/reversals"}),listReversals:nt({method:"GET",fullPath:"/v1/transfers/{id}/reversals",methodType:"list"}),retrieveReversal:nt({method:"GET",fullPath:"/v1/transfers/{transfer}/reversals/{id}"}),updateReversal:nt({method:"POST",fullPath:"/v1/transfers/{transfer}/reversals/{id}"})}),no=er.method,nn=er.extend({create:no({method:"POST",fullPath:"/v1/webhook_endpoints"}),retrieve:no({method:"GET",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),update:no({method:"POST",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),list:no({method:"GET",fullPath:"/v1/webhook_endpoints",methodType:"list"}),del:no({method:"DELETE",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"})}),ni=en("apps",{Secrets:t1}),na=en("billing",{Alerts:ec,CreditBalanceSummary:ej,CreditBalanceTransactions:ek,CreditGrants:eN,MeterEventAdjustments:e9,MeterEvents:ta,Meters:tc}),ns=en("billingPortal",{Configurations:eS,Sessions:t2}),nl=en("checkout",{Sessions:t6}),nu=en("climate",{Orders:th,Products:tA,Suppliers:re}),nc=en("entitlements",{ActiveEntitlements:el,Features:eY}),nd=en("financialConnections",{Accounts:ea,Sessions:t5,Transactions:rc}),nh=en("forwarding",{Requests:tQ}),np=en("identity",{VerificationReports:rE,VerificationSessions:rS}),nm=en("issuing",{Authorizations:em,Cardholders:eP,Cards:eE,Disputes:ez,PersonalizationDesigns:tS,PhysicalBundles:tx,Tokens:rn,Transactions:rh}),nf=en("radar",{EarlyFraudWarnings:eW,ValueListItems:rP,ValueLists:rT}),ny=en("reporting",{ReportRuns:tW,ReportTypes:tV}),nv=en("sigma",{ScheduledQueryRuns:tY}),nP=en("tax",{Calculations:ey,Registrations:tz,Settings:t9,Transactions:rm}),ng=en("terminal",{Configurations:ex,ConnectionTokens:eC,Locations:e5,Readers:tj}),nT=en("testHelpers",{ConfirmationTokens:eA,Customers:eL,Refunds:tH,TestClocks:rr,Issuing:en("issuing",{Authorizations:eh,Cards:eT,PersonalizationDesigns:tE,Transactions:rl}),Terminal:en("terminal",{Readers:tC}),Treasury:en("treasury",{InboundTransfers:e2,OutboundPayments:tm,OutboundTransfers:tP,ReceivedCredits:tk,ReceivedDebits:tF})}),n_=en("treasury",{CreditReversals:eF,DebitReversals:eH,FinancialAccounts:e1,InboundTransfers:e6,OutboundPayments:ty,OutboundTransfers:tT,ReceivedCredits:tN,ReceivedDebits:tL,TransactionEntries:ra,Transactions:ry}),nE=en("v2",{Billing:en("billing",{MeterEventAdjustments:te,MeterEventSession:tr,MeterEventStream:tn,MeterEvents:tl}),Core:en("core",{EventDestinations:eV,Events:eQ})}),nb="api.stripe.com",nS="/v1/",nO="2025-04-30.basil",nx=["name","version","url","partner_id"],nw=["authenticator","apiVersion","typescript","maxNetworkRetries","httpAgent","httpClient","timeout","host","port","protocol","telemetry","appInfo","stripeAccount","stripeContext"],nA=e=>new V(e,er.MAX_BUFFERED_REQUEST_METRICS);!function(e,t=nA){function r(n,i={}){if(!(this instanceof r))return new r(n,i);let a=this._getPropsFromConfig(i);this._platformFunctions=e,Object.defineProperty(this,"_emitter",{value:this._platformFunctions.createEmitter(),enumerable:!1,configurable:!1,writable:!1}),this.VERSION=r.PACKAGE_VERSION,this.on=this._emitter.on.bind(this._emitter),this.once=this._emitter.once.bind(this._emitter),this.off=this._emitter.removeListener.bind(this._emitter);let s=a.httpAgent||null;this._api={host:a.host||nb,port:a.port||"443",protocol:a.protocol||"https",basePath:nS,version:a.apiVersion||nO,timeout:y("timeout",a.timeout,8e4),maxNetworkRetries:y("maxNetworkRetries",a.maxNetworkRetries,2),agent:s,httpClient:a.httpClient||(s?this._platformFunctions.createNodeHttpClient(s):this._platformFunctions.createDefaultHttpClient()),dev:!1,stripeAccount:a.stripeAccount||null,stripeContext:a.stripeContext||null};let l=a.typescript||!1;l!==r.USER_AGENT.typescript&&(r.USER_AGENT.typescript=l),a.appInfo&&this._setAppInfo(a.appInfo),this._prepResources(),this._setAuthenticator(n,a.authenticator),this.errors=o,this.webhooks=r.webhooks,this._prevRequestMetrics=[],this._enableTelemetry=!1!==a.telemetry,this._requestSender=t(this),this.Str
1ipeResource=r.StripeResource}r.PACKAGE_VERSION="18.1.0",r.USER_AGENT=Object.assign({bindings_version:r.PACKAGE_VERSION,lang:"node",publisher:"stripe",uname:null,typescript:!1},void 0===a?{}:{lang_version:a.version,platform:a.platform}),r.StripeResource=er,r.resources=n,r.HttpClient=_,r.HttpClientResponse=E,r.CryptoProvider=O,r.webhooks=function(e){let t={DEFAULT_TOLERANCE:300,signature:null,constructEvent(e,r,o,n,i,a){try{if(!this.signature)throw Error("ERR: missing signature helper, unable to verify");this.signature.verifyHeader(e,r,o,n||t.DEFAULT_TOLERANCE,i,a)}catch(e){throw e instanceof x&&(e.message+="\nUse `await constructEventAsync(...)` instead of `constructEvent(...)`"),e}return e instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(e)):JSON.parse(e)},async constructEventAsync(e,r,o,n,i,a){if(!this.signature)throw Error("ERR: missing signature helper, unable to verify");return await this.signature.verifyHeaderAsync(e,r,o,n||t.DEFAULT_TOLERANCE,i,a),e instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(e)):JSON.parse(e)},generateTestHeaderString:function(e){let t=l(e),r=t.signature||t.cryptoProvider.computeHMACSignature(t.payloadString,t.secret);return t.generateHeaderString(r)},generateTestHeaderStringAsync:async function(e){let t=l(e),r=t.signature||await t.cryptoProvider.computeHMACSignatureAsync(t.payloadString,t.secret);return t.generateHeaderString(r)}},r={EXPECTED_SCHEME:"v1",verifyHeader(e,t,r,a,l,u){let{decodedHeader:c,decodedPayload:d,details:h,suspectPayloadType:p}=n(e,t,this.EXPECTED_SCHEME),m=/\s/.test(r),f=(l=l||s()).computeHMACSignature(o(d,h),r);return i(d,c,h,f,a,p,m,u),!0},async verifyHeaderAsync(e,t,r,a,l,u){let{decodedHeader:c,decodedPayload:d,details:h,suspectPayloadType:p}=n(e,t,this.EXPECTED_SCHEME),m=/\s/.test(r);l=l||s();let f=await l.computeHMACSignatureAsync(o(d,h),r);return i(d,c,h,f,a,p,m,u)}};function o(e,t){return`${t.timestamp}.${e}`}function n(e,t,r){if(!e)throw new $(t,e,{message:"No webhook payload was provided."});let o="string"!=typeof e&&!(e instanceof Uint8Array),n=new TextDecoder("utf8"),i=e instanceof Uint8Array?n.decode(e):e;if(Array.isArray(t))throw Error("Unexpected: An array was passed as a header, which should not be possible for the stripe-signature header.");if(null==t||""==t)throw new $(t,e,{message:"No stripe-signature header value was provided."});let a=t instanceof Uint8Array?n.decode(t):t,s="string"!=typeof a?null:a.split(",").reduce((e,t)=>{let o=t.split("=");return"t"===o[0]&&(e.timestamp=parseInt(o[1],10)),o[0]===r&&e.signatures.push(o[1]),e},{timestamp:-1,signatures:[]});if(!s||-1===s.timestamp)throw new $(a,i,{message:"Unable to extract timestamp and signatures from header"});if(!s.signatures.length)throw new $(a,i,{message:"No signatures found with expected scheme"});return{decodedPayload:i,decodedHeader:a,details:s,suspectPayloadType:o}}function i(t,r,o,n,i,a,s,l){let u=!!o.signatures.filter(e.secureCompare.bind(e,n)).length,c="\nLearn more about webhook signing and explore webhook integration examples for various frameworks at https://docs.stripe.com/webhooks/signature",d=s?"\n\nNote: The provided signing secret contains whitespace. This often indicates an extra newline or space is in the value":"";if(!u){if(a)throw new $(r,t,{message:"Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the _raw_ request body.Payload was provided as a parsed JavaScript object instead. \nSignature verification is impossible without access to the original signed material. \n"+c+"\n"+d});throw new $(r,t,{message:"No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? \n If a webhook request is being forwarded by a third-party tool, ensure that the exact request body, including JSON formatting and new line style, is preserved.\n"+c+"\n"+d})}let h=Math.floor(("number"==typeof l?l:Date.now())/1e3)-o.timestamp;if(i>0&&h>i)throw new $(r,t,{message:"Timestamp outside the tolerance zone"});return!0}let a=null;function s(){return a||(a=e.createDefaultCryptoProvider()),a}function l(e){if(!e)throw new D({message:"Options are required"});let t=Math.floor(e.timestamp)||Math.floor(Date.now()/1e3),o=e.scheme||r.EXPECTED_SCHEME,n=e.cryptoProvider||s(),i=`${t}.${e.payload}`;return Object.assign(Object.assign({},e),{timestamp:t,scheme:o,cryptoProvider:n,payloadString:i,generateHeaderString:e=>`t=${t},${o}=${e}`})}return t.signature=r,t}(e),r.errors=o,r.createNodeHttpClient=e.createNodeHttpClient,r.createFetchHttpClient=e.createFetchHttpClient,r.createNodeCryptoProvider=e.createNodeCryptoProvider,r.createSubtleCryptoProvider=e.createSubtleCryptoProvider,r.prototype={_appInfo:void 0,on:null,off:null,once:null,VERSION:null,StripeResource:null,webhooks:null,errors:null,_api:null,_prevRequestMetrics:null,_emitter:null,_enableTelemetry:null,_requestSender:null,_platformFunctions:null,rawRequest(e,t,r,o){return this._requestSender._rawRequest(e,t,r,o)},_setAuthenticator(e,t){if(e&&t)throw Error("Can't specify both apiKey and authenticator");if(!e&&!t)throw Error("Neither apiKey nor config.authenticator provided");this._authenticator=e?v(e):t},_setAppInfo(e){if(e&&"object"!=typeof e)throw Error("AppInfo must be an object.");if(e&&!e.name)throw Error("AppInfo.name is required");e=e||{},this._appInfo=nx.reduce((t,r)=>("string"==typeof e[r]&&((t=t||{})[r]=e[r]),t),{})},_setApiField(e,t){this._api[e]=t},getApiField(e){return this._api[e]},setClientId(e){this._clientId=e},getClientId(){return this._clientId},getConstant:e=>{switch(e){case"DEFAULT_HOST":return nb;case"DEFAULT_PORT":return"443";case"DEFAULT_BASE_PATH":return nS;case"DEFAULT_API_VERSION":return nO;case"DEFAULT_TIMEOUT":return 8e4;case"MAX_NETWORK_RETRY_DELAY_SEC":return 5;case"INITIAL_NETWORK_RETRY_DELAY_SEC":return .5}return r[e]},getMaxNetworkRetries(){return this.getApiField("maxNetworkRetries")},_setApiNumberField(e,t,r){let o=y(e,t,r);this._setApiField(e,o)},getMaxNetworkRetryDelay:()=>5,getInitialNetworkRetryDelay:()=>.5,getClientUserAgent(e){return this.getClientUserAgentSeeded(r.USER_AGENT,e)},getClientUserAgentSeeded(e,t){this._platformFunctions.getUname().then(r=>{var o;let n={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=encodeURIComponent(null!==(o=e[t])&&void 0!==o?o:"null"));n.uname=encodeURIComponent(r||"UNKNOWN");let i=this.getApiField("httpClient");
1i&&(n.httplib=encodeURIComponent(i.getClientName())),this._appInfo&&(n.application=this._appInfo),t(JSON.stringify(n))})},getAppInfoAsString(){if(!this._appInfo)return"";let e=this._appInfo.name;return this._appInfo.version&&(e+=`/${this._appInfo.version}`),this._appInfo.url&&(e+=` (${this._appInfo.url})`),e},getTelemetryEnabled(){return this._enableTelemetry},_prepResources(){for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&(this["OAuth"===e?"oauth":e[0].toLowerCase()+e.substring(1)]=new n[e](this))},_getPropsFromConfig(e){if(!e)return{};let t="string"==typeof e;if(!(e===Object(e)&&!Array.isArray(e))&&!t)throw Error("Config must either be an object or a string");if(t)return{apiVersion:e};if(Object.keys(e).filter(e=>!nw.includes(e)).length>0)throw Error(`Config object may only contain the following: ${nw.join(", ")}`);return e},parseThinEvent(e,t,r,o,n,i){return this.webhooks.constructEvent(e,t,r,o,n,i)}}}(new j)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.