@fern-api/go-dynamic-snippets 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/cjs/DynamicSnippetsGenerator.cjs +15 -15
  2. package/cjs/DynamicSnippetsGenerator.d.cts +6 -9
  3. package/{esm/DynamicSnippetsGeneratorContext-DKWsHJSo.d.ts → cjs/DynamicSnippetsGeneratorContext-lz2pTZw3.d.cts} +30 -67
  4. package/cjs/EndpointSnippetGenerator.cjs +7 -7
  5. package/cjs/EndpointSnippetGenerator.d.cts +8 -10
  6. package/cjs/context/DynamicSnippetsGeneratorContext.cjs +15 -15
  7. package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +2 -5
  8. package/cjs/context/DynamicTypeInstantiationMapper.cjs +15 -15
  9. package/cjs/context/DynamicTypeInstantiationMapper.d.cts +2 -5
  10. package/cjs/context/DynamicTypeMapper.cjs +6 -6
  11. package/cjs/context/DynamicTypeMapper.d.cts +2 -5
  12. package/cjs/context/FilePropertyMapper.cjs +7 -7
  13. package/cjs/context/FilePropertyMapper.d.cts +2 -5
  14. package/cjs/index.cjs +22 -22
  15. package/cjs/index.d.cts +2 -5
  16. package/esm/DynamicSnippetsGenerator.d.ts +6 -9
  17. package/esm/DynamicSnippetsGenerator.js +1 -1
  18. package/{cjs/DynamicSnippetsGeneratorContext-DuDerGxa.d.cts → esm/DynamicSnippetsGeneratorContext-lz2pTZw3.d.ts} +30 -67
  19. package/esm/EndpointSnippetGenerator.d.ts +8 -10
  20. package/esm/EndpointSnippetGenerator.js +1 -1
  21. package/esm/chunk-25QU7TNW.js +1 -0
  22. package/esm/chunk-2GO4GGHE.js +1 -0
  23. package/esm/chunk-45WV72IW.js +1 -0
  24. package/esm/chunk-IHGUMUOY.js +1 -0
  25. package/esm/chunk-IMHG3M62.js +1 -0
  26. package/esm/chunk-P4OQRDWB.js +1 -0
  27. package/esm/chunk-W5QUFHNP.js +29 -0
  28. package/esm/chunk-WXCSO57K.js +1 -0
  29. package/esm/context/DynamicSnippetsGeneratorContext.d.ts +2 -5
  30. package/esm/context/DynamicSnippetsGeneratorContext.js +1 -1
  31. package/esm/context/DynamicTypeInstantiationMapper.d.ts +2 -5
  32. package/esm/context/DynamicTypeInstantiationMapper.js +1 -1
  33. package/esm/context/DynamicTypeMapper.d.ts +2 -5
  34. package/esm/context/DynamicTypeMapper.js +1 -1
  35. package/esm/context/FilePropertyMapper.d.ts +2 -5
  36. package/esm/context/FilePropertyMapper.js +1 -1
  37. package/esm/index.d.ts +2 -5
  38. package/esm/index.js +5 -5
  39. package/package.json +2 -2
  40. package/cjs/DiscriminatedUnionTypeInstance.cjs +0 -11
  41. package/cjs/DiscriminatedUnionTypeInstance.d.cts +0 -12
  42. package/cjs/Result.cjs +0 -11
  43. package/cjs/Result.d.cts +0 -23
  44. package/cjs/Scope.cjs +0 -11
  45. package/cjs/Scope.d.cts +0 -9
  46. package/cjs/TypeInstance.cjs +0 -11
  47. package/cjs/TypeInstance.d.cts +0 -15
  48. package/cjs/context/ErrorReporter.cjs +0 -11
  49. package/cjs/context/ErrorReporter.d.cts +0 -39
  50. package/esm/DiscriminatedUnionTypeInstance.d.ts +0 -12
  51. package/esm/DiscriminatedUnionTypeInstance.js +0 -1
  52. package/esm/Result.d.ts +0 -23
  53. package/esm/Result.js +0 -1
  54. package/esm/Scope.d.ts +0 -9
  55. package/esm/Scope.js +0 -1
  56. package/esm/TypeInstance.d.ts +0 -15
  57. package/esm/TypeInstance.js +0 -1
  58. package/esm/chunk-2AZXIWKY.js +0 -11
  59. package/esm/chunk-4PKXKUYU.js +0 -1
  60. package/esm/chunk-5TA7XQOD.js +0 -1
  61. package/esm/chunk-5XUC5IOB.js +0 -1
  62. package/esm/chunk-6JCPJA27.js +0 -1
  63. package/esm/chunk-775WBLQ5.js +0 -1
  64. package/esm/chunk-BC35GX6S.js +0 -1
  65. package/esm/chunk-COBOWL3P.js +0 -1
  66. package/esm/chunk-E5FOYV6P.js +0 -19
  67. package/esm/chunk-I3J7ADQS.js +0 -1
  68. package/esm/chunk-IIKN6XQS.js +0 -1
  69. package/esm/chunk-IQODEXPX.js +0 -1
  70. package/esm/chunk-KJOW5AZT.js +0 -1
  71. package/esm/chunk-LLE63BZO.js +0 -1
  72. package/esm/chunk-SUV3YIZ5.js +0 -1
  73. package/esm/chunk-UVYC4FWB.js +0 -1
  74. package/esm/chunk-VAYOWHUI.js +0 -19
  75. package/esm/chunk-VLNKANS2.js +0 -1
  76. package/esm/chunk-ZI6CAI2V.js +0 -1
  77. package/esm/chunk-ZQRLKIRW.js +0 -1
  78. package/esm/chunk-ZXKMRXFM.js +0 -1
  79. package/esm/chunk-ZYGZ4VN4.js +0 -1
  80. package/esm/context/ErrorReporter.d.ts +0 -39
  81. package/esm/context/ErrorReporter.js +0 -1
package/esm/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import{a as ji}from"./chunk-775WBLQ5.js";import"./chunk-SUV3YIZ5.js";import"./chunk-5TA7XQOD.js";import"./chunk-IIKN6XQS.js";import"./chunk-ZXKMRXFM.js";import"./chunk-I3J7ADQS.js";import"./chunk-VLNKANS2.js";import"./chunk-LLE63BZO.js";import"./chunk-E5FOYV6P.js";import"./chunk-ZI6CAI2V.js";import{e as ne,f as y,g as Gi,h as ki,i as zi,k as o,l as s,m as i}from"./chunk-2AZXIWKY.js";var ht=y((jl,vt)=>{"use strict";o();i();var Hi="Function.prototype.bind called on incompatible ",Ji=Object.prototype.toString,Ki=Math.max,Qi="[object Function]",gt=function(r,t){for(var n=[],u=0;u<r.length;u+=1)n[u]=r[u];for(var a=0;a<t.length;a+=1)n[a+r.length]=t[a];return n},Yi=function(r,t){for(var n=[],u=t||0,a=0;u<r.length;u+=1,a+=1)n[a]=r[u];return n},Xi=function(e,r){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=r);return t};vt.exports=function(r){var t=this;if(typeof t!="function"||Ji.apply(t)!==Qi)throw new TypeError(Hi+t);for(var n=Yi(arguments,1),u,a=function(){if(this instanceof u){var v=t.apply(this,gt(n,arguments));return Object(v)===v?v:this}return t.apply(r,gt(n,arguments))},f=Ki(0,t.length-n.length),c=[],l=0;l<f;l++)c[l]="$"+l;if(u=Function("binder","return function ("+Xi(c,",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var m=function(){};m.prototype=t.prototype,u.prototype=new m,m.prototype=null}return u}});var Or=y((Kl,dt)=>{"use strict";o();i();var Zi=ht();dt.exports=Function.prototype.bind||Zi});var St=y((Xl,mt)=>{"use strict";o();i();mt.exports=Error});var wt=y((rs,bt)=>{"use strict";o();i();bt.exports=EvalError});var Ot=y((ns,At)=>{"use strict";o();i();At.exports=RangeError});var xt=y((as,qt)=>{"use strict";o();i();qt.exports=ReferenceError});var oe=y((ls,$t)=>{"use strict";o();i();$t.exports=SyntaxError});var w=y((cs,Et)=>{"use strict";o();i();Et.exports=TypeError});var It=y((vs,Pt)=>{"use strict";o();i();Pt.exports=URIError});var ie=y((ms,Tt)=>{"use strict";o();i();Tt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var u=42;r[t]=u;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(r,t);if(f.value!==u||f.enumerable!==!0)return!1}return!0}});var ae=y((ws,Rt)=>{"use strict";o();i();var Ft=typeof Symbol!="undefined"&&Symbol,Vi=ie();Rt.exports=function(){return typeof Ft!="function"||typeof Symbol!="function"||typeof Ft("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Vi()}});var Dt=y((qs,Nt)=>{"use strict";o();i();var ue={__proto__:null,foo:{}},ra=Object;Nt.exports=function(){return{__proto__:ue}.foo===ue.foo&&!(ue instanceof ra)}});var Bt=y((Es,_t)=>{"use strict";o();i();var ea=Function.prototype.call,ta=Object.prototype.hasOwnProperty,na=Or();_t.exports=na.call(ea,ta)});var E=y((Ts,Lt)=>{"use strict";o();i();var d,oa=St(),ia=wt(),aa=Ot(),ua=xt(),Z=oe(),X=w(),fa=It(),Wt=Function,fe=function(e){try{return Wt('"use strict"; return ('+e+").constructor;")()}catch(r){}},G=Object.getOwnPropertyDescriptor;if(G)try{G({},"")}catch(e){G=null}var le=function(){throw new X},la=G?function(){try{return arguments.callee,le}catch(e){try{return G(arguments,"callee").get}catch(r){return le}}}():le,Q=ae()(),sa=Dt()(),b=Object.getPrototypeOf||(sa?function(e){return e.__proto__}:null),Y={},pa=typeof Uint8Array=="undefined"||!b?d:b(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":Q&&b?b([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":oa,"%eval%":eval,"%EvalError%":ia,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":Wt,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Q&&b?b(b([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Q||!b?d:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":aa,"%ReferenceError%":ua,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Q||!b?d:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Q&&b?b(""[Symbol.iterator]()):d,"%Symbol%":Q?Symbol:d,"%SyntaxError%":Z,"%ThrowTypeError%":la,"%TypedArray%":pa,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":fa,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet};if(b)try{null.error}catch(e){Mt=b(b(e)),k["%Error.prototype%"]=Mt}var Mt,ca=function e(r){var t;if(r==="%AsyncFunction%")t=fe("async function () {}");else if(r==="%GeneratorFunction%")t=fe("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=fe("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var u=e("%AsyncGenerator%");u&&b&&(t=b(u.prototype))}return k[r]=t,t},Ct={__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"]},ar=Or(),qr=Bt(),ya=ar.call(Function.call,Array.prototype.concat),ga=ar.call(Function.apply,Array.prototype.splice),Ut=ar.call(Function.call,String.prototype.replace),xr=ar.call(Function.call,String.prototype.slice),va=ar.call(Function.call,RegExp.prototype.exec),ha=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,da=/\\(\\)?/g,ma=function(r){var t=xr(r,0,1),n=xr(r,-1);if(t==="%"&&n!=="%")throw new Z("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new Z("invalid intrinsic syntax, expected opening `%`");var u=[];return Ut(r,ha,function(a,f,c,l){u[u.length]=c?Ut(l,da,"$1"):f||a}),u},Sa=function(r,t){var n=r,u;if(qr(Ct,n)&&(u=Ct[n],n="%"+u[0]+"%"),qr(k,n)){var a=k[n];if(a===Y&&(a=ca(n)),typeof a=="undefined"&&!t)throw new X("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:u,name:n,value:a}}throw new Z("intrinsic "+r+" does not exist!")};Lt.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new X('"allowMissing" argument must be a boolean');if(va(/^%?[^%]*%?$/,r)===null)throw new Z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ma(r),u=n.length>0?n[0]:"",a=Sa("%"+u+"%",t),f=a.name,c=a.value,l=!1,m=a.alias;m&&(u=m[0],ga(n,ya([0,1],m)));for(var v=1,h=!0;v<n.length;v+=1){var g=n[v],A=xr(g,0,1),x=xr(g,-1);if((A==='"'||A==="'"||A==="`"||x==='"'||x==="'"||x==="`")&&A!==x)throw new Z("property names with quotes must have matching quotes");if((g==="constructor"||!h)&&(l=!0),u+="."+g,f="%"+u+"%",qr(k,f))c=k[f];else if(c!=null){if(!(g in c)){if(!t)throw new X("base intrinsic for "+r+" exists, but the property is not available.");return}if(G&&v+1>=n.length){var S=G(c,g);h=!!S,h&&"get"in S&&!("originalValue"in S.get)?c=S.get:c=c[g]}else h=qr(c,g),c=c[g];h&&!l&&(k[f]=c)}}return c}});var Er=y((Ns,Gt)=>{"use strict";o();i();var ba=E(),$r=ba("%Object.defineProperty%",!0)||!1;if($r)try{$r({},"a",{value:1})}catch(e){$r=!1}Gt.exports=$r});var se=y((Bs,kt)=>{"use strict";o();i();var wa=E(),Pr=wa("%Object.getOwnPropertyDescriptor%",!0);if(Pr)try{Pr([],"length")}catch(e){Pr=null}kt.exports=Pr});var pe=y((Us,Ht)=>{"use strict";o();i();var zt=Er(),Aa=oe(),V=w(),jt=se();Ht.exports=function(r,t,n){if(!r||typeof r!="object"&&typeof r!="function")throw new V("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new V("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new V("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new V("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new V("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new V("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!jt&&jt(r,t);if(zt)zt(r,t,{configurable:f===null&&l?l.configurable:!f,enumerable:u===null&&l?l.enumerable:!u,value:n,writable:a===null&&l?l.writable:!a});else if(c||!u&&!a&&!f)r[t]=n;else throw new Aa("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var ye=y((Gs,Kt)=>{"use strict";o();i();var ce=Er(),Jt=function(){return!!ce};Jt.hasArrayLengthDefineBug=function(){if(!ce)return null;try{return ce([],"length",{value:1}).length!==1}catch(r){return!0}};Kt.exports=Jt});var Vt=y((js,Zt)=>{"use strict";o();i();var Oa=E(),Qt=pe(),qa=ye()(),Yt=se(),Xt=w(),xa=Oa("%Math.floor%");Zt.exports=function(r,t){if(typeof r!="function")throw new Xt("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||xa(t)!==t)throw new Xt("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],u=!0,a=!0;if("length"in r&&Yt){var f=Yt(r,"length");f&&!f.configurable&&(u=!1),f&&!f.writable&&(a=!1)}return(u||a||!n)&&(qa?Qt(r,"length",t,!0,!0):Qt(r,"length",t)),r}});var Fr=y((Ks,Ir)=>{"use strict";o();i();var ge=Or(),Tr=E(),$a=Vt(),Ea=w(),tn=Tr("%Function.prototype.apply%"),nn=Tr("%Function.prototype.call%"),on=Tr("%Reflect.apply%",!0)||ge.call(nn,tn),rn=Er(),Pa=Tr("%Math.max%");Ir.exports=function(r){if(typeof r!="function")throw new Ea("a function is required");var t=on(ge,nn,arguments);return $a(t,1+Pa(0,r.length-(arguments.length-1)),!0)};var en=function(){return on(ge,tn,arguments)};rn?rn(Ir.exports,"apply",{value:en}):Ir.exports.apply=en});var ve=y((Xs,un)=>{"use strict";o();i();var an=Object.prototype.toString;un.exports=function(r){var t=an.call(r),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&an.call(r.callee)==="[object Function]"),n}});var hn=y((rp,vn)=>{"use strict";o();i();var gn;Object.keys||(ur=Object.prototype.hasOwnProperty,he=Object.prototype.toString,fn=ve(),de=Object.prototype.propertyIsEnumerable,ln=!de.call({toString:null},"toString"),sn=de.call(function(){},"prototype"),fr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Rr=function(e){var r=e.constructor;return r&&r.prototype===e},pn={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},cn=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!pn["$"+e]&&ur.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Rr(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),yn=function(e){if(typeof window=="undefined"||!cn)return Rr(e);try{return Rr(e)}catch(r){return!1}},gn=function(r){var t=r!==null&&typeof r=="object",n=he.call(r)==="[object Function]",u=fn(r),a=t&&he.call(r)==="[object String]",f=[];if(!t&&!n&&!u)throw new TypeError("Object.keys called on a non-object");var c=sn&&n;if(a&&r.length>0&&!ur.call(r,0))for(var l=0;l<r.length;++l)f.push(String(l));if(u&&r.length>0)for(var m=0;m<r.length;++m)f.push(String(m));else for(var v in r)!(c&&v==="prototype")&&ur.call(r,v)&&f.push(String(v));if(ln)for(var h=yn(r),g=0;g<fr.length;++g)!(h&&fr[g]==="constructor")&&ur.call(r,fr[g])&&f.push(fr[g]);return f});var ur,he,fn,de,ln,sn,fr,Rr,pn,cn,yn;vn.exports=gn});var bn=y((np,Sn)=>{"use strict";o();i();var Ia=Array.prototype.slice,Ta=ve(),dn=Object.keys,Nr=dn?function(r){return dn(r)}:hn(),mn=Object.keys;Nr.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(n){return Ta(n)?mn(Ia.call(n)):mn(n)})}else Object.keys=Nr;return Object.keys||Nr};Sn.exports=Nr});var lr=y((ap,qn)=>{"use strict";o();i();var Fa=bn(),Ra=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Na=Object.prototype.toString,Da=Array.prototype.concat,wn=pe(),_a=function(e){return typeof e=="function"&&Na.call(e)==="[object Function]"},An=ye()(),Ba=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!_a(n)||!n())return}An?wn(e,r,t,!0):wn(e,r,t)},On=function(e,r){var t=arguments.length>2?arguments[2]:{},n=Fa(r);Ra&&(n=Da.call(n,Object.getOwnPropertySymbols(r)));for(var u=0;u<n.length;u+=1)Ba(e,n[u],r[n[u]],t[n[u]])};On.supportsDescriptors=!!An;qn.exports=On});var P=y((lp,En)=>{"use strict";o();i();var xn=E(),$n=Fr(),Ma=$n(xn("String.prototype.indexOf"));En.exports=function(r,t){var n=xn(r,!!t);return typeof n=="function"&&Ma(r,".prototype.")>-1?$n(n):n}});var Tn=y((cp,In)=>{"use strict";o();i();var Ca=E(),Pn=Ca("%Array%"),Ua=!Pn.isArray&&P()("Object.prototype.toString");In.exports=Pn.isArray||function(r){return Ua(r)==="[object Array]"}});var me=y((vp,Fn)=>{"use strict";o();i();Fn.exports=Tn()});var Nn=y((mp,Rn)=>{"use strict";o();i();var Wa=E(),La=P(),Ga=w(),ka=me(),za=Wa("%Reflect.apply%",!0)||La("Function.prototype.apply");Rn.exports=function(r,t){var n=arguments.length>2?arguments[2]:[];if(!ka(n))throw new Ga("Assertion failed: optional `argumentsList`, if provided, must be a List");return za(r,t,n)}});function Dn(){throw new Error("setTimeout has not been defined")}function _n(){throw new Error("clearTimeout has not been defined")}function Bn(e){if(B===setTimeout)return setTimeout(e,0);if((B===Dn||!B)&&setTimeout)return B=setTimeout,setTimeout(e,0);try{return B(e,0)}catch(r){try{return B.call(null,e,0)}catch(t){return B.call(this,e,0)}}}function ja(e){if(M===clearTimeout)return clearTimeout(e);if((M===_n||!M)&&clearTimeout)return M=clearTimeout,clearTimeout(e);try{return M(e)}catch(r){try{return M.call(null,e)}catch(t){return M.call(this,e)}}}function Ha(){!er||!z||(er=!1,z.length?N=z.concat(N):Dr=-1,N.length&&Mn())}function Mn(){if(!er){var e=Bn(Ha);er=!0;for(var r=N.length;r;){for(z=N,N=[];++Dr<r;)z&&z[Dr].run();Dr=-1,r=N.length}z=null,er=!1,ja(e)}}function Ja(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];N.push(new Cn(e,r)),N.length===1&&!er&&Bn(Mn)}function Cn(e,r){this.fun=e,this.array=r}function j(){}function su(e){throw new Error("process.binding is not supported")}function pu(){return"/"}function cu(e){throw new Error("process.chdir is not supported")}function yu(){return 0}function vu(e){var r=gu.call(rr)*.001,t=Math.floor(r),n=Math.floor(r%1*1e9);return e&&(t=t-e[0],n=n-e[1],n<0&&(t--,n+=1e9)),[t,n]}function du(){var e=new Date,r=e-hu;return r/1e3}var B,M,N,er,z,Dr,Ka,Qa,Ya,Xa,Za,Va,ru,eu,tu,nu,ou,iu,au,uu,fu,lu,rr,gu,hu,mu,sr,Un=ne(()=>{"use strict";o();i();B=Dn,M=_n;typeof globalThis.setTimeout=="function"&&(B=setTimeout);typeof globalThis.clearTimeout=="function"&&(M=clearTimeout);N=[],er=!1,Dr=-1;Cn.prototype.run=function(){this.fun.apply(null,this.array)};Ka="browser",Qa="browser",Ya=!0,Xa={},Za=[],Va="",ru={},eu={},tu={};nu=j,ou=j,iu=j,au=j,uu=j,fu=j,lu=j;rr=globalThis.performance||{},gu=rr.now||rr.mozNow||rr.msNow||rr.oNow||rr.webkitNow||function(){return new Date().getTime()};hu=new Date;mu={nextTick:Ja,title:Ka,browser:Ya,env:Xa,argv:Za,version:Va,versions:ru,on:nu,addListener:ou,once:iu,off:au,removeListener:uu,removeAllListeners:fu,emit:lu,binding:su,cwd:pu,chdir:cu,umask:yu,hrtime:vu,platform:Qa,release:eu,config:tu,uptime:du},sr=mu});var Se,be,Wn=ne(()=>{"use strict";o();i();typeof Object.create=="function"?Se=function(r,t){r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:Se=function(r,t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r};be=Se});var Kn={};Gi(Kn,{_extend:()=>Ie,debuglog:()=>Ln,default:()=>Pu,deprecate:()=>xe,format:()=>Cr,inherits:()=>be,inspect:()=>T,isArray:()=>$e,isBoolean:()=>Ur,isBuffer:()=>jn,isDate:()=>Mr,isError:()=>cr,isFunction:()=>yr,isNull:()=>gr,isNullOrUndefined:()=>Gn,isNumber:()=>Ee,isObject:()=>H,isPrimitive:()=>zn,isRegExp:()=>pr,isString:()=>vr,isSymbol:()=>kn,isUndefined:()=>I,log:()=>Hn});function Cr(e){if(!vr(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(T(arguments[t]));return r.join(" ")}for(var t=1,n=arguments,u=n.length,a=String(e).replace(Su,function(c){if(c==="%%")return"%";if(t>=u)return c;switch(c){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(l){return"[Circular]"}default:return c}}),f=n[t];t<u;f=n[++t])gr(f)||!H(f)?a+=" "+f:a+=" "+T(f);return a}function xe(e,r){if(I(globalThis.process))return function(){return xe(e,r).apply(this,arguments)};if(sr.noDeprecation===!0)return e;var t=!1;function n(){if(!t){if(sr.throwDeprecation)throw new Error(r);sr.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return n}function Ln(e){if(I(we)&&(we=sr.env.NODE_DEBUG||""),e=e.toUpperCase(),!_r[e])if(new RegExp("\\b"+e+"\\b","i").test(we)){var r=0;_r[e]=function(){var t=Cr.apply(null,arguments);console.error("%s %d: %s",e,r,t)}}else _r[e]=function(){};return _r[e]}function T(e,r){var t={seen:[],stylize:wu};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Ur(r)?t.showHidden=r:r&&Ie(t,r),I(t.showHidden)&&(t.showHidden=!1),I(t.depth)&&(t.depth=2),I(t.colors)&&(t.colors=!1),I(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=bu),Br(t,e,t.depth)}function bu(e,r){var t=T.styles[r];return t?"\x1B["+T.colors[t][0]+"m"+e+"\x1B["+T.colors[t][1]+"m":e}function wu(e,r){return e}function Au(e){var r={};return e.forEach(function(t,n){r[t]=!0}),r}function Br(e,r,t){if(e.customInspect&&r&&yr(r.inspect)&&r.inspect!==T&&!(r.constructor&&r.constructor.prototype===r)){var n=r.inspect(t,e);return vr(n)||(n=Br(e,n,t)),n}var u=Ou(e,r);if(u)return u;var a=Object.keys(r),f=Au(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),cr(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ae(r);if(a.length===0){if(yr(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(pr(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Mr(r))return e.stylize(Date.prototype.toString.call(r),"date");if(cr(r))return Ae(r)}var l="",m=!1,v=["{","}"];if($e(r)&&(m=!0,v=["[","]"]),yr(r)){var h=r.name?": "+r.name:"";l=" [Function"+h+"]"}if(pr(r)&&(l=" "+RegExp.prototype.toString.call(r)),Mr(r)&&(l=" "+Date.prototype.toUTCString.call(r)),cr(r)&&(l=" "+Ae(r)),a.length===0&&(!m||r.length==0))return v[0]+l+v[1];if(t<0)return pr(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var g;return m?g=qu(e,r,t,f,a):g=a.map(function(A){return qe(e,r,t,f,A,m)}),e.seen.pop(),xu(g,l,v)}function Ou(e,r){if(I(r))return e.stylize("undefined","undefined");if(vr(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Ee(r))return e.stylize(""+r,"number");if(Ur(r))return e.stylize(""+r,"boolean");if(gr(r))return e.stylize("null","null")}function Ae(e){return"["+Error.prototype.toString.call(e)+"]"}function qu(e,r,t,n,u){for(var a=[],f=0,c=r.length;f<c;++f)Jn(r,String(f))?a.push(qe(e,r,t,n,String(f),!0)):a.push("");return u.forEach(function(l){l.match(/^\d+$/)||a.push(qe(e,r,t,n,l,!0))}),a}function qe(e,r,t,n,u,a){var f,c,l;if(l=Object.getOwnPropertyDescriptor(r,u)||{value:r[u]},l.get?l.set?c=e.stylize("[Getter/Setter]","special"):c=e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),Jn(n,u)||(f="["+u+"]"),c||(e.seen.indexOf(l.value)<0?(gr(t)?c=Br(e,l.value,null):c=Br(e,l.value,t-1),c.indexOf(`
1
+ import{a as Hi}from"./chunk-IHGUMUOY.js";import"./chunk-25QU7TNW.js";import"./chunk-IMHG3M62.js";import"./chunk-45WV72IW.js";import"./chunk-WXCSO57K.js";import"./chunk-P4OQRDWB.js";import"./chunk-2GO4GGHE.js";import{e as ne,f as y,g as ki,h as zi,i as ji,k as o,l as s,m as i}from"./chunk-W5QUFHNP.js";var ht=y((Jl,vt)=>{"use strict";o();i();var Ji="Function.prototype.bind called on incompatible ",Ki=Object.prototype.toString,Qi=Math.max,Yi="[object Function]",gt=function(r,t){for(var n=[],u=0;u<r.length;u+=1)n[u]=r[u];for(var a=0;a<t.length;a+=1)n[a+r.length]=t[a];return n},Xi=function(r,t){for(var n=[],u=t||0,a=0;u<r.length;u+=1,a+=1)n[a]=r[u];return n},Zi=function(e,r){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=r);return t};vt.exports=function(r){var t=this;if(typeof t!="function"||Ki.apply(t)!==Yi)throw new TypeError(Ji+t);for(var n=Xi(arguments,1),u,a=function(){if(this instanceof u){var v=t.apply(this,gt(n,arguments));return Object(v)===v?v:this}return t.apply(r,gt(n,arguments))},f=Qi(0,t.length-n.length),c=[],l=0;l<f;l++)c[l]="$"+l;if(u=Function("binder","return function ("+Zi(c,",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var m=function(){};m.prototype=t.prototype,u.prototype=new m,m.prototype=null}return u}});var Or=y((Yl,dt)=>{"use strict";o();i();var Vi=ht();dt.exports=Function.prototype.bind||Vi});var St=y((Vl,mt)=>{"use strict";o();i();mt.exports=Error});var wt=y((ts,bt)=>{"use strict";o();i();bt.exports=EvalError});var Ot=y((is,At)=>{"use strict";o();i();At.exports=RangeError});var xt=y((fs,qt)=>{"use strict";o();i();qt.exports=ReferenceError});var oe=y((ps,$t)=>{"use strict";o();i();$t.exports=SyntaxError});var w=y((gs,Et)=>{"use strict";o();i();Et.exports=TypeError});var It=y((ds,Pt)=>{"use strict";o();i();Pt.exports=URIError});var ie=y((bs,Tt)=>{"use strict";o();i();Tt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var u=42;r[t]=u;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(r,t);if(f.value!==u||f.enumerable!==!0)return!1}return!0}});var ae=y((Os,Rt)=>{"use strict";o();i();var Ft=typeof Symbol!="undefined"&&Symbol,ra=ie();Rt.exports=function(){return typeof Ft!="function"||typeof Symbol!="function"||typeof Ft("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ra()}});var Dt=y(($s,Nt)=>{"use strict";o();i();var ue={__proto__:null,foo:{}},ea=Object;Nt.exports=function(){return{__proto__:ue}.foo===ue.foo&&!(ue instanceof ea)}});var Bt=y((Is,_t)=>{"use strict";o();i();var ta=Function.prototype.call,na=Object.prototype.hasOwnProperty,oa=Or();_t.exports=oa.call(ta,na)});var E=y((Rs,Lt)=>{"use strict";o();i();var d,ia=St(),aa=wt(),ua=Ot(),fa=xt(),Z=oe(),X=w(),la=It(),Wt=Function,fe=function(e){try{return Wt('"use strict"; return ('+e+").constructor;")()}catch(r){}},G=Object.getOwnPropertyDescriptor;if(G)try{G({},"")}catch(e){G=null}var le=function(){throw new X},sa=G?function(){try{return arguments.callee,le}catch(e){try{return G(arguments,"callee").get}catch(r){return le}}}():le,Q=ae()(),pa=Dt()(),b=Object.getPrototypeOf||(pa?function(e){return e.__proto__}:null),Y={},ca=typeof Uint8Array=="undefined"||!b?d:b(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":Q&&b?b([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ia,"%eval%":eval,"%EvalError%":aa,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":Wt,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Q&&b?b(b([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Q||!b?d:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":ua,"%ReferenceError%":fa,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Q||!b?d:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Q&&b?b(""[Symbol.iterator]()):d,"%Symbol%":Q?Symbol:d,"%SyntaxError%":Z,"%ThrowTypeError%":sa,"%TypedArray%":ca,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":la,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet};if(b)try{null.error}catch(e){Mt=b(b(e)),k["%Error.prototype%"]=Mt}var Mt,ya=function e(r){var t;if(r==="%AsyncFunction%")t=fe("async function () {}");else if(r==="%GeneratorFunction%")t=fe("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=fe("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var u=e("%AsyncGenerator%");u&&b&&(t=b(u.prototype))}return k[r]=t,t},Ct={__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"]},ar=Or(),qr=Bt(),ga=ar.call(Function.call,Array.prototype.concat),va=ar.call(Function.apply,Array.prototype.splice),Ut=ar.call(Function.call,String.prototype.replace),xr=ar.call(Function.call,String.prototype.slice),ha=ar.call(Function.call,RegExp.prototype.exec),da=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ma=/\\(\\)?/g,Sa=function(r){var t=xr(r,0,1),n=xr(r,-1);if(t==="%"&&n!=="%")throw new Z("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new Z("invalid intrinsic syntax, expected opening `%`");var u=[];return Ut(r,da,function(a,f,c,l){u[u.length]=c?Ut(l,ma,"$1"):f||a}),u},ba=function(r,t){var n=r,u;if(qr(Ct,n)&&(u=Ct[n],n="%"+u[0]+"%"),qr(k,n)){var a=k[n];if(a===Y&&(a=ya(n)),typeof a=="undefined"&&!t)throw new X("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:u,name:n,value:a}}throw new Z("intrinsic "+r+" does not exist!")};Lt.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new X('"allowMissing" argument must be a boolean');if(ha(/^%?[^%]*%?$/,r)===null)throw new Z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Sa(r),u=n.length>0?n[0]:"",a=ba("%"+u+"%",t),f=a.name,c=a.value,l=!1,m=a.alias;m&&(u=m[0],va(n,ga([0,1],m)));for(var v=1,h=!0;v<n.length;v+=1){var g=n[v],A=xr(g,0,1),x=xr(g,-1);if((A==='"'||A==="'"||A==="`"||x==='"'||x==="'"||x==="`")&&A!==x)throw new Z("property names with quotes must have matching quotes");if((g==="constructor"||!h)&&(l=!0),u+="."+g,f="%"+u+"%",qr(k,f))c=k[f];else if(c!=null){if(!(g in c)){if(!t)throw new X("base intrinsic for "+r+" exists, but the property is not available.");return}if(G&&v+1>=n.length){var S=G(c,g);h=!!S,h&&"get"in S&&!("originalValue"in S.get)?c=S.get:c=c[g]}else h=qr(c,g),c=c[g];h&&!l&&(k[f]=c)}}return c}});var Er=y((_s,Gt)=>{"use strict";o();i();var wa=E(),$r=wa("%Object.defineProperty%",!0)||!1;if($r)try{$r({},"a",{value:1})}catch(e){$r=!1}Gt.exports=$r});var se=y((Cs,kt)=>{"use strict";o();i();var Aa=E(),Pr=Aa("%Object.getOwnPropertyDescriptor%",!0);if(Pr)try{Pr([],"length")}catch(e){Pr=null}kt.exports=Pr});var pe=y((Ls,Ht)=>{"use strict";o();i();var zt=Er(),Oa=oe(),V=w(),jt=se();Ht.exports=function(r,t,n){if(!r||typeof r!="object"&&typeof r!="function")throw new V("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new V("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new V("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new V("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new V("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new V("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!jt&&jt(r,t);if(zt)zt(r,t,{configurable:f===null&&l?l.configurable:!f,enumerable:u===null&&l?l.enumerable:!u,value:n,writable:a===null&&l?l.writable:!a});else if(c||!u&&!a&&!f)r[t]=n;else throw new Oa("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var ye=y((zs,Kt)=>{"use strict";o();i();var ce=Er(),Jt=function(){return!!ce};Jt.hasArrayLengthDefineBug=function(){if(!ce)return null;try{return ce([],"length",{value:1}).length!==1}catch(r){return!0}};Kt.exports=Jt});var Vt=y((Js,Zt)=>{"use strict";o();i();var qa=E(),Qt=pe(),xa=ye()(),Yt=se(),Xt=w(),$a=qa("%Math.floor%");Zt.exports=function(r,t){if(typeof r!="function")throw new Xt("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||$a(t)!==t)throw new Xt("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],u=!0,a=!0;if("length"in r&&Yt){var f=Yt(r,"length");f&&!f.configurable&&(u=!1),f&&!f.writable&&(a=!1)}return(u||a||!n)&&(xa?Qt(r,"length",t,!0,!0):Qt(r,"length",t)),r}});var Fr=y((Ys,Ir)=>{"use strict";o();i();var ge=Or(),Tr=E(),Ea=Vt(),Pa=w(),tn=Tr("%Function.prototype.apply%"),nn=Tr("%Function.prototype.call%"),on=Tr("%Reflect.apply%",!0)||ge.call(nn,tn),rn=Er(),Ia=Tr("%Math.max%");Ir.exports=function(r){if(typeof r!="function")throw new Pa("a function is required");var t=on(ge,nn,arguments);return Ea(t,1+Ia(0,r.length-(arguments.length-1)),!0)};var en=function(){return on(ge,tn,arguments)};rn?rn(Ir.exports,"apply",{value:en}):Ir.exports.apply=en});var ve=y((Vs,un)=>{"use strict";o();i();var an=Object.prototype.toString;un.exports=function(r){var t=an.call(r),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&an.call(r.callee)==="[object Function]"),n}});var hn=y((tp,vn)=>{"use strict";o();i();var gn;Object.keys||(ur=Object.prototype.hasOwnProperty,he=Object.prototype.toString,fn=ve(),de=Object.prototype.propertyIsEnumerable,ln=!de.call({toString:null},"toString"),sn=de.call(function(){},"prototype"),fr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Rr=function(e){var r=e.constructor;return r&&r.prototype===e},pn={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},cn=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!pn["$"+e]&&ur.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Rr(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),yn=function(e){if(typeof window=="undefined"||!cn)return Rr(e);try{return Rr(e)}catch(r){return!1}},gn=function(r){var t=r!==null&&typeof r=="object",n=he.call(r)==="[object Function]",u=fn(r),a=t&&he.call(r)==="[object String]",f=[];if(!t&&!n&&!u)throw new TypeError("Object.keys called on a non-object");var c=sn&&n;if(a&&r.length>0&&!ur.call(r,0))for(var l=0;l<r.length;++l)f.push(String(l));if(u&&r.length>0)for(var m=0;m<r.length;++m)f.push(String(m));else for(var v in r)!(c&&v==="prototype")&&ur.call(r,v)&&f.push(String(v));if(ln)for(var h=yn(r),g=0;g<fr.length;++g)!(h&&fr[g]==="constructor")&&ur.call(r,fr[g])&&f.push(fr[g]);return f});var ur,he,fn,de,ln,sn,fr,Rr,pn,cn,yn;vn.exports=gn});var bn=y((ip,Sn)=>{"use strict";o();i();var Ta=Array.prototype.slice,Fa=ve(),dn=Object.keys,Nr=dn?function(r){return dn(r)}:hn(),mn=Object.keys;Nr.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(n){return Fa(n)?mn(Ta.call(n)):mn(n)})}else Object.keys=Nr;return Object.keys||Nr};Sn.exports=Nr});var lr=y((fp,qn)=>{"use strict";o();i();var Ra=bn(),Na=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Da=Object.prototype.toString,_a=Array.prototype.concat,wn=pe(),Ba=function(e){return typeof e=="function"&&Da.call(e)==="[object Function]"},An=ye()(),Ma=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!Ba(n)||!n())return}An?wn(e,r,t,!0):wn(e,r,t)},On=function(e,r){var t=arguments.length>2?arguments[2]:{},n=Ra(r);Na&&(n=_a.call(n,Object.getOwnPropertySymbols(r)));for(var u=0;u<n.length;u+=1)Ma(e,n[u],r[n[u]],t[n[u]])};On.supportsDescriptors=!!An;qn.exports=On});var P=y((pp,En)=>{"use strict";o();i();var xn=E(),$n=Fr(),Ca=$n(xn("String.prototype.indexOf"));En.exports=function(r,t){var n=xn(r,!!t);return typeof n=="function"&&Ca(r,".prototype.")>-1?$n(n):n}});var Tn=y((gp,In)=>{"use strict";o();i();var Ua=E(),Pn=Ua("%Array%"),Wa=!Pn.isArray&&P()("Object.prototype.toString");In.exports=Pn.isArray||function(r){return Wa(r)==="[object Array]"}});var me=y((dp,Fn)=>{"use strict";o();i();Fn.exports=Tn()});var Nn=y((bp,Rn)=>{"use strict";o();i();var La=E(),Ga=P(),ka=w(),za=me(),ja=La("%Reflect.apply%",!0)||Ga("Function.prototype.apply");Rn.exports=function(r,t){var n=arguments.length>2?arguments[2]:[];if(!za(n))throw new ka("Assertion failed: optional `argumentsList`, if provided, must be a List");return ja(r,t,n)}});function Dn(){throw new Error("setTimeout has not been defined")}function _n(){throw new Error("clearTimeout has not been defined")}function Bn(e){if(M===setTimeout)return setTimeout(e,0);if((M===Dn||!M)&&setTimeout)return M=setTimeout,setTimeout(e,0);try{return M(e,0)}catch(r){try{return M.call(null,e,0)}catch(t){return M.call(this,e,0)}}}function Ha(e){if(C===clearTimeout)return clearTimeout(e);if((C===_n||!C)&&clearTimeout)return C=clearTimeout,clearTimeout(e);try{return C(e)}catch(r){try{return C.call(null,e)}catch(t){return C.call(this,e)}}}function Ja(){!er||!z||(er=!1,z.length?N=z.concat(N):Dr=-1,N.length&&Mn())}function Mn(){if(!er){var e=Bn(Ja);er=!0;for(var r=N.length;r;){for(z=N,N=[];++Dr<r;)z&&z[Dr].run();Dr=-1,r=N.length}z=null,er=!1,Ha(e)}}function Ka(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];N.push(new Cn(e,r)),N.length===1&&!er&&Bn(Mn)}function Cn(e,r){this.fun=e,this.array=r}function j(){}function pu(e){throw new Error("process.binding is not supported")}function cu(){return"/"}function yu(e){throw new Error("process.chdir is not supported")}function gu(){return 0}function hu(e){var r=vu.call(rr)*.001,t=Math.floor(r),n=Math.floor(r%1*1e9);return e&&(t=t-e[0],n=n-e[1],n<0&&(t--,n+=1e9)),[t,n]}function mu(){var e=new Date,r=e-du;return r/1e3}var M,C,N,er,z,Dr,Qa,Ya,Xa,Za,Va,ru,eu,tu,nu,ou,iu,au,uu,fu,lu,su,rr,vu,du,Su,sr,Un=ne(()=>{"use strict";o();i();M=Dn,C=_n;typeof globalThis.setTimeout=="function"&&(M=setTimeout);typeof globalThis.clearTimeout=="function"&&(C=clearTimeout);N=[],er=!1,Dr=-1;Cn.prototype.run=function(){this.fun.apply(null,this.array)};Qa="browser",Ya="browser",Xa=!0,Za={},Va=[],ru="",eu={},tu={},nu={};ou=j,iu=j,au=j,uu=j,fu=j,lu=j,su=j;rr=globalThis.performance||{},vu=rr.now||rr.mozNow||rr.msNow||rr.oNow||rr.webkitNow||function(){return new Date().getTime()};du=new Date;Su={nextTick:Ka,title:Qa,browser:Xa,env:Za,argv:Va,version:ru,versions:eu,on:ou,addListener:iu,once:au,off:uu,removeListener:fu,removeAllListeners:lu,emit:su,binding:pu,cwd:cu,chdir:yu,umask:gu,hrtime:hu,platform:Ya,release:tu,config:nu,uptime:mu},sr=Su});var Se,be,Wn=ne(()=>{"use strict";o();i();typeof Object.create=="function"?Se=function(r,t){r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:Se=function(r,t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r};be=Se});var Kn={};ki(Kn,{_extend:()=>Ie,debuglog:()=>Ln,default:()=>Iu,deprecate:()=>xe,format:()=>Cr,inherits:()=>be,inspect:()=>T,isArray:()=>$e,isBoolean:()=>Ur,isBuffer:()=>jn,isDate:()=>Mr,isError:()=>cr,isFunction:()=>yr,isNull:()=>gr,isNullOrUndefined:()=>Gn,isNumber:()=>Ee,isObject:()=>H,isPrimitive:()=>zn,isRegExp:()=>pr,isString:()=>vr,isSymbol:()=>kn,isUndefined:()=>I,log:()=>Hn});function Cr(e){if(!vr(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(T(arguments[t]));return r.join(" ")}for(var t=1,n=arguments,u=n.length,a=String(e).replace(bu,function(c){if(c==="%%")return"%";if(t>=u)return c;switch(c){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(l){return"[Circular]"}default:return c}}),f=n[t];t<u;f=n[++t])gr(f)||!H(f)?a+=" "+f:a+=" "+T(f);return a}function xe(e,r){if(I(globalThis.process))return function(){return xe(e,r).apply(this,arguments)};if(sr.noDeprecation===!0)return e;var t=!1;function n(){if(!t){if(sr.throwDeprecation)throw new Error(r);sr.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return n}function Ln(e){if(I(we)&&(we=sr.env.NODE_DEBUG||""),e=e.toUpperCase(),!_r[e])if(new RegExp("\\b"+e+"\\b","i").test(we)){var r=0;_r[e]=function(){var t=Cr.apply(null,arguments);console.error("%s %d: %s",e,r,t)}}else _r[e]=function(){};return _r[e]}function T(e,r){var t={seen:[],stylize:Au};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Ur(r)?t.showHidden=r:r&&Ie(t,r),I(t.showHidden)&&(t.showHidden=!1),I(t.depth)&&(t.depth=2),I(t.colors)&&(t.colors=!1),I(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=wu),Br(t,e,t.depth)}function wu(e,r){var t=T.styles[r];return t?"\x1B["+T.colors[t][0]+"m"+e+"\x1B["+T.colors[t][1]+"m":e}function Au(e,r){return e}function Ou(e){var r={};return e.forEach(function(t,n){r[t]=!0}),r}function Br(e,r,t){if(e.customInspect&&r&&yr(r.inspect)&&r.inspect!==T&&!(r.constructor&&r.constructor.prototype===r)){var n=r.inspect(t,e);return vr(n)||(n=Br(e,n,t)),n}var u=qu(e,r);if(u)return u;var a=Object.keys(r),f=Ou(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),cr(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ae(r);if(a.length===0){if(yr(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(pr(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Mr(r))return e.stylize(Date.prototype.toString.call(r),"date");if(cr(r))return Ae(r)}var l="",m=!1,v=["{","}"];if($e(r)&&(m=!0,v=["[","]"]),yr(r)){var h=r.name?": "+r.name:"";l=" [Function"+h+"]"}if(pr(r)&&(l=" "+RegExp.prototype.toString.call(r)),Mr(r)&&(l=" "+Date.prototype.toUTCString.call(r)),cr(r)&&(l=" "+Ae(r)),a.length===0&&(!m||r.length==0))return v[0]+l+v[1];if(t<0)return pr(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var g;return m?g=xu(e,r,t,f,a):g=a.map(function(A){return qe(e,r,t,f,A,m)}),e.seen.pop(),$u(g,l,v)}function qu(e,r){if(I(r))return e.stylize("undefined","undefined");if(vr(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Ee(r))return e.stylize(""+r,"number");if(Ur(r))return e.stylize(""+r,"boolean");if(gr(r))return e.stylize("null","null")}function Ae(e){return"["+Error.prototype.toString.call(e)+"]"}function xu(e,r,t,n,u){for(var a=[],f=0,c=r.length;f<c;++f)Jn(r,String(f))?a.push(qe(e,r,t,n,String(f),!0)):a.push("");return u.forEach(function(l){l.match(/^\d+$/)||a.push(qe(e,r,t,n,l,!0))}),a}function qe(e,r,t,n,u,a){var f,c,l;if(l=Object.getOwnPropertyDescriptor(r,u)||{value:r[u]},l.get?l.set?c=e.stylize("[Getter/Setter]","special"):c=e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),Jn(n,u)||(f="["+u+"]"),c||(e.seen.indexOf(l.value)<0?(gr(t)?c=Br(e,l.value,null):c=Br(e,l.value,t-1),c.indexOf(`
2
2
  `)>-1&&(a?c=c.split(`
3
3
  `).map(function(m){return" "+m}).join(`
4
4
  `).substr(2):c=`
5
5
  `+c.split(`
6
6
  `).map(function(m){return" "+m}).join(`
7
- `))):c=e.stylize("[Circular]","special")),I(f)){if(a&&u.match(/^\d+$/))return c;f=JSON.stringify(""+u),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.substr(1,f.length-2),f=e.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=e.stylize(f,"string"))}return f+": "+c}function xu(e,r,t){var n=0,u=e.reduce(function(a,f){return n++,f.indexOf(`
7
+ `))):c=e.stylize("[Circular]","special")),I(f)){if(a&&u.match(/^\d+$/))return c;f=JSON.stringify(""+u),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.substr(1,f.length-2),f=e.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=e.stylize(f,"string"))}return f+": "+c}function $u(e,r,t){var n=0,u=e.reduce(function(a,f){return n++,f.indexOf(`
8
8
  `)>=0&&n++,a+f.replace(/\u001b\[\d\d?m/g,"").length+1},0);return u>60?t[0]+(r===""?"":r+`
9
9
  `)+" "+e.join(`,
10
- `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}function $e(e){return Array.isArray(e)}function Ur(e){return typeof e=="boolean"}function gr(e){return e===null}function Gn(e){return e==null}function Ee(e){return typeof e=="number"}function vr(e){return typeof e=="string"}function kn(e){return typeof e=="symbol"}function I(e){return e===void 0}function pr(e){return H(e)&&Pe(e)==="[object RegExp]"}function H(e){return typeof e=="object"&&e!==null}function Mr(e){return H(e)&&Pe(e)==="[object Date]"}function cr(e){return H(e)&&(Pe(e)==="[object Error]"||e instanceof Error)}function yr(e){return typeof e=="function"}function zn(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}function jn(e){return s.isBuffer(e)}function Pe(e){return Object.prototype.toString.call(e)}function Oe(e){return e<10?"0"+e.toString(10):e.toString(10)}function Eu(){var e=new Date,r=[Oe(e.getHours()),Oe(e.getMinutes()),Oe(e.getSeconds())].join(":");return[e.getDate(),$u[e.getMonth()],r].join(" ")}function Hn(){console.log("%s - %s",Eu(),Cr.apply(null,arguments))}function Ie(e,r){if(!r||!H(r))return e;for(var t=Object.keys(r),n=t.length;n--;)e[t[n]]=r[t[n]];return e}function Jn(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Su,_r,we,$u,Pu,Qn=ne(()=>{"use strict";o();i();Un();Wn();Su=/%[sdj%]/g;_r={};T.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};T.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};$u=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Pu={inherits:be,_extend:Ie,log:Hn,isBuffer:jn,isPrimitive:zn,isFunction:yr,isError:cr,isDate:Mr,isObject:H,isRegExp:pr,isUndefined:I,isSymbol:kn,isString:vr,isNumber:Ee,isNullOrUndefined:Gn,isNull:gr,isBoolean:Ur,isArray:$e,inspect:T,deprecate:xe,format:Cr,debuglog:Ln}});var Yn=y((Fp,Wr)=>{"use strict";o();i();var J=(Qn(),zi(Kn));if(J&&J.default){Wr.exports=J.default;for(let e in J)Wr.exports[e]=J[e]}else J&&(Wr.exports=J)});var Zn=y((Dp,Xn)=>{"use strict";o();i();Xn.exports=Yn().inspect});var Sr=y((Mp,mo)=>{"use strict";o();i();var Ue=typeof Map=="function"&&Map.prototype,Te=Object.getOwnPropertyDescriptor&&Ue?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gr=Ue&&Te&&typeof Te.get=="function"?Te.get:null,Vn=Ue&&Map.prototype.forEach,We=typeof Set=="function"&&Set.prototype,Fe=Object.getOwnPropertyDescriptor&&We?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,kr=We&&Fe&&typeof Fe.get=="function"?Fe.get:null,ro=We&&Set.prototype.forEach,Iu=typeof WeakMap=="function"&&WeakMap.prototype,dr=Iu?WeakMap.prototype.has:null,Tu=typeof WeakSet=="function"&&WeakSet.prototype,mr=Tu?WeakSet.prototype.has:null,Fu=typeof WeakRef=="function"&&WeakRef.prototype,eo=Fu?WeakRef.prototype.deref:null,Ru=Boolean.prototype.valueOf,Nu=Object.prototype.toString,Du=Function.prototype.toString,_u=String.prototype.match,Le=String.prototype.slice,U=String.prototype.replace,Bu=String.prototype.toUpperCase,to=String.prototype.toLowerCase,po=RegExp.prototype.test,no=Array.prototype.concat,F=Array.prototype.join,Mu=Array.prototype.slice,oo=Math.floor,De=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Re=Object.getOwnPropertySymbols,_e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,tr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===tr||!0)?Symbol.toStringTag:null,co=Object.prototype.propertyIsEnumerable,io=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ao(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||po.call(/e/,r))return r;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-oo(-e):oo(e);if(n!==e){var u=String(n),a=Le.call(r,u.length+1);return U.call(u,t,"$&_")+"."+U.call(U.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return U.call(r,t,"$&_")}var Be=Zn(),uo=Be.custom,fo=go(uo)?uo:null;mo.exports=function e(r,t,n,u){var a=t||{};if(C(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(C(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=C(a,"customInspect")?a.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(C(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(C(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=a.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return ho(r,a);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var l=String(r);return c?ao(r,l):l}if(typeof r=="bigint"){var m=String(r)+"n";return c?ao(r,m):m}var v=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=v&&v>0&&typeof r=="object")return Me(r)?"[Array]":"[Object]";var h=ef(a,n);if(typeof u=="undefined")u=[];else if(vo(u,r)>=0)return"[Circular]";function g(K,Ar,Li){if(Ar&&(u=Mu.call(u),u.push(Ar)),Li){var yt={depth:a.depth};return C(a,"quoteStyle")&&(yt.quoteStyle=a.quoteStyle),e(K,yt,n+1,u)}return e(K,a,n+1,u)}if(typeof r=="function"&&!lo(r)){var A=Hu(r),x=Lr(r,g);return"[Function"+(A?": "+A:" (anonymous)")+"]"+(x.length>0?" { "+F.call(x,", ")+" }":"")}if(go(r)){var S=tr?U.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):_e.call(r);return typeof r=="object"&&!tr?hr(S):S}if(Zu(r)){for(var q="<"+to.call(String(r.nodeName)),$=r.attributes||[],R=0;R<$.length;R++)q+=" "+$[R].name+"="+yo(Cu($[R].value),"double",a);return q+=">",r.childNodes&&r.childNodes.length&&(q+="..."),q+="</"+to.call(String(r.nodeName))+">",q}if(Me(r)){if(r.length===0)return"[]";var L=Lr(r,g);return h&&!rf(L)?"["+Ce(L,h)+"]":"[ "+F.call(L,", ")+" ]"}if(Wu(r)){var ir=Lr(r,g);return!("cause"in Error.prototype)&&"cause"in r&&!co.call(r,"cause")?"{ ["+String(r)+"] "+F.call(no.call("[cause]: "+g(r.cause),ir),", ")+" }":ir.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+F.call(ir,", ")+" }"}if(typeof r=="object"&&f){if(fo&&typeof r[fo]=="function"&&Be)return Be(r,{depth:v-n});if(f!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Ju(r)){var wr=[];return Vn&&Vn.call(r,function(K,Ar){wr.push(g(Ar,r,!0)+" => "+g(K,r))}),so("Map",Gr.call(r),wr,h)}if(Yu(r)){var st=[];return ro&&ro.call(r,function(K){st.push(g(K,r))}),so("Set",kr.call(r),st,h)}if(Ku(r))return Ne("WeakMap");if(Xu(r))return Ne("WeakSet");if(Qu(r))return Ne("WeakRef");if(Gu(r))return hr(g(Number(r)));if(zu(r))return hr(g(De.call(r)));if(ku(r))return hr(Ru.call(r));if(Lu(r))return hr(g(String(r)));if(typeof window!="undefined"&&r===window)return"{ [object Window] }";if(r===globalThis)return"{ [object globalThis] }";if(!Uu(r)&&!lo(r)){var re=Lr(r,g),pt=io?io(r)===Object.prototype:r instanceof Object||r.constructor===Object,ee=r instanceof Object?"":"null prototype",ct=!pt&&O&&Object(r)===r&&O in r?Le.call(W(r),8,-1):ee?"Object":"",Wi=pt||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",te=Wi+(ct||ee?"["+F.call(no.call([],ct||[],ee||[]),": ")+"] ":"");return re.length===0?te+"{}":h?te+"{"+Ce(re,h)+"}":te+"{ "+F.call(re,", ")+" }"}return String(r)};function yo(e,r,t){var n=(t.quoteStyle||r)==="double"?'"':"'";return n+e+n}function Cu(e){return U.call(String(e),/"/g,"&quot;")}function Me(e){return W(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function Uu(e){return W(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function lo(e){return W(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function Wu(e){return W(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function Lu(e){return W(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function Gu(e){return W(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function ku(e){return W(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function go(e){if(tr)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!_e)return!1;try{return _e.call(e),!0}catch(r){}return!1}function zu(e){if(!e||typeof e!="object"||!De)return!1;try{return De.call(e),!0}catch(r){}return!1}var ju=Object.prototype.hasOwnProperty||function(e){return e in this};function C(e,r){return ju.call(e,r)}function W(e){return Nu.call(e)}function Hu(e){if(e.name)return e.name;var r=_u.call(Du.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function vo(e,r){if(e.indexOf)return e.indexOf(r);for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}function Ju(e){if(!Gr||!e||typeof e!="object")return!1;try{Gr.call(e);try{kr.call(e)}catch(r){return!0}return e instanceof Map}catch(r){}return!1}function Ku(e){if(!dr||!e||typeof e!="object")return!1;try{dr.call(e,dr);try{mr.call(e,mr)}catch(r){return!0}return e instanceof WeakMap}catch(r){}return!1}function Qu(e){if(!eo||!e||typeof e!="object")return!1;try{return eo.call(e),!0}catch(r){}return!1}function Yu(e){if(!kr||!e||typeof e!="object")return!1;try{kr.call(e);try{Gr.call(e)}catch(r){return!0}return e instanceof Set}catch(r){}return!1}function Xu(e){if(!mr||!e||typeof e!="object")return!1;try{mr.call(e,mr);try{dr.call(e,dr)}catch(r){return!0}return e instanceof WeakSet}catch(r){}return!1}function Zu(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function ho(e,r){if(e.length>r.maxStringLength){var t=e.length-r.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return ho(Le.call(e,0,r.maxStringLength),r)+n}var u=U.call(U.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Vu);return yo(u,"single",r)}function Vu(e){var r=e.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return t?"\\"+t:"\\x"+(r<16?"0":"")+Bu.call(r.toString(16))}function hr(e){return"Object("+e+")"}function Ne(e){return e+" { ? }"}function so(e,r,t,n){var u=n?Ce(t,n):F.call(t,", ");return e+" ("+r+") {"+u+"}"}function rf(e){for(var r=0;r<e.length;r++)if(vo(e[r],`
11
- `)>=0)return!1;return!0}function ef(e,r){var t;if(e.indent===" ")t=" ";else if(typeof e.indent=="number"&&e.indent>0)t=F.call(Array(e.indent+1)," ");else return null;return{base:t,prev:F.call(Array(r+1),t)}}function Ce(e,r){if(e.length===0)return"";var t=`
10
+ `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}function $e(e){return Array.isArray(e)}function Ur(e){return typeof e=="boolean"}function gr(e){return e===null}function Gn(e){return e==null}function Ee(e){return typeof e=="number"}function vr(e){return typeof e=="string"}function kn(e){return typeof e=="symbol"}function I(e){return e===void 0}function pr(e){return H(e)&&Pe(e)==="[object RegExp]"}function H(e){return typeof e=="object"&&e!==null}function Mr(e){return H(e)&&Pe(e)==="[object Date]"}function cr(e){return H(e)&&(Pe(e)==="[object Error]"||e instanceof Error)}function yr(e){return typeof e=="function"}function zn(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}function jn(e){return s.isBuffer(e)}function Pe(e){return Object.prototype.toString.call(e)}function Oe(e){return e<10?"0"+e.toString(10):e.toString(10)}function Pu(){var e=new Date,r=[Oe(e.getHours()),Oe(e.getMinutes()),Oe(e.getSeconds())].join(":");return[e.getDate(),Eu[e.getMonth()],r].join(" ")}function Hn(){console.log("%s - %s",Pu(),Cr.apply(null,arguments))}function Ie(e,r){if(!r||!H(r))return e;for(var t=Object.keys(r),n=t.length;n--;)e[t[n]]=r[t[n]];return e}function Jn(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var bu,_r,we,Eu,Iu,Qn=ne(()=>{"use strict";o();i();Un();Wn();bu=/%[sdj%]/g;_r={};T.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};T.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};Eu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Iu={inherits:be,_extend:Ie,log:Hn,isBuffer:jn,isPrimitive:zn,isFunction:yr,isError:cr,isDate:Mr,isObject:H,isRegExp:pr,isUndefined:I,isSymbol:kn,isString:vr,isNumber:Ee,isNullOrUndefined:Gn,isNull:gr,isBoolean:Ur,isArray:$e,inspect:T,deprecate:xe,format:Cr,debuglog:Ln}});var Yn=y((Np,Wr)=>{"use strict";o();i();var J=(Qn(),ji(Kn));if(J&&J.default){Wr.exports=J.default;for(let e in J)Wr.exports[e]=J[e]}else J&&(Wr.exports=J)});var Zn=y((Bp,Xn)=>{"use strict";o();i();Xn.exports=Yn().inspect});var Sr=y((Up,So)=>{"use strict";o();i();var Ue=typeof Map=="function"&&Map.prototype,Te=Object.getOwnPropertyDescriptor&&Ue?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gr=Ue&&Te&&typeof Te.get=="function"?Te.get:null,Vn=Ue&&Map.prototype.forEach,We=typeof Set=="function"&&Set.prototype,Fe=Object.getOwnPropertyDescriptor&&We?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,kr=We&&Fe&&typeof Fe.get=="function"?Fe.get:null,ro=We&&Set.prototype.forEach,Tu=typeof WeakMap=="function"&&WeakMap.prototype,dr=Tu?WeakMap.prototype.has:null,Fu=typeof WeakSet=="function"&&WeakSet.prototype,mr=Fu?WeakSet.prototype.has:null,Ru=typeof WeakRef=="function"&&WeakRef.prototype,eo=Ru?WeakRef.prototype.deref:null,Nu=Boolean.prototype.valueOf,Du=Object.prototype.toString,_u=Function.prototype.toString,Bu=String.prototype.match,Le=String.prototype.slice,U=String.prototype.replace,Mu=String.prototype.toUpperCase,to=String.prototype.toLowerCase,po=RegExp.prototype.test,no=Array.prototype.concat,F=Array.prototype.join,Cu=Array.prototype.slice,oo=Math.floor,De=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Re=Object.getOwnPropertySymbols,_e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,tr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===tr||!0)?Symbol.toStringTag:null,co=Object.prototype.propertyIsEnumerable,io=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ao(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||po.call(/e/,r))return r;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-oo(-e):oo(e);if(n!==e){var u=String(n),a=Le.call(r,u.length+1);return U.call(u,t,"$&_")+"."+U.call(U.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return U.call(r,t,"$&_")}var Be=Zn(),uo=Be.custom,fo=vo(uo)?uo:null,yo={__proto__:null,double:'"',single:"'"},Uu={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};So.exports=function e(r,t,n,u){var a=t||{};if(D(a,"quoteStyle")&&!D(yo,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(D(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=D(a,"customInspect")?a.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(D(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(D(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=a.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return mo(r,a);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var l=String(r);return c?ao(r,l):l}if(typeof r=="bigint"){var m=String(r)+"n";return c?ao(r,m):m}var v=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=v&&v>0&&typeof r=="object")return Me(r)?"[Array]":"[Object]";var h=nf(a,n);if(typeof u=="undefined")u=[];else if(ho(u,r)>=0)return"[Circular]";function g(K,Ar,Gi){if(Ar&&(u=Cu.call(u),u.push(Ar)),Gi){var yt={depth:a.depth};return D(a,"quoteStyle")&&(yt.quoteStyle=a.quoteStyle),e(K,yt,n+1,u)}return e(K,a,n+1,u)}if(typeof r=="function"&&!lo(r)){var A=Ku(r),x=Lr(r,g);return"[Function"+(A?": "+A:" (anonymous)")+"]"+(x.length>0?" { "+F.call(x,", ")+" }":"")}if(vo(r)){var S=tr?U.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):_e.call(r);return typeof r=="object"&&!tr?hr(S):S}if(rf(r)){for(var q="<"+to.call(String(r.nodeName)),$=r.attributes||[],R=0;R<$.length;R++)q+=" "+$[R].name+"="+go(Wu($[R].value),"double",a);return q+=">",r.childNodes&&r.childNodes.length&&(q+="..."),q+="</"+to.call(String(r.nodeName))+">",q}if(Me(r)){if(r.length===0)return"[]";var L=Lr(r,g);return h&&!tf(L)?"["+Ce(L,h)+"]":"[ "+F.call(L,", ")+" ]"}if(Gu(r)){var ir=Lr(r,g);return!("cause"in Error.prototype)&&"cause"in r&&!co.call(r,"cause")?"{ ["+String(r)+"] "+F.call(no.call("[cause]: "+g(r.cause),ir),", ")+" }":ir.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+F.call(ir,", ")+" }"}if(typeof r=="object"&&f){if(fo&&typeof r[fo]=="function"&&Be)return Be(r,{depth:v-n});if(f!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Qu(r)){var wr=[];return Vn&&Vn.call(r,function(K,Ar){wr.push(g(Ar,r,!0)+" => "+g(K,r))}),so("Map",Gr.call(r),wr,h)}if(Zu(r)){var st=[];return ro&&ro.call(r,function(K){st.push(g(K,r))}),so("Set",kr.call(r),st,h)}if(Yu(r))return Ne("WeakMap");if(Vu(r))return Ne("WeakSet");if(Xu(r))return Ne("WeakRef");if(zu(r))return hr(g(Number(r)));if(Hu(r))return hr(g(De.call(r)));if(ju(r))return hr(Nu.call(r));if(ku(r))return hr(g(String(r)));if(typeof window!="undefined"&&r===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&r===globalThis||typeof globalThis!="undefined"&&r===globalThis)return"{ [object globalThis] }";if(!Lu(r)&&!lo(r)){var re=Lr(r,g),pt=io?io(r)===Object.prototype:r instanceof Object||r.constructor===Object,ee=r instanceof Object?"":"null prototype",ct=!pt&&O&&Object(r)===r&&O in r?Le.call(W(r),8,-1):ee?"Object":"",Li=pt||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",te=Li+(ct||ee?"["+F.call(no.call([],ct||[],ee||[]),": ")+"] ":"");return re.length===0?te+"{}":h?te+"{"+Ce(re,h)+"}":te+"{ "+F.call(re,", ")+" }"}return String(r)};function go(e,r,t){var n=t.quoteStyle||r,u=yo[n];return u+e+u}function Wu(e){return U.call(String(e),/"/g,"&quot;")}function Me(e){return W(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function Lu(e){return W(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function lo(e){return W(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function Gu(e){return W(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function ku(e){return W(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function zu(e){return W(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function ju(e){return W(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function vo(e){if(tr)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!_e)return!1;try{return _e.call(e),!0}catch(r){}return!1}function Hu(e){if(!e||typeof e!="object"||!De)return!1;try{return De.call(e),!0}catch(r){}return!1}var Ju=Object.prototype.hasOwnProperty||function(e){return e in this};function D(e,r){return Ju.call(e,r)}function W(e){return Du.call(e)}function Ku(e){if(e.name)return e.name;var r=Bu.call(_u.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function ho(e,r){if(e.indexOf)return e.indexOf(r);for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}function Qu(e){if(!Gr||!e||typeof e!="object")return!1;try{Gr.call(e);try{kr.call(e)}catch(r){return!0}return e instanceof Map}catch(r){}return!1}function Yu(e){if(!dr||!e||typeof e!="object")return!1;try{dr.call(e,dr);try{mr.call(e,mr)}catch(r){return!0}return e instanceof WeakMap}catch(r){}return!1}function Xu(e){if(!eo||!e||typeof e!="object")return!1;try{return eo.call(e),!0}catch(r){}return!1}function Zu(e){if(!kr||!e||typeof e!="object")return!1;try{kr.call(e);try{Gr.call(e)}catch(r){return!0}return e instanceof Set}catch(r){}return!1}function Vu(e){if(!mr||!e||typeof e!="object")return!1;try{mr.call(e,mr);try{dr.call(e,dr)}catch(r){return!0}return e instanceof WeakSet}catch(r){}return!1}function rf(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function mo(e,r){if(e.length>r.maxStringLength){var t=e.length-r.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return mo(Le.call(e,0,r.maxStringLength),r)+n}var u=Uu[r.quoteStyle||"single"];u.lastIndex=0;var a=U.call(U.call(e,u,"\\$1"),/[\x00-\x1f]/g,ef);return go(a,"single",r)}function ef(e){var r=e.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return t?"\\"+t:"\\x"+(r<16?"0":"")+Mu.call(r.toString(16))}function hr(e){return"Object("+e+")"}function Ne(e){return e+" { ? }"}function so(e,r,t,n){var u=n?Ce(t,n):F.call(t,", ");return e+" ("+r+") {"+u+"}"}function tf(e){for(var r=0;r<e.length;r++)if(ho(e[r],`
11
+ `)>=0)return!1;return!0}function nf(e,r){var t;if(e.indent===" ")t=" ";else if(typeof e.indent=="number"&&e.indent>0)t=F.call(Array(e.indent+1)," ");else return null;return{base:t,prev:F.call(Array(r+1),t)}}function Ce(e,r){if(e.length===0)return"";var t=`
12
12
  `+r.prev+r.base;return t+F.call(e,","+t)+`
13
- `+r.prev}function Lr(e,r){var t=Me(e),n=[];if(t){n.length=e.length;for(var u=0;u<e.length;u++)n[u]=C(e,u)?r(e[u],e):""}var a=typeof Re=="function"?Re(e):[],f;if(tr){f={};for(var c=0;c<a.length;c++)f["$"+a[c]]=a[c]}for(var l in e)C(e,l)&&(t&&String(Number(l))===l&&l<e.length||tr&&f["$"+l]instanceof Symbol||(po.call(/[^\w$]/,l)?n.push(r(l,e)+": "+r(e[l],e)):n.push(l+": "+r(e[l],e))));if(typeof Re=="function")for(var m=0;m<a.length;m++)co.call(e,a[m])&&n.push("["+r(a[m])+"]: "+r(e[a[m]],e));return n}});var zr=y((Wp,So)=>{"use strict";o();i();So.exports=function(r){return typeof r=="string"||typeof r=="symbol"}});var wo=y((kp,bo)=>{"use strict";o();i();var tf=w(),nf=Sr(),of=zr();bo.exports=function(r,t){if(!of(t))throw new tf("Assertion failed: IsPropertyKey(P) is not true, got "+nf(t));return r[t]}});var xo=y((Hp,qo)=>{"use strict";o();i();var Oo=Function.prototype.toString,nr=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ke,jr;if(typeof nr=="function"&&typeof Object.defineProperty=="function")try{ke=Object.defineProperty({},"length",{get:function(){throw jr}}),jr={},nr(function(){throw 42},null,ke)}catch(e){e!==jr&&(nr=null)}else nr=null;var af=/^\s*class\b/,ze=function(r){try{var t=Oo.call(r);return af.test(t)}catch(n){return!1}},Ge=function(r){try{return ze(r)?!1:(Oo.call(r),!0)}catch(t){return!1}},Hr=Object.prototype.toString,uf="[object Object]",ff="[object Function]",lf="[object GeneratorFunction]",sf="[object HTMLAllCollection]",pf="[object HTML document.all class]",cf="[object HTMLCollection]",yf=typeof Symbol=="function"&&!!Symbol.toStringTag,gf=!(0 in[,]),je=function(){return!1};typeof document=="object"&&(Ao=document.all,Hr.call(Ao)===Hr.call(document.all)&&(je=function(r){if((gf||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Hr.call(r);return(t===sf||t===pf||t===cf||t===uf)&&r("")==null}catch(n){}return!1}));var Ao;qo.exports=nr?function(r){if(je(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{nr(r,null,ke)}catch(t){if(t!==jr)return!1}return!ze(r)&&Ge(r)}:function(r){if(je(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(yf)return Ge(r);if(ze(r))return!1;var t=Hr.call(r);return t!==ff&&t!==lf&&!/^\[object HTML/.test(t)?!1:Ge(r)}});var He=y((Qp,$o)=>{"use strict";o();i();$o.exports=xo()});var To=y((Zp,Io)=>{"use strict";o();i();var Eo=w(),vf=wo(),hf=He(),df=zr(),Po=Sr();Io.exports=function(r,t){if(!df(t))throw new Eo("Assertion failed: IsPropertyKey(P) is not true");var n=vf(r,t);if(n!=null){if(!hf(n))throw new Eo(Po(t)+" is not a function: "+Po(n));return n}}});var Ro=y((ec,Fo)=>{"use strict";o();i();var mf=ie();Fo.exports=function(){return mf()&&!!Symbol.toStringTag}});var Ye=y((oc,Bo)=>{"use strict";o();i();var Je=P(),No=Ro()(),Do,_o,Ke,Qe;No&&(Do=Je("Object.prototype.hasOwnProperty"),_o=Je("RegExp.prototype.exec"),Ke={},Jr=function(){throw Ke},Qe={toString:Jr,valueOf:Jr},typeof Symbol.toPrimitive=="symbol"&&(Qe[Symbol.toPrimitive]=Jr));var Jr,Sf=Je("Object.prototype.toString"),bf=Object.getOwnPropertyDescriptor,wf="[object RegExp]";Bo.exports=No?function(r){if(!r||typeof r!="object")return!1;var t=bf(r,"lastIndex"),n=t&&Do(t,"value");if(!n)return!1;try{_o(r,Qe)}catch(u){return u===Ke}}:function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:Sf(r)===wf}});var Xe=y((uc,Mo)=>{"use strict";o();i();var Af=P(),Of=Ye(),qf=Af("RegExp.prototype.exec"),xf=w();Mo.exports=function(r){if(!Of(r))throw new xf("`regex` must be a RegExp");return function(n){return qf(r,n)!==null}}});var Uo=y((sc,Co)=>{"use strict";o();i();Co.exports=function(r,t){for(var n=0;n<r.length;n+=1)if(!t(r[n],n,r))return!1;return!0}});var Lo=y((yc,Wo)=>{"use strict";o();i();Wo.exports=function(r){if(r===null)return"Null";if(typeof r=="undefined")return"Undefined";if(typeof r=="function"||typeof r=="object")return"Object";if(typeof r=="number")return"Number";if(typeof r=="boolean")return"Boolean";if(typeof r=="string")return"String"}});var Ze=y((hc,Go)=>{"use strict";o();i();var $f=Lo();Go.exports=function(r){return typeof r=="symbol"?"Symbol":typeof r=="bigint"?"BigInt":$f(r)}});var jo=y((Sc,zo)=>{"use strict";o();i();var ko=w(),Ef=Sr(),Pf=zr(),If=Ze();zo.exports=function(r,t){if(If(r)!=="Object")throw new ko("Assertion failed: Type(O) is not Object");if(!Pf(t))throw new ko("Assertion failed: IsPropertyKey(P) is not true, got "+Ef(t));return r[t]}});var Jo=y((Ac,Ho)=>{"use strict";o();i();var Tf=E();Ho.exports=Tf("%Math.min%")});var Ve=y((xc,Ko)=>{"use strict";o();i();Ko.exports=Number.isNaN||function(r){return r!==r}});var Yo=y((Pc,Qo)=>{"use strict";o();i();var Ff=Ve();Qo.exports=function(e){return(typeof e=="number"||typeof e=="bigint")&&!Ff(e)&&e!==1/0&&e!==-1/0}});var Kr=y((Fc,Zo)=>{"use strict";o();i();var Xo=E(),Rf=Xo("%Math.abs%"),Nf=Xo("%Math.floor%"),Df=Ve(),_f=Yo();Zo.exports=function(r){if(typeof r!="number"||Df(r)||!_f(r))return!1;var t=Rf(r);return Nf(t)===t}});var et=y((Dc,Vo)=>{"use strict";o();i();var Bf=P(),rt=w(),Mf=Kr(),Cf=Bf("String.prototype.slice");Vo.exports=function(r,t,n){if(typeof r!="string")throw new rt("Assertion failed: `string` must be a String");if(typeof t!="string")throw new rt("Assertion failed: `searchValue` must be a String");if(!Mf(n)||n<0)throw new rt("Assertion failed: `fromIndex` must be a non-negative integer");var u=r.length;if(t===""&&n<=u)return n;for(var a=t.length,f=n;f<=u-a;f+=1){var c=Cf(r,f,f+a);if(c===t)return f}return-1}});var Qr=y((Mc,ri)=>{"use strict";o();i();var Uf=w();ri.exports=function(r){if(r==null)throw new Uf(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r}});var Yr=y((Wc,ei)=>{"use strict";o();i();var Wf=E(),Lf=Wf("%String%"),Gf=w();ei.exports=function(r){if(typeof r=="symbol")throw new Gf("Cannot convert a Symbol value to a string");return Lf(r)}});var tt=y((kc,oi)=>{"use strict";o();i();var kf=Qr(),zf=Yr(),jf=P(),ti=jf("String.prototype.replace"),ni=/^\s$/.test("\u180E"),Hf=ni?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Jf=ni?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;oi.exports=function(){var r=zf(kf(this));return ti(ti(r,Hf,""),Jf,"")}});var nt=y((Hc,ai)=>{"use strict";o();i();var Kf=tt(),ii="\u200B",or="\u180E";ai.exports=function(){return String.prototype.trim&&ii.trim()===ii&&or.trim()===or&&("_"+or).trim()==="_"+or&&(or+"_").trim()===or+"_"?String.prototype.trim:Kf}});var fi=y((Qc,ui)=>{"use strict";o();i();var Qf=lr(),Yf=nt();ui.exports=function(){var r=Yf();return Qf(String.prototype,{trim:r},{trim:function(){return String.prototype.trim!==r}}),r}});var ci=y((Zc,pi)=>{"use strict";o();i();var Xf=Fr(),Zf=lr(),Vf=Qr(),rl=tt(),li=nt(),el=fi(),tl=Xf(li()),si=function(r){return Vf(r),tl(r)};Zf(si,{getPolyfill:li,implementation:rl,shim:el});pi.exports=si});var hi=y((ey,vi)=>{"use strict";o();i();var it=E(),ot=it("%Number%"),nl=it("%RegExp%"),ol=w(),yi=it("%parseInt%"),il=P(),Xr=Xe(),gi=il("String.prototype.slice"),al=Xr(/^0b[01]+$/i),ul=Xr(/^0o[0-7]+$/i),fl=Xr(/^[-+]0x[0-9a-f]+$/i),ll=["\x85","\u200B","\uFFFE"].join(""),sl=new nl("["+ll+"]","g"),pl=Xr(sl),cl=ci();vi.exports=function e(r){if(typeof r!="string")throw new ol("Assertion failed: `argument` is not a String");if(al(r))return ot(yi(gi(r,2),2));if(ul(r))return ot(yi(gi(r,2),8));if(pl(r)||fl(r))return NaN;var t=cl(r);return t!==r?e(t):ot(r)}});var Si=y((oy,mi)=>{"use strict";o();i();var yl=w(),di=Kr(),gl=P(),vl=gl("String.prototype.slice");mi.exports=function(r,t,n){if(typeof r!="string"||!di(t)||arguments.length>2&&!di(n))throw new yl("`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers");return vl(r,t,arguments.length>2?n:r.length)}});var wi=y((uy,bi)=>{"use strict";o();i();bi.exports=function(r){return typeof r=="string"||typeof r=="undefined"}});var Oi=y((sy,Ai)=>{"use strict";o();i();var hl=P()("String.prototype.slice");Ai.exports=function(r,t){return r===t?!0:r.length>t.length?!1:hl(t,0,r.length)===r}});var Pi=y((yy,Ei)=>{"use strict";o();i();var D=w(),$i=Xe(),dl=Uo(),at=Sr(),ml=jo(),Sl=me(),bl=Jo(),wl=et(),qi=hi(),_=Si(),Al=Yr(),xi=Ze(),Ol=Kr(),ql=wi(),br=Oi(),xl=$i(/^\$[0-9]/),$l=$i(/^\$[0-9][0-9]/);Ei.exports=function(r,t,n,u,a,f){if(typeof r!="string")throw new D("Assertion failed: `matched` must be a String");if(typeof t!="string")throw new D("Assertion failed: `str` must be a String");if(!Ol(n)||n<0)throw new D("Assertion failed: `position` must be a nonnegative integer, got "+at(n));if(!Sl(u)||!dl(u,ql))throw new D("Assertion failed: `captures` must be a possibly-empty List of Strings or `undefined`, got "+at(u));if(typeof a!="undefined"&&xi(a)!=="Object")throw new D("Assertion failed: `namedCaptures` must be `undefined` or an Object");if(typeof f!="string")throw new D("Assertion failed: `replacementTemplate` must be a String");var c=t.length;if(n>c)throw new D("Assertion failed: position > stringLength, got "+at(n));for(var l=f,m="";l!=="";){var v,h,g;if(br("$$",l))v="$$",h="$";else if(br("$`",l))v="$`",h=_(t,0,n);else if(br("$&",l))v="$&",h=r;else if(br("$'",l)){v="$'";var A=r.length,x=n+A;h=_(t,bl(x,c))}else if(xl(l)){var S=$l(l)?2:1,q=_(l,1,1+S),$=qi(q);if($<0||$>99)throw new D("Assertion failed: `index` must be >= 0 and <= 99");var R=u.length;$>R&&S===2&&(S=1,q=_(q,0,1),$=qi(q)),v=_(l,0,1+S),1<=$&&$<=R?(g=u[$-1],typeof g=="undefined"?h="":h=g):h=v}else if(br("$<",l)){var L=wl(l,">",0);if(L===-1||typeof a=="undefined")v="$<",h=v;else{v=_(l,0,L+1);var ir=_(l,2,L);if(xi(a)!=="Object")throw new D("Assertion failed: Type(namedCaptures) is not Object");g=ml(a,ir),typeof g=="undefined"?h="":h=Al(g)}}else v=_(l,0,1),h=v;var wr=v.length;l=_(l,wr),m+=h}return m}});var ft=y((hy,Ri)=>{"use strict";o();i();var Ii=Nn(),El=To(),Pl=Pi(),Il=He(),Tl=Qr(),Zr=Yr(),Ti=et(),Fl=E(),Vr=P(),Rl=ae()(),Nl=Ye(),Dl=Fl("%Math.max%"),Fi=w(),_l=Vr("Array.prototype.push"),ut=Vr("String.prototype.slice"),Bl=Vr("String.prototype.indexOf"),Ml=Vr("String.prototype.replace");Ri.exports=function(r,t){var n=Tl(this),u=Nl(r);if(u&&Bl(ut(r,r.source.length+2),"g")===-1)throw new Fi("use .replace for a non-global regex. NOTE: this may be allowed in the future.");if(Rl&&Symbol.replace){if(r!=null){var a=El(r,Symbol.replace);if(typeof a!="undefined")return Ii(a,r,[n,t])}}else if(u)return Ml(n,r,t);var f=Zr(n),c=Zr(r),l=Il(t);l||(t=Zr(t));for(var m=c.length,v=Dl(1,m),h=[],g=Ti(f,c,0);g!==-1;)_l(h,g),g=Ti(f,c,g+v);for(var A=0,x="",S=0;S<h.length;S+=1){var q;if(l)q=Zr(Ii(t,void 0,[c,h[S],f]));else{if(typeof t!="string")throw new Fi("Assertion failed: `replaceValue` should be a string at this point");var $=[];q=Pl(c,f,h[S],$,void 0,t)}var R=ut(f,A,h[S]);x+=R+q,A=h[S]+m}return A<f.length&&(x+=ut(f,A)),x}});var lt=y((Sy,Ni)=>{"use strict";o();i();var Cl=ft();Ni.exports=function(){return String.prototype.replaceAll||Cl}});var _i=y((Ay,Di)=>{"use strict";o();i();var Ul=lr(),Wl=lt();Di.exports=function(){var r=Wl();return Ul(String.prototype,{replaceAll:r},{replaceAll:function(){return String.prototype.replaceAll!==r}}),r}});var Ui=y((xy,Ci)=>{"use strict";o();i();var Ll=Fr(),Gl=lr(),Bi=ft(),kl=lt(),zl=_i(),Mi=Ll(Bi);Gl(Mi,{getPolyfill:kl,implementation:Bi,shim:zl});Ci.exports=Mi});o();i();var Py=ki(Ui(),1);export{ji as DynamicSnippetsGenerator};
13
+ `+r.prev}function Lr(e,r){var t=Me(e),n=[];if(t){n.length=e.length;for(var u=0;u<e.length;u++)n[u]=D(e,u)?r(e[u],e):""}var a=typeof Re=="function"?Re(e):[],f;if(tr){f={};for(var c=0;c<a.length;c++)f["$"+a[c]]=a[c]}for(var l in e)D(e,l)&&(t&&String(Number(l))===l&&l<e.length||tr&&f["$"+l]instanceof Symbol||(po.call(/[^\w$]/,l)?n.push(r(l,e)+": "+r(e[l],e)):n.push(l+": "+r(e[l],e))));if(typeof Re=="function")for(var m=0;m<a.length;m++)co.call(e,a[m])&&n.push("["+r(a[m])+"]: "+r(e[a[m]],e));return n}});var zr=y((Gp,bo)=>{"use strict";o();i();bo.exports=function(r){return typeof r=="string"||typeof r=="symbol"}});var Ao=y((jp,wo)=>{"use strict";o();i();var of=w(),af=Sr(),uf=zr();wo.exports=function(r,t){if(!uf(t))throw new of("Assertion failed: IsPropertyKey(P) is not true, got "+af(t));return r[t]}});var $o=y((Kp,xo)=>{"use strict";o();i();var qo=Function.prototype.toString,nr=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ke,jr;if(typeof nr=="function"&&typeof Object.defineProperty=="function")try{ke=Object.defineProperty({},"length",{get:function(){throw jr}}),jr={},nr(function(){throw 42},null,ke)}catch(e){e!==jr&&(nr=null)}else nr=null;var ff=/^\s*class\b/,ze=function(r){try{var t=qo.call(r);return ff.test(t)}catch(n){return!1}},Ge=function(r){try{return ze(r)?!1:(qo.call(r),!0)}catch(t){return!1}},Hr=Object.prototype.toString,lf="[object Object]",sf="[object Function]",pf="[object GeneratorFunction]",cf="[object HTMLAllCollection]",yf="[object HTML document.all class]",gf="[object HTMLCollection]",vf=typeof Symbol=="function"&&!!Symbol.toStringTag,hf=!(0 in[,]),je=function(){return!1};typeof document=="object"&&(Oo=document.all,Hr.call(Oo)===Hr.call(document.all)&&(je=function(r){if((hf||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Hr.call(r);return(t===cf||t===yf||t===gf||t===lf)&&r("")==null}catch(n){}return!1}));var Oo;xo.exports=nr?function(r){if(je(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{nr(r,null,ke)}catch(t){if(t!==jr)return!1}return!ze(r)&&Ge(r)}:function(r){if(je(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(vf)return Ge(r);if(ze(r))return!1;var t=Hr.call(r);return t!==sf&&t!==pf&&!/^\[object HTML/.test(t)?!1:Ge(r)}});var He=y((Xp,Eo)=>{"use strict";o();i();Eo.exports=$o()});var Fo=y((rc,To)=>{"use strict";o();i();var Po=w(),df=Ao(),mf=He(),Sf=zr(),Io=Sr();To.exports=function(r,t){if(!Sf(t))throw new Po("Assertion failed: IsPropertyKey(P) is not true");var n=df(r,t);if(n!=null){if(!mf(n))throw new Po(Io(t)+" is not a function: "+Io(n));return n}}});var No=y((nc,Ro)=>{"use strict";o();i();var bf=ie();Ro.exports=function(){return bf()&&!!Symbol.toStringTag}});var Ye=y((ac,Mo)=>{"use strict";o();i();var Je=P(),Do=No()(),_o,Bo,Ke,Qe;Do&&(_o=Je("Object.prototype.hasOwnProperty"),Bo=Je("RegExp.prototype.exec"),Ke={},Jr=function(){throw Ke},Qe={toString:Jr,valueOf:Jr},typeof Symbol.toPrimitive=="symbol"&&(Qe[Symbol.toPrimitive]=Jr));var Jr,wf=Je("Object.prototype.toString"),Af=Object.getOwnPropertyDescriptor,Of="[object RegExp]";Mo.exports=Do?function(r){if(!r||typeof r!="object")return!1;var t=Af(r,"lastIndex"),n=t&&_o(t,"value");if(!n)return!1;try{Bo(r,Qe)}catch(u){return u===Ke}}:function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:wf(r)===Of}});var Xe=y((lc,Co)=>{"use strict";o();i();var qf=P(),xf=Ye(),$f=qf("RegExp.prototype.exec"),Ef=w();Co.exports=function(r){if(!xf(r))throw new Ef("`regex` must be a RegExp");return function(n){return $f(r,n)!==null}}});var Wo=y((cc,Uo)=>{"use strict";o();i();Uo.exports=function(r,t){for(var n=0;n<r.length;n+=1)if(!t(r[n],n,r))return!1;return!0}});var Go=y((vc,Lo)=>{"use strict";o();i();Lo.exports=function(r){if(r===null)return"Null";if(typeof r=="undefined")return"Undefined";if(typeof r=="function"||typeof r=="object")return"Object";if(typeof r=="number")return"Number";if(typeof r=="boolean")return"Boolean";if(typeof r=="string")return"String"}});var Ze=y((mc,ko)=>{"use strict";o();i();var Pf=Go();ko.exports=function(r){return typeof r=="symbol"?"Symbol":typeof r=="bigint"?"BigInt":Pf(r)}});var Ho=y((wc,jo)=>{"use strict";o();i();var zo=w(),If=Sr(),Tf=zr(),Ff=Ze();jo.exports=function(r,t){if(Ff(r)!=="Object")throw new zo("Assertion failed: Type(O) is not Object");if(!Tf(t))throw new zo("Assertion failed: IsPropertyKey(P) is not true, got "+If(t));return r[t]}});var Ko=y((qc,Jo)=>{"use strict";o();i();var Rf=E();Jo.exports=Rf("%Math.min%")});var Ve=y((Ec,Qo)=>{"use strict";o();i();Qo.exports=Number.isNaN||function(r){return r!==r}});var Xo=y((Tc,Yo)=>{"use strict";o();i();var Nf=Ve();Yo.exports=function(e){return(typeof e=="number"||typeof e=="bigint")&&!Nf(e)&&e!==1/0&&e!==-1/0}});var Kr=y((Nc,Vo)=>{"use strict";o();i();var Zo=E(),Df=Zo("%Math.abs%"),_f=Zo("%Math.floor%"),Bf=Ve(),Mf=Xo();Vo.exports=function(r){if(typeof r!="number"||Bf(r)||!Mf(r))return!1;var t=Df(r);return _f(t)===t}});var et=y((Bc,ri)=>{"use strict";o();i();var Cf=P(),rt=w(),Uf=Kr(),Wf=Cf("String.prototype.slice");ri.exports=function(r,t,n){if(typeof r!="string")throw new rt("Assertion failed: `string` must be a String");if(typeof t!="string")throw new rt("Assertion failed: `searchValue` must be a String");if(!Uf(n)||n<0)throw new rt("Assertion failed: `fromIndex` must be a non-negative integer");var u=r.length;if(t===""&&n<=u)return n;for(var a=t.length,f=n;f<=u-a;f+=1){var c=Wf(r,f,f+a);if(c===t)return f}return-1}});var Qr=y((Uc,ei)=>{"use strict";o();i();var Lf=w();ei.exports=function(r){if(r==null)throw new Lf(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r}});var Yr=y((Gc,ti)=>{"use strict";o();i();var Gf=E(),kf=Gf("%String%"),zf=w();ti.exports=function(r){if(typeof r=="symbol")throw new zf("Cannot convert a Symbol value to a string");return kf(r)}});var tt=y((jc,ii)=>{"use strict";o();i();var jf=Qr(),Hf=Yr(),Jf=P(),ni=Jf("String.prototype.replace"),oi=/^\s$/.test("\u180E"),Kf=oi?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Qf=oi?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;ii.exports=function(){var r=Hf(jf(this));return ni(ni(r,Kf,""),Qf,"")}});var nt=y((Kc,ui)=>{"use strict";o();i();var Yf=tt(),ai="\u200B",or="\u180E";ui.exports=function(){return String.prototype.trim&&ai.trim()===ai&&or.trim()===or&&("_"+or).trim()==="_"+or&&(or+"_").trim()===or+"_"?String.prototype.trim:Yf}});var li=y((Xc,fi)=>{"use strict";o();i();var Xf=lr(),Zf=nt();fi.exports=function(){var r=Zf();return Xf(String.prototype,{trim:r},{trim:function(){return String.prototype.trim!==r}}),r}});var yi=y((ry,ci)=>{"use strict";o();i();var Vf=Fr(),rl=lr(),el=Qr(),tl=tt(),si=nt(),nl=li(),ol=Vf(si()),pi=function(r){return el(r),ol(r)};rl(pi,{getPolyfill:si,implementation:tl,shim:nl});ci.exports=pi});var di=y((ny,hi)=>{"use strict";o();i();var it=E(),ot=it("%Number%"),il=it("%RegExp%"),al=w(),gi=it("%parseInt%"),ul=P(),Xr=Xe(),vi=ul("String.prototype.slice"),fl=Xr(/^0b[01]+$/i),ll=Xr(/^0o[0-7]+$/i),sl=Xr(/^[-+]0x[0-9a-f]+$/i),pl=["\x85","\u200B","\uFFFE"].join(""),cl=new il("["+pl+"]","g"),yl=Xr(cl),gl=yi();hi.exports=function e(r){if(typeof r!="string")throw new al("Assertion failed: `argument` is not a String");if(fl(r))return ot(gi(vi(r,2),2));if(ll(r))return ot(gi(vi(r,2),8));if(yl(r)||sl(r))return NaN;var t=gl(r);return t!==r?e(t):ot(r)}});var bi=y((ay,Si)=>{"use strict";o();i();var vl=w(),mi=Kr(),hl=P(),dl=hl("String.prototype.slice");Si.exports=function(r,t,n){if(typeof r!="string"||!mi(t)||arguments.length>2&&!mi(n))throw new vl("`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers");return dl(r,t,arguments.length>2?n:r.length)}});var Ai=y((ly,wi)=>{"use strict";o();i();wi.exports=function(r){return typeof r=="string"||typeof r=="undefined"}});var qi=y((cy,Oi)=>{"use strict";o();i();var ml=P()("String.prototype.slice");Oi.exports=function(r,t){return r===t?!0:r.length>t.length?!1:ml(t,0,r.length)===r}});var Ii=y((vy,Pi)=>{"use strict";o();i();var _=w(),Ei=Xe(),Sl=Wo(),at=Sr(),bl=Ho(),wl=me(),Al=Ko(),Ol=et(),xi=di(),B=bi(),ql=Yr(),$i=Ze(),xl=Kr(),$l=Ai(),br=qi(),El=Ei(/^\$[0-9]/),Pl=Ei(/^\$[0-9][0-9]/);Pi.exports=function(r,t,n,u,a,f){if(typeof r!="string")throw new _("Assertion failed: `matched` must be a String");if(typeof t!="string")throw new _("Assertion failed: `str` must be a String");if(!xl(n)||n<0)throw new _("Assertion failed: `position` must be a nonnegative integer, got "+at(n));if(!wl(u)||!Sl(u,$l))throw new _("Assertion failed: `captures` must be a possibly-empty List of Strings or `undefined`, got "+at(u));if(typeof a!="undefined"&&$i(a)!=="Object")throw new _("Assertion failed: `namedCaptures` must be `undefined` or an Object");if(typeof f!="string")throw new _("Assertion failed: `replacementTemplate` must be a String");var c=t.length;if(n>c)throw new _("Assertion failed: position > stringLength, got "+at(n));for(var l=f,m="";l!=="";){var v,h,g;if(br("$$",l))v="$$",h="$";else if(br("$`",l))v="$`",h=B(t,0,n);else if(br("$&",l))v="$&",h=r;else if(br("$'",l)){v="$'";var A=r.length,x=n+A;h=B(t,Al(x,c))}else if(El(l)){var S=Pl(l)?2:1,q=B(l,1,1+S),$=xi(q);if($<0||$>99)throw new _("Assertion failed: `index` must be >= 0 and <= 99");var R=u.length;$>R&&S===2&&(S=1,q=B(q,0,1),$=xi(q)),v=B(l,0,1+S),1<=$&&$<=R?(g=u[$-1],typeof g=="undefined"?h="":h=g):h=v}else if(br("$<",l)){var L=Ol(l,">",0);if(L===-1||typeof a=="undefined")v="$<",h=v;else{v=B(l,0,L+1);var ir=B(l,2,L);if($i(a)!=="Object")throw new _("Assertion failed: Type(namedCaptures) is not Object");g=bl(a,ir),typeof g=="undefined"?h="":h=ql(g)}}else v=B(l,0,1),h=v;var wr=v.length;l=B(l,wr),m+=h}return m}});var ft=y((my,Ni)=>{"use strict";o();i();var Ti=Nn(),Il=Fo(),Tl=Ii(),Fl=He(),Rl=Qr(),Zr=Yr(),Fi=et(),Nl=E(),Vr=P(),Dl=ae()(),_l=Ye(),Bl=Nl("%Math.max%"),Ri=w(),Ml=Vr("Array.prototype.push"),ut=Vr("String.prototype.slice"),Cl=Vr("String.prototype.indexOf"),Ul=Vr("String.prototype.replace");Ni.exports=function(r,t){var n=Rl(this),u=_l(r);if(u&&Cl(ut(r,r.source.length+2),"g")===-1)throw new Ri("use .replace for a non-global regex. NOTE: this may be allowed in the future.");if(Dl&&Symbol.replace){if(r!=null){var a=Il(r,Symbol.replace);if(typeof a!="undefined")return Ti(a,r,[n,t])}}else if(u)return Ul(n,r,t);var f=Zr(n),c=Zr(r),l=Fl(t);l||(t=Zr(t));for(var m=c.length,v=Bl(1,m),h=[],g=Fi(f,c,0);g!==-1;)Ml(h,g),g=Fi(f,c,g+v);for(var A=0,x="",S=0;S<h.length;S+=1){var q;if(l)q=Zr(Ti(t,void 0,[c,h[S],f]));else{if(typeof t!="string")throw new Ri("Assertion failed: `replaceValue` should be a string at this point");var $=[];q=Tl(c,f,h[S],$,void 0,t)}var R=ut(f,A,h[S]);x+=R+q,A=h[S]+m}return A<f.length&&(x+=ut(f,A)),x}});var lt=y((wy,Di)=>{"use strict";o();i();var Wl=ft();Di.exports=function(){return String.prototype.replaceAll||Wl}});var Bi=y((qy,_i)=>{"use strict";o();i();var Ll=lr(),Gl=lt();_i.exports=function(){var r=Gl();return Ll(String.prototype,{replaceAll:r},{replaceAll:function(){return String.prototype.replaceAll!==r}}),r}});var Wi=y((Ey,Ui)=>{"use strict";o();i();var kl=Fr(),zl=lr(),Mi=ft(),jl=lt(),Hl=Bi(),Ci=kl(Mi);zl(Ci,{getPolyfill:jl,implementation:Mi,shim:Hl});Ui.exports=Ci});o();i();var Ty=zi(Wi(),1);export{Hi as DynamicSnippetsGenerator};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/go-dynamic-snippets",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",
@@ -24,4 +24,4 @@
24
24
  "cjs",
25
25
  "esm"
26
26
  ]
27
- }
27
+ }
@@ -1,11 +0,0 @@
1
- "use strict";var z=Object.defineProperty;var pr=Object.getOwnPropertyDescriptor;var sr=Object.getOwnPropertyNames;var wr=Object.prototype.hasOwnProperty;var xr=(n,r,i,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of sr(r))!wr.call(n,t)&&t!==i&&z(n,t,{get:()=>r[t],enumerable:!(e=pr(r,t))||e.enumerable});return n};var Er=n=>xr(z({},"__esModule",{value:!0}),n);var yi={};module.exports=Er(yi);function J(){throw new Error("setTimeout has not been defined")}function O(){throw new Error("clearTimeout has not been defined")}var R=J,_=O;typeof globalThis.setTimeout=="function"&&(R=setTimeout);typeof globalThis.clearTimeout=="function"&&(_=clearTimeout);function Q(n){if(R===setTimeout)return setTimeout(n,0);if((R===J||!R)&&setTimeout)return R=setTimeout,setTimeout(n,0);try{return R(n,0)}catch(r){try{return R.call(null,n,0)}catch(i){return R.call(this,n,0)}}}function mr(n){if(_===clearTimeout)return clearTimeout(n);if((_===O||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(n);try{return _(n)}catch(r){try{return _.call(null,n)}catch(i){return _.call(this,n)}}}var g=[],S=!1,I,Y=-1;function Ar(){!S||!I||(S=!1,I.length?g=I.concat(g):Y=-1,g.length&&X())}function X(){if(!S){var n=Q(Ar);S=!0;for(var r=g.length;r;){for(I=g,g=[];++Y<r;)I&&I[Y].run();Y=-1,r=g.length}I=null,S=!1,mr(n)}}function yr(n){var r=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)r[i-1]=arguments[i];g.push(new q(n,r)),g.length===1&&!S&&Q(X)}function q(n,r){this.fun=n,this.array=r}q.prototype.run=function(){this.fun.apply(null,this.array)};var gr="browser",Tr="browser",Rr=!0,_r={},Ir=[],Ur="",vr={},dr={},Br={};function U(){}var Sr=U,Yr=U,Pr=U,Dr=U,Mr=U,Cr=U,kr=U;function Nr(n){throw new Error("process.binding is not supported")}function Lr(){return"/"}function Fr(n){throw new Error("process.chdir is not supported")}function Wr(){return 0}var B=globalThis.performance||{},Vr=B.now||B.mozNow||B.msNow||B.oNow||B.webkitNow||function(){return new Date().getTime()};function Hr(n){var r=Vr.call(B)*.001,i=Math.floor(r),e=Math.floor(r%1*1e9);return n&&(i=i-n[0],e=e-n[1],e<0&&(i--,e+=1e9)),[i,e]}var zr=new Date;function Gr(){var n=new Date,r=n-zr;return r/1e3}var L={nextTick:yr,title:gr,browser:Rr,env:_r,argv:Ir,version:Ur,versions:vr,on:Sr,addListener:Yr,once:Pr,off:Dr,removeListener:Mr,removeAllListeners:Cr,emit:kr,binding:Nr,cwd:Lr,chdir:Fr,umask:Wr,hrtime:Hr,platform:Tr,release:dr,config:Br,uptime:Gr},G={};Object.keys(G).forEach(n=>{let r=n.split("."),i=L;for(let e=0;e<r.length;e++){let t=r[e];e===r.length-1?i[t]=G[n]:i=i[t]||(i[t]={})}});var A=[],E=[],Jr=typeof Uint8Array!="undefined"?Uint8Array:Array,W=!1;function b(){W=!0;for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,i=n.length;r<i;++r)A[r]=n[r],E[n.charCodeAt(r)]=r;E[45]=62,E[95]=63}function Or(n){W||b();var r,i,e,t,f,u,a=n.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");f=n[a-2]==="="?2:n[a-1]==="="?1:0,u=new Jr(a*3/4-f),e=f>0?a-4:a;var h=0;for(r=0,i=0;r<e;r+=4,i+=3)t=E[n.charCodeAt(r)]<<18|E[n.charCodeAt(r+1)]<<12|E[n.charCodeAt(r+2)]<<6|E[n.charCodeAt(r+3)],u[h++]=t>>16&255,u[h++]=t>>8&255,u[h++]=t&255;return f===2?(t=E[n.charCodeAt(r)]<<2|E[n.charCodeAt(r+1)]>>4,u[h++]=t&255):f===1&&(t=E[n.charCodeAt(r)]<<10|E[n.charCodeAt(r+1)]<<4|E[n.charCodeAt(r+2)]>>2,u[h++]=t>>8&255,u[h++]=t&255),u}function Qr(n){return A[n>>18&63]+A[n>>12&63]+A[n>>6&63]+A[n&63]}function Xr(n,r,i){for(var e,t=[],f=r;f<i;f+=3)e=(n[f]<<16)+(n[f+1]<<8)+n[f+2],t.push(Qr(e));return t.join("")}function Z(n){W||b();for(var r,i=n.length,e=i%3,t="",f=[],u=16383,a=0,h=i-e;a<h;a+=u)f.push(Xr(n,a,a+u>h?h:a+u));return e===1?(r=n[i-1],t+=A[r>>2],t+=A[r<<4&63],t+="=="):e===2&&(r=(n[i-2]<<8)+n[i-1],t+=A[r>>10],t+=A[r>>4&63],t+=A[r<<2&63],t+="="),f.push(t),f.join("")}o.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function P(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function T(n,r){if(P()<r)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(r),n.__proto__=o.prototype):(n===null&&(n=new o(r)),n.length=r),n}function o(n,r,i){if(!o.TYPED_ARRAY_SUPPORT&&!(this instanceof o))return new o(n,r,i);if(typeof n=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return V(this,n)}return j(this,n,r,i)}o.poolSize=8192;o._augment=function(n){return n.__proto__=o.prototype,n};function j(n,r,i,e){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&r instanceof ArrayBuffer?Kr(n,r,i,e):typeof r=="string"?Zr(n,r,i):$r(n,r)}o.from=function(n,r,i){return j(null,n,r,i)};o.kMaxLength=P();o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&o[Symbol.species]);function rr(n){if(typeof n!="number")throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function qr(n,r,i,e){return rr(r),r<=0?T(n,r):i!==void 0?typeof e=="string"?T(n,r).fill(i,e):T(n,r).fill(i):T(n,r)}o.alloc=function(n,r,i){return qr(null,n,r,i)};function V(n,r){if(rr(r),n=T(n,r<0?0:H(r)|0),!o.TYPED_ARRAY_SUPPORT)for(var i=0;i<r;++i)n[i]=0;return n}o.allocUnsafe=function(n){return V(null,n)};o.allocUnsafeSlow=function(n){return V(null,n)};function Zr(n,r,i){if((typeof i!="string"||i==="")&&(i="utf8"),!o.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var e=ir(r,i)|0;n=T(n,e);var t=n.write(r,i);return t!==e&&(n=n.slice(0,t)),n}function F(n,r){var i=r.length<0?0:H(r.length)|0;n=T(n,i);for(var e=0;e<i;e+=1)n[e]=r[e]&255;return n}function Kr(n,r,i,e){if(r.byteLength,i<0||r.byteLength<i)throw new RangeError("'offset' is out of bounds");if(r.byteLength<i+(e||0))throw new RangeError("'length' is out of bounds");return i===void 0&&e===void 0?r=new Uint8Array(r):e===void 0?r=new Uint8Array(r,i):r=new Uint8Array(r,i,e),o.TYPED_ARRAY_SUPPORT?(n=r,n.__proto__=o.prototype):n=F(n,r),n}function $r(n,r){if(y(r)){var i=H(r.length)|0;return n=T(n,i),n.length===0||r.copy(n,0,0,i),n}if(r){if(typeof ArrayBuffer!="undefined"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||Ei(r.length)?T(n,0):F(n,r);if(r.type==="Buffer"&&Array.isArray(r.data))return F(n,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function H(n){if(n>=P())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P().toString(16)+" bytes");return n|0}o.isBuffer=mi;function y(n){return!!(n!=null&&n._isBuffer)}o.compare=function(r,i){if(!y(r)||!y(i))throw new TypeError("Arguments must be Buffers");if(r===i)return 0;for(var e=r.length,t=i.length,f=0,u=Math.min(e,t);f<u;++f)if(r[f]!==i[f]){e=r[f],t=i[f];break}return e<t?-1:t<e?1:0};o.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};o.concat=function(r,i){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);var e;if(i===void 0)for(i=0,e=0;e<r.length;++e)i+=r[e].length;var t=o.allocUnsafe(i),f=0;for(e=0;e<r.length;++e){var u=r[e];if(!y(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(t,f),f+=u.length}return t};function ir(n,r){if(y(n))return n.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;typeof n!="string"&&(n=""+n);var i=n.length;if(i===0)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return D(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return ar(n).length;default:if(e)return D(n).length;r=(""+r).toLowerCase(),e=!0}}o.byteLength=ir;function br(n,r,i){var e=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(n||(n="utf8");;)switch(n){case"hex":return ai(this,r,i);case"utf8":case"utf-8":return tr(this,r,i);case"ascii":return ui(this,r,i);case"latin1":case"binary":return oi(this,r,i);case"base64":return ti(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hi(this,r,i);default:if(e)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),e=!0}}o.prototype._isBuffer=!0;function v(n,r,i){var e=n[r];n[r]=n[i],n[i]=e}o.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<r;i+=2)v(this,i,i+1);return this};o.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<r;i+=4)v(this,i,i+3),v(this,i+1,i+2);return this};o.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<r;i+=8)v(this,i,i+7),v(this,i+1,i+6),v(this,i+2,i+5),v(this,i+3,i+4);return this};o.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?tr(this,0,r):br.apply(this,arguments)};o.prototype.equals=function(r){if(!y(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0};o.prototype.compare=function(r,i,e,t,f){if(!y(r))throw new TypeError("Argument must be a Buffer");if(i===void 0&&(i=0),e===void 0&&(e=r?r.length:0),t===void 0&&(t=0),f===void 0&&(f=this.length),i<0||e>r.length||t<0||f>this.length)throw new RangeError("out of range index");if(t>=f&&i>=e)return 0;if(t>=f)return-1;if(i>=e)return 1;if(i>>>=0,e>>>=0,t>>>=0,f>>>=0,this===r)return 0;for(var u=f-t,a=e-i,h=Math.min(u,a),l=this.slice(t,f),p=r.slice(i,e),c=0;c<h;++c)if(l[c]!==p[c]){u=l[c],a=p[c];break}return u<a?-1:a<u?1:0};function nr(n,r,i,e,t){if(n.length===0)return-1;if(typeof i=="string"?(e=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=t?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(t)return-1;i=n.length-1}else if(i<0)if(t)i=0;else return-1;if(typeof r=="string"&&(r=o.from(r,e)),y(r))return r.length===0?-1:K(n,r,i,e,t);if(typeof r=="number")return r=r&255,o.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?t?Uint8Array.prototype.indexOf.call(n,r,i):Uint8Array.prototype.lastIndexOf.call(n,r,i):K(n,[r],i,e,t);throw new TypeError("val must be string, number or Buffer")}function K(n,r,i,e,t){var f=1,u=n.length,a=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(n.length<2||r.length<2)return-1;f=2,u/=2,a/=2,i/=2}function h(x,d){return f===1?x[d]:x.readUInt16BE(d*f)}var l;if(t){var p=-1;for(l=i;l<u;l++)if(h(n,l)===h(r,p===-1?0:l-p)){if(p===-1&&(p=l),l-p+1===a)return p*f}else p!==-1&&(l-=l-p),p=-1}else for(i+a>u&&(i=u-a),l=i;l>=0;l--){for(var c=!0,m=0;m<a;m++)if(h(n,l+m)!==h(r,m)){c=!1;break}if(c)return l}return-1}o.prototype.includes=function(r,i,e){return this.indexOf(r,i,e)!==-1};o.prototype.indexOf=function(r,i,e){return nr(this,r,i,e,!0)};o.prototype.lastIndexOf=function(r,i,e){return nr(this,r,i,e,!1)};function jr(n,r,i,e){i=Number(i)||0;var t=n.length-i;e?(e=Number(e),e>t&&(e=t)):e=t;var f=r.length;if(f%2!==0)throw new TypeError("Invalid hex string");e>f/2&&(e=f/2);for(var u=0;u<e;++u){var a=parseInt(r.substr(u*2,2),16);if(isNaN(a))return u;n[i+u]=a}return u}function ri(n,r,i,e){return k(D(r,n.length-i),n,i,e)}function er(n,r,i,e){return k(wi(r),n,i,e)}function ii(n,r,i,e){return er(n,r,i,e)}function ni(n,r,i,e){return k(ar(r),n,i,e)}function ei(n,r,i,e){return k(xi(r,n.length-i),n,i,e)}o.prototype.write=function(r,i,e,t){if(i===void 0)t="utf8",e=this.length,i=0;else if(e===void 0&&typeof i=="string")t=i,e=this.length,i=0;else if(isFinite(i))i=i|0,isFinite(e)?(e=e|0,t===void 0&&(t="utf8")):(t=e,e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var f=this.length-i;if((e===void 0||e>f)&&(e=f),r.length>0&&(e<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var u=!1;;)switch(t){case"hex":return jr(this,r,i,e);case"utf8":case"utf-8":return ri(this,r,i,e);case"ascii":return er(this,r,i,e);case"latin1":case"binary":return ii(this,r,i,e);case"base64":return ni(this,r,i,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ei(this,r,i,e);default:if(u)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),u=!0}};o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ti(n,r,i){return r===0&&i===n.length?Z(n):Z(n.slice(r,i))}function tr(n,r,i){i=Math.min(n.length,i);for(var e=[],t=r;t<i;){var f=n[t],u=null,a=f>239?4:f>223?3:f>191?2:1;if(t+a<=i){var h,l,p,c;switch(a){case 1:f<128&&(u=f);break;case 2:h=n[t+1],(h&192)===128&&(c=(f&31)<<6|h&63,c>127&&(u=c));break;case 3:h=n[t+1],l=n[t+2],(h&192)===128&&(l&192)===128&&(c=(f&15)<<12|(h&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:h=n[t+1],l=n[t+2],p=n[t+3],(h&192)===128&&(l&192)===128&&(p&192)===128&&(c=(f&15)<<18|(h&63)<<12|(l&63)<<6|p&63,c>65535&&c<1114112&&(u=c))}}u===null?(u=65533,a=1):u>65535&&(u-=65536,e.push(u>>>10&1023|55296),u=56320|u&1023),e.push(u),t+=a}return fi(e)}var $=4096;function fi(n){var r=n.length;if(r<=$)return String.fromCharCode.apply(String,n);for(var i="",e=0;e<r;)i+=String.fromCharCode.apply(String,n.slice(e,e+=$));return i}function ui(n,r,i){var e="";i=Math.min(n.length,i);for(var t=r;t<i;++t)e+=String.fromCharCode(n[t]&127);return e}function oi(n,r,i){var e="";i=Math.min(n.length,i);for(var t=r;t<i;++t)e+=String.fromCharCode(n[t]);return e}function ai(n,r,i){var e=n.length;(!r||r<0)&&(r=0),(!i||i<0||i>e)&&(i=e);for(var t="",f=r;f<i;++f)t+=si(n[f]);return t}function hi(n,r,i){for(var e=n.slice(r,i),t="",f=0;f<e.length;f+=2)t+=String.fromCharCode(e[f]+e[f+1]*256);return t}o.prototype.slice=function(r,i){var e=this.length;r=~~r,i=i===void 0?e:~~i,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),i<0?(i+=e,i<0&&(i=0)):i>e&&(i=e),i<r&&(i=r);var t;if(o.TYPED_ARRAY_SUPPORT)t=this.subarray(r,i),t.__proto__=o.prototype;else{var f=i-r;t=new o(f,void 0);for(var u=0;u<f;++u)t[u]=this[u+r]}return t};function s(n,r,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+r>i)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(r,i,e){r=r|0,i=i|0,e||s(r,i,this.length);for(var t=this[r],f=1,u=0;++u<i&&(f*=256);)t+=this[r+u]*f;return t};o.prototype.readUIntBE=function(r,i,e){r=r|0,i=i|0,e||s(r,i,this.length);for(var t=this[r+--i],f=1;i>0&&(f*=256);)t+=this[r+--i]*f;return t};o.prototype.readUInt8=function(r,i){return i||s(r,1,this.length),this[r]};o.prototype.readUInt16LE=function(r,i){return i||s(r,2,this.length),this[r]|this[r+1]<<8};o.prototype.readUInt16BE=function(r,i){return i||s(r,2,this.length),this[r]<<8|this[r+1]};o.prototype.readUInt32LE=function(r,i){return i||s(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};o.prototype.readUInt32BE=function(r,i){return i||s(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};o.prototype.readIntLE=function(r,i,e){r=r|0,i=i|0,e||s(r,i,this.length);for(var t=this[r],f=1,u=0;++u<i&&(f*=256);)t+=this[r+u]*f;return f*=128,t>=f&&(t-=Math.pow(2,8*i)),t};o.prototype.readIntBE=function(r,i,e){r=r|0,i=i|0,e||s(r,i,this.length);for(var t=i,f=1,u=this[r+--t];t>0&&(f*=256);)u+=this[r+--t]*f;return f*=128,u>=f&&(u-=Math.pow(2,8*i)),u};o.prototype.readInt8=function(r,i){return i||s(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};o.prototype.readInt16LE=function(r,i){i||s(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};o.prototype.readInt16BE=function(r,i){i||s(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};o.prototype.readInt32LE=function(r,i){return i||s(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};o.prototype.readInt32BE=function(r,i){return i||s(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};o.prototype.readFloatLE=function(r,i){return i||s(r,4,this.length),N(this,r,!0,23,4)};o.prototype.readFloatBE=function(r,i){return i||s(r,4,this.length),N(this,r,!1,23,4)};o.prototype.readDoubleLE=function(r,i){return i||s(r,8,this.length),N(this,r,!0,52,8)};o.prototype.readDoubleBE=function(r,i){return i||s(r,8,this.length),N(this,r,!1,52,8)};function w(n,r,i,e,t,f){if(!y(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>t||r<f)throw new RangeError('"value" argument is out of bounds');if(i+e>n.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(r,i,e,t){if(r=+r,i=i|0,e=e|0,!t){var f=Math.pow(2,8*e)-1;w(this,r,i,e,f,0)}var u=1,a=0;for(this[i]=r&255;++a<e&&(u*=256);)this[i+a]=r/u&255;return i+e};o.prototype.writeUIntBE=function(r,i,e,t){if(r=+r,i=i|0,e=e|0,!t){var f=Math.pow(2,8*e)-1;w(this,r,i,e,f,0)}var u=e-1,a=1;for(this[i+u]=r&255;--u>=0&&(a*=256);)this[i+u]=r/a&255;return i+e};o.prototype.writeUInt8=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,1,255,0),o.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[i]=r&255,i+1};function M(n,r,i,e){r<0&&(r=65535+r+1);for(var t=0,f=Math.min(n.length-i,2);t<f;++t)n[i+t]=(r&255<<8*(e?t:1-t))>>>(e?t:1-t)*8}o.prototype.writeUInt16LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[i]=r&255,this[i+1]=r>>>8):M(this,r,i,!0),i+2};o.prototype.writeUInt16BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[i]=r>>>8,this[i+1]=r&255):M(this,r,i,!1),i+2};function C(n,r,i,e){r<0&&(r=4294967295+r+1);for(var t=0,f=Math.min(n.length-i,4);t<f;++t)n[i+t]=r>>>(e?t:3-t)*8&255}o.prototype.writeUInt32LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255):C(this,r,i,!0),i+4};o.prototype.writeUInt32BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255):C(this,r,i,!1),i+4};o.prototype.writeIntLE=function(r,i,e,t){if(r=+r,i=i|0,!t){var f=Math.pow(2,8*e-1);w(this,r,i,e,f-1,-f)}var u=0,a=1,h=0;for(this[i]=r&255;++u<e&&(a*=256);)r<0&&h===0&&this[i+u-1]!==0&&(h=1),this[i+u]=(r/a>>0)-h&255;return i+e};o.prototype.writeIntBE=function(r,i,e,t){if(r=+r,i=i|0,!t){var f=Math.pow(2,8*e-1);w(this,r,i,e,f-1,-f)}var u=e-1,a=1,h=0;for(this[i+u]=r&255;--u>=0&&(a*=256);)r<0&&h===0&&this[i+u+1]!==0&&(h=1),this[i+u]=(r/a>>0)-h&255;return i+e};o.prototype.writeInt8=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,1,127,-128),o.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[i]=r&255,i+1};o.prototype.writeInt16LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[i]=r&255,this[i+1]=r>>>8):M(this,r,i,!0),i+2};o.prototype.writeInt16BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[i]=r>>>8,this[i+1]=r&255):M(this,r,i,!1),i+2};o.prototype.writeInt32LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24):C(this,r,i,!0),i+4};o.prototype.writeInt32BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),o.TYPED_ARRAY_SUPPORT?(this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255):C(this,r,i,!1),i+4};function fr(n,r,i,e,t,f){if(i+e>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function ur(n,r,i,e,t){return t||fr(n,r,i,4,34028234663852886e22,-34028234663852886e22),cr(n,r,i,e,23,4),i+4}o.prototype.writeFloatLE=function(r,i,e){return ur(this,r,i,!0,e)};o.prototype.writeFloatBE=function(r,i,e){return ur(this,r,i,!1,e)};function or(n,r,i,e,t){return t||fr(n,r,i,8,17976931348623157e292,-17976931348623157e292),cr(n,r,i,e,52,8),i+8}o.prototype.writeDoubleLE=function(r,i,e){return or(this,r,i,!0,e)};o.prototype.writeDoubleBE=function(r,i,e){return or(this,r,i,!1,e)};o.prototype.copy=function(r,i,e,t){if(e||(e=0),!t&&t!==0&&(t=this.length),i>=r.length&&(i=r.length),i||(i=0),t>0&&t<e&&(t=e),t===e||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),r.length-i<t-e&&(t=r.length-i+e);var f=t-e,u;if(this===r&&e<i&&i<t)for(u=f-1;u>=0;--u)r[u+i]=this[u+e];else if(f<1e3||!o.TYPED_ARRAY_SUPPORT)for(u=0;u<f;++u)r[u+i]=this[u+e];else Uint8Array.prototype.set.call(r,this.subarray(e,e+f),i);return f};o.prototype.fill=function(r,i,e,t){if(typeof r=="string"){if(typeof i=="string"?(t=i,i=0,e=this.length):typeof e=="string"&&(t=e,e=this.length),r.length===1){var f=r.charCodeAt(0);f<256&&(r=f)}if(t!==void 0&&typeof t!="string")throw new TypeError("encoding must be a string");if(typeof t=="string"&&!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else typeof r=="number"&&(r=r&255);if(i<0||this.length<i||this.length<e)throw new RangeError("Out of range index");if(e<=i)return this;i=i>>>0,e=e===void 0?this.length:e>>>0,r||(r=0);var u;if(typeof r=="number")for(u=i;u<e;++u)this[u]=r;else{var a=y(r)?r:D(new o(r,t).toString()),h=a.length;for(u=0;u<e-i;++u)this[u+i]=a[u%h]}return this};var ci=/[^+\/0-9A-Za-z-_]/g;function li(n){if(n=pi(n).replace(ci,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function pi(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function si(n){return n<16?"0"+n.toString(16):n.toString(16)}function D(n,r){r=r||1/0;for(var i,e=n.length,t=null,f=[],u=0;u<e;++u){if(i=n.charCodeAt(u),i>55295&&i<57344){if(!t){if(i>56319){(r-=3)>-1&&f.push(239,191,189);continue}else if(u+1===e){(r-=3)>-1&&f.push(239,191,189);continue}t=i;continue}if(i<56320){(r-=3)>-1&&f.push(239,191,189),t=i;continue}i=(t-55296<<10|i-56320)+65536}else t&&(r-=3)>-1&&f.push(239,191,189);if(t=null,i<128){if((r-=1)<0)break;f.push(i)}else if(i<2048){if((r-=2)<0)break;f.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;f.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;f.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return f}function wi(n){for(var r=[],i=0;i<n.length;++i)r.push(n.charCodeAt(i)&255);return r}function xi(n,r){for(var i,e,t,f=[],u=0;u<n.length&&!((r-=2)<0);++u)i=n.charCodeAt(u),e=i>>8,t=i%256,f.push(t),f.push(e);return f}function ar(n){return Or(li(n))}function k(n,r,i,e){for(var t=0;t<e&&!(t+i>=r.length||t>=n.length);++t)r[t+i]=n[t];return t}function Ei(n){return n!==n}function mi(n){return n!=null&&(!!n._isBuffer||hr(n)||Ai(n))}function hr(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function Ai(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&hr(n.slice(0,0))}function N(n,r,i,e,t){var f,u,a=t*8-e-1,h=(1<<a)-1,l=h>>1,p=-7,c=i?t-1:0,m=i?-1:1,x=n[r+c];for(c+=m,f=x&(1<<-p)-1,x>>=-p,p+=a;p>0;f=f*256+n[r+c],c+=m,p-=8);for(u=f&(1<<-p)-1,f>>=-p,p+=e;p>0;u=u*256+n[r+c],c+=m,p-=8);if(f===0)f=1-l;else{if(f===h)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,e),f=f-l}return(x?-1:1)*u*Math.pow(2,f-e)}function cr(n,r,i,e,t,f){var u,a,h,l=f*8-t-1,p=(1<<l)-1,c=p>>1,m=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:f-1,d=e?1:-1,lr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,u=p):(u=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-u))<1&&(u--,h*=2),u+c>=1?r+=m/h:r+=m*Math.pow(2,1-c),r*h>=2&&(u++,h/=2),u+c>=p?(a=0,u=p):u+c>=1?(a=(r*h-1)*Math.pow(2,t),u=u+c):(a=r*Math.pow(2,c-1)*Math.pow(2,t),u=0));t>=8;n[i+x]=a&255,x+=d,a/=256,t-=8);for(u=u<<t|a,l+=t;l>0;n[i+x]=u&255,x+=d,u/=256,l-=8);n[i+x-d]|=lr*128}
2
- /*! Bundled license information:
3
-
4
- @esbuild-plugins/node-globals-polyfill/Buffer.js:
5
- (*!
6
- * The buffer module from node.js, for the browser.
7
- *
8
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
9
- * @license MIT
10
- *)
11
- */
@@ -1,12 +0,0 @@
1
- import { NameAndWireValue, dynamic } from '@fern-fern/ir-sdk/api';
2
-
3
- /**
4
- * A discriminated union type instance that can be converted into a language-specific AST node.
5
- */
6
- interface DiscriminatedUnionTypeInstance {
7
- discriminantValue: NameAndWireValue;
8
- singleDiscriminatedUnionType: dynamic.SingleDiscriminatedUnionType;
9
- value: unknown;
10
- }
11
-
12
- export type { DiscriminatedUnionTypeInstance };
package/cjs/Result.cjs DELETED
@@ -1,11 +0,0 @@
1
- "use strict";var Y=Object.defineProperty;var wr=Object.getOwnPropertyDescriptor;var xr=Object.getOwnPropertyNames;var Er=Object.prototype.hasOwnProperty;var mr=(n,r,i)=>r in n?Y(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i;var Ar=(n,r)=>{for(var i in r)Y(n,i,{get:r[i],enumerable:!0})},yr=(n,r,i,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of xr(r))!Er.call(n,t)&&t!==i&&Y(n,t,{get:()=>r[t],enumerable:!(e=wr(r,t))||e.enumerable});return n};var gr=n=>yr(Y({},"__esModule",{value:!0}),n);var P=(n,r,i)=>mr(n,typeof r!="symbol"?r+"":r,i);var _i={};Ar(_i,{Result:()=>V});module.exports=gr(_i);function Q(){throw new Error("setTimeout has not been defined")}function X(){throw new Error("clearTimeout has not been defined")}var R=Q,_=X;typeof globalThis.setTimeout=="function"&&(R=setTimeout);typeof globalThis.clearTimeout=="function"&&(_=clearTimeout);function $(n){if(R===setTimeout)return setTimeout(n,0);if((R===Q||!R)&&setTimeout)return R=setTimeout,setTimeout(n,0);try{return R(n,0)}catch(r){try{return R.call(null,n,0)}catch(i){return R.call(this,n,0)}}}function Tr(n){if(_===clearTimeout)return clearTimeout(n);if((_===X||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(n);try{return _(n)}catch(r){try{return _.call(null,n)}catch(i){return _.call(this,n)}}}var g=[],S=!1,d,D=-1;function Rr(){!S||!d||(S=!1,d.length?g=d.concat(g):D=-1,g.length&&q())}function q(){if(!S){var n=$(Rr);S=!0;for(var r=g.length;r;){for(d=g,g=[];++D<r;)d&&d[D].run();D=-1,r=g.length}d=null,S=!1,Tr(n)}}function _r(n){var r=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)r[i-1]=arguments[i];g.push(new Z(n,r)),g.length===1&&!S&&$(q)}function Z(n,r){this.fun=n,this.array=r}Z.prototype.run=function(){this.fun.apply(null,this.array)};var dr="browser",vr="browser",Ir=!0,Ur={},Br=[],Sr="",Yr={},Pr={},Dr={};function v(){}var Mr=v,Cr=v,kr=v,Nr=v,Lr=v,Fr=v,Wr=v;function zr(n){throw new Error("process.binding is not supported")}function Gr(){return"/"}function Hr(n){throw new Error("process.chdir is not supported")}function Or(){return 0}var B=globalThis.performance||{},Vr=B.now||B.mozNow||B.msNow||B.oNow||B.webkitNow||function(){return new Date().getTime()};function Jr(n){var r=Vr.call(B)*.001,i=Math.floor(r),e=Math.floor(r%1*1e9);return n&&(i=i-n[0],e=e-n[1],e<0&&(i--,e+=1e9)),[i,e]}var Qr=new Date;function Xr(){var n=new Date,r=n-Qr;return r/1e3}var W={nextTick:_r,title:dr,browser:Ir,env:Ur,argv:Br,version:Sr,versions:Yr,on:Mr,addListener:Cr,once:kr,off:Nr,removeListener:Lr,removeAllListeners:Fr,emit:Wr,binding:zr,cwd:Gr,chdir:Hr,umask:Or,hrtime:Jr,platform:vr,release:Pr,config:Dr,uptime:Xr},J={};Object.keys(J).forEach(n=>{let r=n.split("."),i=W;for(let e=0;e<r.length;e++){let t=r[e];e===r.length-1?i[t]=J[n]:i=i[t]||(i[t]={})}});var A=[],E=[],$r=typeof Uint8Array!="undefined"?Uint8Array:Array,G=!1;function rr(){G=!0;for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,i=n.length;r<i;++r)A[r]=n[r],E[n.charCodeAt(r)]=r;E[45]=62,E[95]=63}function qr(n){G||rr();var r,i,e,t,o,f,h=n.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=n[h-2]==="="?2:n[h-1]==="="?1:0,f=new $r(h*3/4-o),e=o>0?h-4:h;var a=0;for(r=0,i=0;r<e;r+=4,i+=3)t=E[n.charCodeAt(r)]<<18|E[n.charCodeAt(r+1)]<<12|E[n.charCodeAt(r+2)]<<6|E[n.charCodeAt(r+3)],f[a++]=t>>16&255,f[a++]=t>>8&255,f[a++]=t&255;return o===2?(t=E[n.charCodeAt(r)]<<2|E[n.charCodeAt(r+1)]>>4,f[a++]=t&255):o===1&&(t=E[n.charCodeAt(r)]<<10|E[n.charCodeAt(r+1)]<<4|E[n.charCodeAt(r+2)]>>2,f[a++]=t>>8&255,f[a++]=t&255),f}function Zr(n){return A[n>>18&63]+A[n>>12&63]+A[n>>6&63]+A[n&63]}function Kr(n,r,i){for(var e,t=[],o=r;o<i;o+=3)e=(n[o]<<16)+(n[o+1]<<8)+n[o+2],t.push(Zr(e));return t.join("")}function K(n){G||rr();for(var r,i=n.length,e=i%3,t="",o=[],f=16383,h=0,a=i-e;h<a;h+=f)o.push(Kr(n,h,h+f>a?a:h+f));return e===1?(r=n[i-1],t+=A[r>>2],t+=A[r<<4&63],t+="=="):e===2&&(r=(n[i-2]<<8)+n[i-1],t+=A[r>>10],t+=A[r>>4&63],t+=A[r<<2&63],t+="="),o.push(t),o.join("")}u.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function M(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function T(n,r){if(M()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(r),n.__proto__=u.prototype):(n===null&&(n=new u(r)),n.length=r),n}function u(n,r,i){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(n,r,i);if(typeof n=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return H(this,n)}return ir(this,n,r,i)}u.poolSize=8192;u._augment=function(n){return n.__proto__=u.prototype,n};function ir(n,r,i,e){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&r instanceof ArrayBuffer?ri(n,r,i,e):typeof r=="string"?jr(n,r,i):ii(n,r)}u.from=function(n,r,i){return ir(null,n,r,i)};u.kMaxLength=M();u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]);function nr(n){if(typeof n!="number")throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function br(n,r,i,e){return nr(r),r<=0?T(n,r):i!==void 0?typeof e=="string"?T(n,r).fill(i,e):T(n,r).fill(i):T(n,r)}u.alloc=function(n,r,i){return br(null,n,r,i)};function H(n,r){if(nr(r),n=T(n,r<0?0:O(r)|0),!u.TYPED_ARRAY_SUPPORT)for(var i=0;i<r;++i)n[i]=0;return n}u.allocUnsafe=function(n){return H(null,n)};u.allocUnsafeSlow=function(n){return H(null,n)};function jr(n,r,i){if((typeof i!="string"||i==="")&&(i="utf8"),!u.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var e=er(r,i)|0;n=T(n,e);var t=n.write(r,i);return t!==e&&(n=n.slice(0,t)),n}function z(n,r){var i=r.length<0?0:O(r.length)|0;n=T(n,i);for(var e=0;e<i;e+=1)n[e]=r[e]&255;return n}function ri(n,r,i,e){if(r.byteLength,i<0||r.byteLength<i)throw new RangeError("'offset' is out of bounds");if(r.byteLength<i+(e||0))throw new RangeError("'length' is out of bounds");return i===void 0&&e===void 0?r=new Uint8Array(r):e===void 0?r=new Uint8Array(r,i):r=new Uint8Array(r,i,e),u.TYPED_ARRAY_SUPPORT?(n=r,n.__proto__=u.prototype):n=z(n,r),n}function ii(n,r){if(y(r)){var i=O(r.length)|0;return n=T(n,i),n.length===0||r.copy(n,0,0,i),n}if(r){if(typeof ArrayBuffer!="undefined"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||gi(r.length)?T(n,0):z(n,r);if(r.type==="Buffer"&&Array.isArray(r.data))return z(n,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function O(n){if(n>=M())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M().toString(16)+" bytes");return n|0}u.isBuffer=Ti;function y(n){return!!(n!=null&&n._isBuffer)}u.compare=function(r,i){if(!y(r)||!y(i))throw new TypeError("Arguments must be Buffers");if(r===i)return 0;for(var e=r.length,t=i.length,o=0,f=Math.min(e,t);o<f;++o)if(r[o]!==i[o]){e=r[o],t=i[o];break}return e<t?-1:t<e?1:0};u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(r,i){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var e;if(i===void 0)for(i=0,e=0;e<r.length;++e)i+=r[e].length;var t=u.allocUnsafe(i),o=0;for(e=0;e<r.length;++e){var f=r[e];if(!y(f))throw new TypeError('"list" argument must be an Array of Buffers');f.copy(t,o),o+=f.length}return t};function er(n,r){if(y(n))return n.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;typeof n!="string"&&(n=""+n);var i=n.length;if(i===0)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return C(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return cr(n).length;default:if(e)return C(n).length;r=(""+r).toLowerCase(),e=!0}}u.byteLength=er;function ni(n,r,i){var e=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(n||(n="utf8");;)switch(n){case"hex":return si(this,r,i);case"utf8":case"utf-8":return fr(this,r,i);case"ascii":return ci(this,r,i);case"latin1":case"binary":return pi(this,r,i);case"base64":return hi(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return li(this,r,i);default:if(e)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),e=!0}}u.prototype._isBuffer=!0;function I(n,r,i){var e=n[r];n[r]=n[i],n[i]=e}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<r;i+=2)I(this,i,i+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<r;i+=4)I(this,i,i+3),I(this,i+1,i+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<r;i+=8)I(this,i,i+7),I(this,i+1,i+6),I(this,i+2,i+5),I(this,i+3,i+4);return this};u.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?fr(this,0,r):ni.apply(this,arguments)};u.prototype.equals=function(r){if(!y(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.compare=function(r,i,e,t,o){if(!y(r))throw new TypeError("Argument must be a Buffer");if(i===void 0&&(i=0),e===void 0&&(e=r?r.length:0),t===void 0&&(t=0),o===void 0&&(o=this.length),i<0||e>r.length||t<0||o>this.length)throw new RangeError("out of range index");if(t>=o&&i>=e)return 0;if(t>=o)return-1;if(i>=e)return 1;if(i>>>=0,e>>>=0,t>>>=0,o>>>=0,this===r)return 0;for(var f=o-t,h=e-i,a=Math.min(f,h),p=this.slice(t,o),s=r.slice(i,e),c=0;c<a;++c)if(p[c]!==s[c]){f=p[c],h=s[c];break}return f<h?-1:h<f?1:0};function tr(n,r,i,e,t){if(n.length===0)return-1;if(typeof i=="string"?(e=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=t?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(t)return-1;i=n.length-1}else if(i<0)if(t)i=0;else return-1;if(typeof r=="string"&&(r=u.from(r,e)),y(r))return r.length===0?-1:b(n,r,i,e,t);if(typeof r=="number")return r=r&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?t?Uint8Array.prototype.indexOf.call(n,r,i):Uint8Array.prototype.lastIndexOf.call(n,r,i):b(n,[r],i,e,t);throw new TypeError("val must be string, number or Buffer")}function b(n,r,i,e,t){var o=1,f=n.length,h=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(n.length<2||r.length<2)return-1;o=2,f/=2,h/=2,i/=2}function a(x,U){return o===1?x[U]:x.readUInt16BE(U*o)}var p;if(t){var s=-1;for(p=i;p<f;p++)if(a(n,p)===a(r,s===-1?0:p-s)){if(s===-1&&(s=p),p-s+1===h)return s*o}else s!==-1&&(p-=p-s),s=-1}else for(i+h>f&&(i=f-h),p=i;p>=0;p--){for(var c=!0,m=0;m<h;m++)if(a(n,p+m)!==a(r,m)){c=!1;break}if(c)return p}return-1}u.prototype.includes=function(r,i,e){return this.indexOf(r,i,e)!==-1};u.prototype.indexOf=function(r,i,e){return tr(this,r,i,e,!0)};u.prototype.lastIndexOf=function(r,i,e){return tr(this,r,i,e,!1)};function ei(n,r,i,e){i=Number(i)||0;var t=n.length-i;e?(e=Number(e),e>t&&(e=t)):e=t;var o=r.length;if(o%2!==0)throw new TypeError("Invalid hex string");e>o/2&&(e=o/2);for(var f=0;f<e;++f){var h=parseInt(r.substr(f*2,2),16);if(isNaN(h))return f;n[i+f]=h}return f}function ti(n,r,i,e){return L(C(r,n.length-i),n,i,e)}function or(n,r,i,e){return L(Ai(r),n,i,e)}function oi(n,r,i,e){return or(n,r,i,e)}function fi(n,r,i,e){return L(cr(r),n,i,e)}function ui(n,r,i,e){return L(yi(r,n.length-i),n,i,e)}u.prototype.write=function(r,i,e,t){if(i===void 0)t="utf8",e=this.length,i=0;else if(e===void 0&&typeof i=="string")t=i,e=this.length,i=0;else if(isFinite(i))i=i|0,isFinite(e)?(e=e|0,t===void 0&&(t="utf8")):(t=e,e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-i;if((e===void 0||e>o)&&(e=o),r.length>0&&(e<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var f=!1;;)switch(t){case"hex":return ei(this,r,i,e);case"utf8":case"utf-8":return ti(this,r,i,e);case"ascii":return or(this,r,i,e);case"latin1":case"binary":return oi(this,r,i,e);case"base64":return fi(this,r,i,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ui(this,r,i,e);default:if(f)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),f=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function hi(n,r,i){return r===0&&i===n.length?K(n):K(n.slice(r,i))}function fr(n,r,i){i=Math.min(n.length,i);for(var e=[],t=r;t<i;){var o=n[t],f=null,h=o>239?4:o>223?3:o>191?2:1;if(t+h<=i){var a,p,s,c;switch(h){case 1:o<128&&(f=o);break;case 2:a=n[t+1],(a&192)===128&&(c=(o&31)<<6|a&63,c>127&&(f=c));break;case 3:a=n[t+1],p=n[t+2],(a&192)===128&&(p&192)===128&&(c=(o&15)<<12|(a&63)<<6|p&63,c>2047&&(c<55296||c>57343)&&(f=c));break;case 4:a=n[t+1],p=n[t+2],s=n[t+3],(a&192)===128&&(p&192)===128&&(s&192)===128&&(c=(o&15)<<18|(a&63)<<12|(p&63)<<6|s&63,c>65535&&c<1114112&&(f=c))}}f===null?(f=65533,h=1):f>65535&&(f-=65536,e.push(f>>>10&1023|55296),f=56320|f&1023),e.push(f),t+=h}return ai(e)}var j=4096;function ai(n){var r=n.length;if(r<=j)return String.fromCharCode.apply(String,n);for(var i="",e=0;e<r;)i+=String.fromCharCode.apply(String,n.slice(e,e+=j));return i}function ci(n,r,i){var e="";i=Math.min(n.length,i);for(var t=r;t<i;++t)e+=String.fromCharCode(n[t]&127);return e}function pi(n,r,i){var e="";i=Math.min(n.length,i);for(var t=r;t<i;++t)e+=String.fromCharCode(n[t]);return e}function si(n,r,i){var e=n.length;(!r||r<0)&&(r=0),(!i||i<0||i>e)&&(i=e);for(var t="",o=r;o<i;++o)t+=mi(n[o]);return t}function li(n,r,i){for(var e=n.slice(r,i),t="",o=0;o<e.length;o+=2)t+=String.fromCharCode(e[o]+e[o+1]*256);return t}u.prototype.slice=function(r,i){var e=this.length;r=~~r,i=i===void 0?e:~~i,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),i<0?(i+=e,i<0&&(i=0)):i>e&&(i=e),i<r&&(i=r);var t;if(u.TYPED_ARRAY_SUPPORT)t=this.subarray(r,i),t.__proto__=u.prototype;else{var o=i-r;t=new u(o,void 0);for(var f=0;f<o;++f)t[f]=this[f+r]}return t};function l(n,r,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+r>i)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(r,i,e){r=r|0,i=i|0,e||l(r,i,this.length);for(var t=this[r],o=1,f=0;++f<i&&(o*=256);)t+=this[r+f]*o;return t};u.prototype.readUIntBE=function(r,i,e){r=r|0,i=i|0,e||l(r,i,this.length);for(var t=this[r+--i],o=1;i>0&&(o*=256);)t+=this[r+--i]*o;return t};u.prototype.readUInt8=function(r,i){return i||l(r,1,this.length),this[r]};u.prototype.readUInt16LE=function(r,i){return i||l(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUInt16BE=function(r,i){return i||l(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUInt32LE=function(r,i){return i||l(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUInt32BE=function(r,i){return i||l(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,i,e){r=r|0,i=i|0,e||l(r,i,this.length);for(var t=this[r],o=1,f=0;++f<i&&(o*=256);)t+=this[r+f]*o;return o*=128,t>=o&&(t-=Math.pow(2,8*i)),t};u.prototype.readIntBE=function(r,i,e){r=r|0,i=i|0,e||l(r,i,this.length);for(var t=i,o=1,f=this[r+--t];t>0&&(o*=256);)f+=this[r+--t]*o;return o*=128,f>=o&&(f-=Math.pow(2,8*i)),f};u.prototype.readInt8=function(r,i){return i||l(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,i){i||l(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};u.prototype.readInt16BE=function(r,i){i||l(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};u.prototype.readInt32LE=function(r,i){return i||l(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,i){return i||l(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,i){return i||l(r,4,this.length),F(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,i){return i||l(r,4,this.length),F(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,i){return i||l(r,8,this.length),F(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,i){return i||l(r,8,this.length),F(this,r,!1,52,8)};function w(n,r,i,e,t,o){if(!y(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>t||r<o)throw new RangeError('"value" argument is out of bounds');if(i+e>n.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(r,i,e,t){if(r=+r,i=i|0,e=e|0,!t){var o=Math.pow(2,8*e)-1;w(this,r,i,e,o,0)}var f=1,h=0;for(this[i]=r&255;++h<e&&(f*=256);)this[i+h]=r/f&255;return i+e};u.prototype.writeUIntBE=function(r,i,e,t){if(r=+r,i=i|0,e=e|0,!t){var o=Math.pow(2,8*e)-1;w(this,r,i,e,o,0)}var f=e-1,h=1;for(this[i+f]=r&255;--f>=0&&(h*=256);)this[i+f]=r/h&255;return i+e};u.prototype.writeUInt8=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,1,255,0),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[i]=r&255,i+1};function k(n,r,i,e){r<0&&(r=65535+r+1);for(var t=0,o=Math.min(n.length-i,2);t<o;++t)n[i+t]=(r&255<<8*(e?t:1-t))>>>(e?t:1-t)*8}u.prototype.writeUInt16LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[i]=r&255,this[i+1]=r>>>8):k(this,r,i,!0),i+2};u.prototype.writeUInt16BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[i]=r>>>8,this[i+1]=r&255):k(this,r,i,!1),i+2};function N(n,r,i,e){r<0&&(r=4294967295+r+1);for(var t=0,o=Math.min(n.length-i,4);t<o;++t)n[i+t]=r>>>(e?t:3-t)*8&255}u.prototype.writeUInt32LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255):N(this,r,i,!0),i+4};u.prototype.writeUInt32BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255):N(this,r,i,!1),i+4};u.prototype.writeIntLE=function(r,i,e,t){if(r=+r,i=i|0,!t){var o=Math.pow(2,8*e-1);w(this,r,i,e,o-1,-o)}var f=0,h=1,a=0;for(this[i]=r&255;++f<e&&(h*=256);)r<0&&a===0&&this[i+f-1]!==0&&(a=1),this[i+f]=(r/h>>0)-a&255;return i+e};u.prototype.writeIntBE=function(r,i,e,t){if(r=+r,i=i|0,!t){var o=Math.pow(2,8*e-1);w(this,r,i,e,o-1,-o)}var f=e-1,h=1,a=0;for(this[i+f]=r&255;--f>=0&&(h*=256);)r<0&&a===0&&this[i+f+1]!==0&&(a=1),this[i+f]=(r/h>>0)-a&255;return i+e};u.prototype.writeInt8=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,1,127,-128),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[i]=r&255,i+1};u.prototype.writeInt16LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[i]=r&255,this[i+1]=r>>>8):k(this,r,i,!0),i+2};u.prototype.writeInt16BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[i]=r>>>8,this[i+1]=r&255):k(this,r,i,!1),i+2};u.prototype.writeInt32LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24):N(this,r,i,!0),i+4};u.prototype.writeInt32BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),u.TYPED_ARRAY_SUPPORT?(this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255):N(this,r,i,!1),i+4};function ur(n,r,i,e,t,o){if(i+e>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function hr(n,r,i,e,t){return t||ur(n,r,i,4,34028234663852886e22,-34028234663852886e22),sr(n,r,i,e,23,4),i+4}u.prototype.writeFloatLE=function(r,i,e){return hr(this,r,i,!0,e)};u.prototype.writeFloatBE=function(r,i,e){return hr(this,r,i,!1,e)};function ar(n,r,i,e,t){return t||ur(n,r,i,8,17976931348623157e292,-17976931348623157e292),sr(n,r,i,e,52,8),i+8}u.prototype.writeDoubleLE=function(r,i,e){return ar(this,r,i,!0,e)};u.prototype.writeDoubleBE=function(r,i,e){return ar(this,r,i,!1,e)};u.prototype.copy=function(r,i,e,t){if(e||(e=0),!t&&t!==0&&(t=this.length),i>=r.length&&(i=r.length),i||(i=0),t>0&&t<e&&(t=e),t===e||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),r.length-i<t-e&&(t=r.length-i+e);var o=t-e,f;if(this===r&&e<i&&i<t)for(f=o-1;f>=0;--f)r[f+i]=this[f+e];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(f=0;f<o;++f)r[f+i]=this[f+e];else Uint8Array.prototype.set.call(r,this.subarray(e,e+o),i);return o};u.prototype.fill=function(r,i,e,t){if(typeof r=="string"){if(typeof i=="string"?(t=i,i=0,e=this.length):typeof e=="string"&&(t=e,e=this.length),r.length===1){var o=r.charCodeAt(0);o<256&&(r=o)}if(t!==void 0&&typeof t!="string")throw new TypeError("encoding must be a string");if(typeof t=="string"&&!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else typeof r=="number"&&(r=r&255);if(i<0||this.length<i||this.length<e)throw new RangeError("Out of range index");if(e<=i)return this;i=i>>>0,e=e===void 0?this.length:e>>>0,r||(r=0);var f;if(typeof r=="number")for(f=i;f<e;++f)this[f]=r;else{var h=y(r)?r:C(new u(r,t).toString()),a=h.length;for(f=0;f<e-i;++f)this[f+i]=h[f%a]}return this};var wi=/[^+\/0-9A-Za-z-_]/g;function xi(n){if(n=Ei(n).replace(wi,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function Ei(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function mi(n){return n<16?"0"+n.toString(16):n.toString(16)}function C(n,r){r=r||1/0;for(var i,e=n.length,t=null,o=[],f=0;f<e;++f){if(i=n.charCodeAt(f),i>55295&&i<57344){if(!t){if(i>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(f+1===e){(r-=3)>-1&&o.push(239,191,189);continue}t=i;continue}if(i<56320){(r-=3)>-1&&o.push(239,191,189),t=i;continue}i=(t-55296<<10|i-56320)+65536}else t&&(r-=3)>-1&&o.push(239,191,189);if(t=null,i<128){if((r-=1)<0)break;o.push(i)}else if(i<2048){if((r-=2)<0)break;o.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;o.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return o}function Ai(n){for(var r=[],i=0;i<n.length;++i)r.push(n.charCodeAt(i)&255);return r}function yi(n,r){for(var i,e,t,o=[],f=0;f<n.length&&!((r-=2)<0);++f)i=n.charCodeAt(f),e=i>>8,t=i%256,o.push(t),o.push(e);return o}function cr(n){return qr(xi(n))}function L(n,r,i,e){for(var t=0;t<e&&!(t+i>=r.length||t>=n.length);++t)r[t+i]=n[t];return t}function gi(n){return n!==n}function Ti(n){return n!=null&&(!!n._isBuffer||pr(n)||Ri(n))}function pr(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function Ri(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&pr(n.slice(0,0))}function F(n,r,i,e,t){var o,f,h=t*8-e-1,a=(1<<h)-1,p=a>>1,s=-7,c=i?t-1:0,m=i?-1:1,x=n[r+c];for(c+=m,o=x&(1<<-s)-1,x>>=-s,s+=h;s>0;o=o*256+n[r+c],c+=m,s-=8);for(f=o&(1<<-s)-1,o>>=-s,s+=e;s>0;f=f*256+n[r+c],c+=m,s-=8);if(o===0)o=1-p;else{if(o===a)return f?NaN:(x?-1:1)*(1/0);f=f+Math.pow(2,e),o=o-p}return(x?-1:1)*f*Math.pow(2,o-e)}function sr(n,r,i,e,t,o){var f,h,a,p=o*8-t-1,s=(1<<p)-1,c=s>>1,m=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:o-1,U=e?1:-1,lr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,f=s):(f=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-f))<1&&(f--,a*=2),f+c>=1?r+=m/a:r+=m*Math.pow(2,1-c),r*a>=2&&(f++,a/=2),f+c>=s?(h=0,f=s):f+c>=1?(h=(r*a-1)*Math.pow(2,t),f=f+c):(h=r*Math.pow(2,c-1)*Math.pow(2,t),f=0));t>=8;n[i+x]=h&255,x+=U,h/=256,t-=8);for(f=f<<t|h,p+=t;p>0;n[i+x]=f&255,x+=U,f/=256,p-=8);n[i+x-U]|=lr*128}var V=class{constructor(){P(this,"reporter");P(this,"snippet");P(this,"err");this.snippet=void 0,this.reporter=void 0,this.err=void 0}update({context:r,snippet:i}){(this.reporter==null||this.reporter.size()>r.errors.size())&&(this.reporter=r.errors.clone(),this.snippet=i)}getResponseOrThrow({endpoint:r}){var i;if(this.snippet!=null&&this.reporter!=null)return{snippet:this.snippet,errors:this.reporter.toDynamicSnippetErrors()};throw(i=this.err)!=null?i:new Error(`Failed to generate snippet for endpoint "${r.method} ${r.path}"`)}};0&&(module.exports={Result});
2
- /*! Bundled license information:
3
-
4
- @esbuild-plugins/node-globals-polyfill/Buffer.js:
5
- (*!
6
- * The buffer module from node.js, for the browser.
7
- *
8
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
9
- * @license MIT
10
- *)
11
- */
package/cjs/Result.d.cts DELETED
@@ -1,23 +0,0 @@
1
- import { D as DynamicSnippetsGeneratorContext } from './DynamicSnippetsGeneratorContext-DuDerGxa.cjs';
2
- import { ErrorReporter } from './context/ErrorReporter.cjs';
3
- import { dynamic } from '@fern-fern/ir-sdk/api';
4
- import '@fern-api/browser-compatible-base-generator';
5
- import '@fern-api/go-ast';
6
- import './TypeInstance.cjs';
7
- import './DiscriminatedUnionTypeInstance.cjs';
8
-
9
- declare class Result {
10
- reporter: ErrorReporter | undefined;
11
- snippet: string | undefined;
12
- err: Error | undefined;
13
- constructor();
14
- update({ context, snippet }: {
15
- context: DynamicSnippetsGeneratorContext;
16
- snippet: string;
17
- }): void;
18
- getResponseOrThrow({ endpoint }: {
19
- endpoint: dynamic.EndpointLocation;
20
- }): dynamic.EndpointSnippetResponse;
21
- }
22
-
23
- export { Result };
package/cjs/Scope.cjs DELETED
@@ -1,11 +0,0 @@
1
- "use strict";var L=Object.defineProperty;var lr=Object.getOwnPropertyDescriptor;var sr=Object.getOwnPropertyNames;var wr=Object.prototype.hasOwnProperty;var xr=(i,r)=>{for(var n in r)L(i,n,{get:r[n],enumerable:!0})},Er=(i,r,n,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of sr(r))!wr.call(i,t)&&t!==n&&L(i,t,{get:()=>r[t],enumerable:!(e=lr(r,t))||e.enumerable});return i};var mr=i=>Er(L({},"__esModule",{value:!0}),i);var Rn={};xr(Rn,{Scope:()=>Tn});module.exports=mr(Rn);function z(){throw new Error("setTimeout has not been defined")}function G(){throw new Error("clearTimeout has not been defined")}var R=z,_=G;typeof globalThis.setTimeout=="function"&&(R=setTimeout);typeof globalThis.clearTimeout=="function"&&(_=clearTimeout);function J(i){if(R===setTimeout)return setTimeout(i,0);if((R===z||!R)&&setTimeout)return R=setTimeout,setTimeout(i,0);try{return R(i,0)}catch(r){try{return R.call(null,i,0)}catch(n){return R.call(this,i,0)}}}function Ar(i){if(_===clearTimeout)return clearTimeout(i);if((_===G||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(i);try{return _(i)}catch(r){try{return _.call(null,i)}catch(n){return _.call(this,i)}}}var g=[],S=!1,I,P=-1;function yr(){!S||!I||(S=!1,I.length?g=I.concat(g):P=-1,g.length&&O())}function O(){if(!S){var i=J(yr);S=!0;for(var r=g.length;r;){for(I=g,g=[];++P<r;)I&&I[P].run();P=-1,r=g.length}I=null,S=!1,Ar(i)}}function gr(i){var r=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)r[n-1]=arguments[n];g.push(new X(i,r)),g.length===1&&!S&&J(O)}function X(i,r){this.fun=i,this.array=r}X.prototype.run=function(){this.fun.apply(null,this.array)};var Tr="browser",Rr="browser",_r=!0,Ir={},vr=[],Ur="",Br={},dr={},Sr={};function v(){}var Pr=v,Yr=v,Mr=v,Dr=v,Cr=v,kr=v,Nr=v;function Lr(i){throw new Error("process.binding is not supported")}function Fr(){return"/"}function Wr(i){throw new Error("process.chdir is not supported")}function qr(){return 0}var d=globalThis.performance||{},Hr=d.now||d.mozNow||d.msNow||d.oNow||d.webkitNow||function(){return new Date().getTime()};function Qr(i){var r=Hr.call(d)*.001,n=Math.floor(r),e=Math.floor(r%1*1e9);return i&&(n=n-i[0],e=e-i[1],e<0&&(n--,e+=1e9)),[n,e]}var Vr=new Date;function zr(){var i=new Date,r=i-Vr;return r/1e3}var F={nextTick:gr,title:Tr,browser:_r,env:Ir,argv:vr,version:Ur,versions:Br,on:Pr,addListener:Yr,once:Mr,off:Dr,removeListener:Cr,removeAllListeners:kr,emit:Nr,binding:Lr,cwd:Fr,chdir:Wr,umask:qr,hrtime:Qr,platform:Rr,release:dr,config:Sr,uptime:zr},V={};Object.keys(V).forEach(i=>{let r=i.split("."),n=F;for(let e=0;e<r.length;e++){let t=r[e];e===r.length-1?n[t]=V[i]:n=n[t]||(n[t]={})}});var A=[],E=[],Gr=typeof Uint8Array!="undefined"?Uint8Array:Array,q=!1;function b(){q=!0;for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,n=i.length;r<n;++r)A[r]=i[r],E[i.charCodeAt(r)]=r;E[45]=62,E[95]=63}function Jr(i){q||b();var r,n,e,t,f,u,a=i.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");f=i[a-2]==="="?2:i[a-1]==="="?1:0,u=new Gr(a*3/4-f),e=f>0?a-4:a;var h=0;for(r=0,n=0;r<e;r+=4,n+=3)t=E[i.charCodeAt(r)]<<18|E[i.charCodeAt(r+1)]<<12|E[i.charCodeAt(r+2)]<<6|E[i.charCodeAt(r+3)],u[h++]=t>>16&255,u[h++]=t>>8&255,u[h++]=t&255;return f===2?(t=E[i.charCodeAt(r)]<<2|E[i.charCodeAt(r+1)]>>4,u[h++]=t&255):f===1&&(t=E[i.charCodeAt(r)]<<10|E[i.charCodeAt(r+1)]<<4|E[i.charCodeAt(r+2)]>>2,u[h++]=t>>8&255,u[h++]=t&255),u}function Or(i){return A[i>>18&63]+A[i>>12&63]+A[i>>6&63]+A[i&63]}function Xr(i,r,n){for(var e,t=[],f=r;f<n;f+=3)e=(i[f]<<16)+(i[f+1]<<8)+i[f+2],t.push(Or(e));return t.join("")}function Z(i){q||b();for(var r,n=i.length,e=n%3,t="",f=[],u=16383,a=0,h=n-e;a<h;a+=u)f.push(Xr(i,a,a+u>h?h:a+u));return e===1?(r=i[n-1],t+=A[r>>2],t+=A[r<<4&63],t+="=="):e===2&&(r=(i[n-2]<<8)+i[n-1],t+=A[r>>10],t+=A[r>>4&63],t+=A[r<<2&63],t+="="),f.push(t),f.join("")}o.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function Y(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function T(i,r){if(Y()<r)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(i=new Uint8Array(r),i.__proto__=o.prototype):(i===null&&(i=new o(r)),i.length=r),i}function o(i,r,n){if(!o.TYPED_ARRAY_SUPPORT&&!(this instanceof o))return new o(i,r,n);if(typeof i=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return H(this,i)}return j(this,i,r,n)}o.poolSize=8192;o._augment=function(i){return i.__proto__=o.prototype,i};function j(i,r,n,e){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&r instanceof ArrayBuffer?$r(i,r,n,e):typeof r=="string"?Kr(i,r,n):br(i,r)}o.from=function(i,r,n){return j(null,i,r,n)};o.kMaxLength=Y();o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&o[Symbol.species]);function rr(i){if(typeof i!="number")throw new TypeError('"size" argument must be a number');if(i<0)throw new RangeError('"size" argument must not be negative')}function Zr(i,r,n,e){return rr(r),r<=0?T(i,r):n!==void 0?typeof e=="string"?T(i,r).fill(n,e):T(i,r).fill(n):T(i,r)}o.alloc=function(i,r,n){return Zr(null,i,r,n)};function H(i,r){if(rr(r),i=T(i,r<0?0:Q(r)|0),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<r;++n)i[n]=0;return i}o.allocUnsafe=function(i){return H(null,i)};o.allocUnsafeSlow=function(i){return H(null,i)};function Kr(i,r,n){if((typeof n!="string"||n==="")&&(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var e=nr(r,n)|0;i=T(i,e);var t=i.write(r,n);return t!==e&&(i=i.slice(0,t)),i}function W(i,r){var n=r.length<0?0:Q(r.length)|0;i=T(i,n);for(var e=0;e<n;e+=1)i[e]=r[e]&255;return i}function $r(i,r,n,e){if(r.byteLength,n<0||r.byteLength<n)throw new RangeError("'offset' is out of bounds");if(r.byteLength<n+(e||0))throw new RangeError("'length' is out of bounds");return n===void 0&&e===void 0?r=new Uint8Array(r):e===void 0?r=new Uint8Array(r,n):r=new Uint8Array(r,n,e),o.TYPED_ARRAY_SUPPORT?(i=r,i.__proto__=o.prototype):i=W(i,r),i}function br(i,r){if(y(r)){var n=Q(r.length)|0;return i=T(i,n),i.length===0||r.copy(i,0,0,n),i}if(r){if(typeof ArrayBuffer!="undefined"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||An(r.length)?T(i,0):W(i,r);if(r.type==="Buffer"&&Array.isArray(r.data))return W(i,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Q(i){if(i>=Y())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y().toString(16)+" bytes");return i|0}o.isBuffer=yn;function y(i){return!!(i!=null&&i._isBuffer)}o.compare=function(r,n){if(!y(r)||!y(n))throw new TypeError("Arguments must be Buffers");if(r===n)return 0;for(var e=r.length,t=n.length,f=0,u=Math.min(e,t);f<u;++f)if(r[f]!==n[f]){e=r[f],t=n[f];break}return e<t?-1:t<e?1:0};o.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};o.concat=function(r,n){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);var e;if(n===void 0)for(n=0,e=0;e<r.length;++e)n+=r[e].length;var t=o.allocUnsafe(n),f=0;for(e=0;e<r.length;++e){var u=r[e];if(!y(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(t,f),f+=u.length}return t};function nr(i,r){if(y(i))return i.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(i)||i instanceof ArrayBuffer))return i.byteLength;typeof i!="string"&&(i=""+i);var n=i.length;if(n===0)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return M(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return ar(i).length;default:if(e)return M(i).length;r=(""+r).toLowerCase(),e=!0}}o.byteLength=nr;function jr(i,r,n){var e=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,r>>>=0,n<=r))return"";for(i||(i="utf8");;)switch(i){case"hex":return cn(this,r,n);case"utf8":case"utf-8":return tr(this,r,n);case"ascii":return an(this,r,n);case"latin1":case"binary":return hn(this,r,n);case"base64":return un(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pn(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),e=!0}}o.prototype._isBuffer=!0;function U(i,r,n){var e=i[r];i[r]=i[n],i[n]=e}o.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<r;n+=2)U(this,n,n+1);return this};o.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<r;n+=4)U(this,n,n+3),U(this,n+1,n+2);return this};o.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<r;n+=8)U(this,n,n+7),U(this,n+1,n+6),U(this,n+2,n+5),U(this,n+3,n+4);return this};o.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?tr(this,0,r):jr.apply(this,arguments)};o.prototype.equals=function(r){if(!y(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0};o.prototype.compare=function(r,n,e,t,f){if(!y(r))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),e===void 0&&(e=r?r.length:0),t===void 0&&(t=0),f===void 0&&(f=this.length),n<0||e>r.length||t<0||f>this.length)throw new RangeError("out of range index");if(t>=f&&n>=e)return 0;if(t>=f)return-1;if(n>=e)return 1;if(n>>>=0,e>>>=0,t>>>=0,f>>>=0,this===r)return 0;for(var u=f-t,a=e-n,h=Math.min(u,a),p=this.slice(t,f),l=r.slice(n,e),c=0;c<h;++c)if(p[c]!==l[c]){u=p[c],a=l[c];break}return u<a?-1:a<u?1:0};function ir(i,r,n,e,t){if(i.length===0)return-1;if(typeof n=="string"?(e=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=t?0:i.length-1),n<0&&(n=i.length+n),n>=i.length){if(t)return-1;n=i.length-1}else if(n<0)if(t)n=0;else return-1;if(typeof r=="string"&&(r=o.from(r,e)),y(r))return r.length===0?-1:K(i,r,n,e,t);if(typeof r=="number")return r=r&255,o.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?t?Uint8Array.prototype.indexOf.call(i,r,n):Uint8Array.prototype.lastIndexOf.call(i,r,n):K(i,[r],n,e,t);throw new TypeError("val must be string, number or Buffer")}function K(i,r,n,e,t){var f=1,u=i.length,a=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(i.length<2||r.length<2)return-1;f=2,u/=2,a/=2,n/=2}function h(x,B){return f===1?x[B]:x.readUInt16BE(B*f)}var p;if(t){var l=-1;for(p=n;p<u;p++)if(h(i,p)===h(r,l===-1?0:p-l)){if(l===-1&&(l=p),p-l+1===a)return l*f}else l!==-1&&(p-=p-l),l=-1}else for(n+a>u&&(n=u-a),p=n;p>=0;p--){for(var c=!0,m=0;m<a;m++)if(h(i,p+m)!==h(r,m)){c=!1;break}if(c)return p}return-1}o.prototype.includes=function(r,n,e){return this.indexOf(r,n,e)!==-1};o.prototype.indexOf=function(r,n,e){return ir(this,r,n,e,!0)};o.prototype.lastIndexOf=function(r,n,e){return ir(this,r,n,e,!1)};function rn(i,r,n,e){n=Number(n)||0;var t=i.length-n;e?(e=Number(e),e>t&&(e=t)):e=t;var f=r.length;if(f%2!==0)throw new TypeError("Invalid hex string");e>f/2&&(e=f/2);for(var u=0;u<e;++u){var a=parseInt(r.substr(u*2,2),16);if(isNaN(a))return u;i[n+u]=a}return u}function nn(i,r,n,e){return k(M(r,i.length-n),i,n,e)}function er(i,r,n,e){return k(En(r),i,n,e)}function en(i,r,n,e){return er(i,r,n,e)}function tn(i,r,n,e){return k(ar(r),i,n,e)}function fn(i,r,n,e){return k(mn(r,i.length-n),i,n,e)}o.prototype.write=function(r,n,e,t){if(n===void 0)t="utf8",e=this.length,n=0;else if(e===void 0&&typeof n=="string")t=n,e=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(e)?(e=e|0,t===void 0&&(t="utf8")):(t=e,e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var f=this.length-n;if((e===void 0||e>f)&&(e=f),r.length>0&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var u=!1;;)switch(t){case"hex":return rn(this,r,n,e);case"utf8":case"utf-8":return nn(this,r,n,e);case"ascii":return er(this,r,n,e);case"latin1":case"binary":return en(this,r,n,e);case"base64":return tn(this,r,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fn(this,r,n,e);default:if(u)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),u=!0}};o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function un(i,r,n){return r===0&&n===i.length?Z(i):Z(i.slice(r,n))}function tr(i,r,n){n=Math.min(i.length,n);for(var e=[],t=r;t<n;){var f=i[t],u=null,a=f>239?4:f>223?3:f>191?2:1;if(t+a<=n){var h,p,l,c;switch(a){case 1:f<128&&(u=f);break;case 2:h=i[t+1],(h&192)===128&&(c=(f&31)<<6|h&63,c>127&&(u=c));break;case 3:h=i[t+1],p=i[t+2],(h&192)===128&&(p&192)===128&&(c=(f&15)<<12|(h&63)<<6|p&63,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:h=i[t+1],p=i[t+2],l=i[t+3],(h&192)===128&&(p&192)===128&&(l&192)===128&&(c=(f&15)<<18|(h&63)<<12|(p&63)<<6|l&63,c>65535&&c<1114112&&(u=c))}}u===null?(u=65533,a=1):u>65535&&(u-=65536,e.push(u>>>10&1023|55296),u=56320|u&1023),e.push(u),t+=a}return on(e)}var $=4096;function on(i){var r=i.length;if(r<=$)return String.fromCharCode.apply(String,i);for(var n="",e=0;e<r;)n+=String.fromCharCode.apply(String,i.slice(e,e+=$));return n}function an(i,r,n){var e="";n=Math.min(i.length,n);for(var t=r;t<n;++t)e+=String.fromCharCode(i[t]&127);return e}function hn(i,r,n){var e="";n=Math.min(i.length,n);for(var t=r;t<n;++t)e+=String.fromCharCode(i[t]);return e}function cn(i,r,n){var e=i.length;(!r||r<0)&&(r=0),(!n||n<0||n>e)&&(n=e);for(var t="",f=r;f<n;++f)t+=xn(i[f]);return t}function pn(i,r,n){for(var e=i.slice(r,n),t="",f=0;f<e.length;f+=2)t+=String.fromCharCode(e[f]+e[f+1]*256);return t}o.prototype.slice=function(r,n){var e=this.length;r=~~r,n=n===void 0?e:~~n,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),n<0?(n+=e,n<0&&(n=0)):n>e&&(n=e),n<r&&(n=r);var t;if(o.TYPED_ARRAY_SUPPORT)t=this.subarray(r,n),t.__proto__=o.prototype;else{var f=n-r;t=new o(f,void 0);for(var u=0;u<f;++u)t[u]=this[u+r]}return t};function s(i,r,n){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+r>n)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(r,n,e){r=r|0,n=n|0,e||s(r,n,this.length);for(var t=this[r],f=1,u=0;++u<n&&(f*=256);)t+=this[r+u]*f;return t};o.prototype.readUIntBE=function(r,n,e){r=r|0,n=n|0,e||s(r,n,this.length);for(var t=this[r+--n],f=1;n>0&&(f*=256);)t+=this[r+--n]*f;return t};o.prototype.readUInt8=function(r,n){return n||s(r,1,this.length),this[r]};o.prototype.readUInt16LE=function(r,n){return n||s(r,2,this.length),this[r]|this[r+1]<<8};o.prototype.readUInt16BE=function(r,n){return n||s(r,2,this.length),this[r]<<8|this[r+1]};o.prototype.readUInt32LE=function(r,n){return n||s(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};o.prototype.readUInt32BE=function(r,n){return n||s(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};o.prototype.readIntLE=function(r,n,e){r=r|0,n=n|0,e||s(r,n,this.length);for(var t=this[r],f=1,u=0;++u<n&&(f*=256);)t+=this[r+u]*f;return f*=128,t>=f&&(t-=Math.pow(2,8*n)),t};o.prototype.readIntBE=function(r,n,e){r=r|0,n=n|0,e||s(r,n,this.length);for(var t=n,f=1,u=this[r+--t];t>0&&(f*=256);)u+=this[r+--t]*f;return f*=128,u>=f&&(u-=Math.pow(2,8*n)),u};o.prototype.readInt8=function(r,n){return n||s(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};o.prototype.readInt16LE=function(r,n){n||s(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};o.prototype.readInt16BE=function(r,n){n||s(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};o.prototype.readInt32LE=function(r,n){return n||s(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};o.prototype.readInt32BE=function(r,n){return n||s(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};o.prototype.readFloatLE=function(r,n){return n||s(r,4,this.length),N(this,r,!0,23,4)};o.prototype.readFloatBE=function(r,n){return n||s(r,4,this.length),N(this,r,!1,23,4)};o.prototype.readDoubleLE=function(r,n){return n||s(r,8,this.length),N(this,r,!0,52,8)};o.prototype.readDoubleBE=function(r,n){return n||s(r,8,this.length),N(this,r,!1,52,8)};function w(i,r,n,e,t,f){if(!y(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>t||r<f)throw new RangeError('"value" argument is out of bounds');if(n+e>i.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(r,n,e,t){if(r=+r,n=n|0,e=e|0,!t){var f=Math.pow(2,8*e)-1;w(this,r,n,e,f,0)}var u=1,a=0;for(this[n]=r&255;++a<e&&(u*=256);)this[n+a]=r/u&255;return n+e};o.prototype.writeUIntBE=function(r,n,e,t){if(r=+r,n=n|0,e=e|0,!t){var f=Math.pow(2,8*e)-1;w(this,r,n,e,f,0)}var u=e-1,a=1;for(this[n+u]=r&255;--u>=0&&(a*=256);)this[n+u]=r/a&255;return n+e};o.prototype.writeUInt8=function(r,n,e){return r=+r,n=n|0,e||w(this,r,n,1,255,0),o.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[n]=r&255,n+1};function D(i,r,n,e){r<0&&(r=65535+r+1);for(var t=0,f=Math.min(i.length-n,2);t<f;++t)i[n+t]=(r&255<<8*(e?t:1-t))>>>(e?t:1-t)*8}o.prototype.writeUInt16LE=function(r,n,e){return r=+r,n=n|0,e||w(this,r,n,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[n]=r&255,this[n+1]=r>>>8):D(this,r,n,!0),n+2};o.prototype.writeUInt16BE=function(r,n,e){return r=+r,n=n|0,e||w(this,r,n,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[n]=r>>>8,this[n+1]=r&255):D(this,r,n,!1),n+2};function C(i,r,n,e){r<0&&(r=4294967295+r+1);for(var t=0,f=Math.min(i.length-n,4);t<f;++t)i[n+t]=r>>>(e?t:3-t)*8&255}o.prototype.writeUInt32LE=function(r,n,e){return r=+r,n=n|0,e||w(this,r,n,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[n+3]=r>>>24,this[n+2]=r>>>16,this[n+1]=r>>>8,this[n]=r&255):C(this,r,n,!0),n+4};o.prototype.writeUInt32BE=function(r,n,e){return r=+r,n=n|0,e||w(this,r,n,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255):C(this,r,n,!1),n+4};o.prototype.writeIntLE=function(r,n,e,t){if(r=+r,n=n|0,!t){var f=Math.pow(2,8*e-1);w(this,r,n,e,f-1,-f)}var u=0,a=1,h=0;for(this[n]=r&255;++u<e&&(a*=256);)r<0&&h===0&&this[n+u-1]!==0&&(h=1),this[n+u]=(r/a>>0)-h&255;return n+e};o.prototype.writeIntBE=function(r,n,e,t){if(r=+r,n=n|0,!t){var f=Math.pow(2,8*e-1);w(this,r,n,e,f-1,-f)}var u=e-1,a=1,h=0;for(this[n+u]=r&255;--u>=0&&(a*=256);)r<0&&h===0&&this[n+u+1]!==0&&(h=1),this[n+u]=(r/a>>0)-h&255;return n+e};o.prototype.writeInt8=function(r,n,e){return r=+r,n=n|0,e||w(this,r,n,1,127,-128),o.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[n]=r&255,n+1};o.prototype.writeInt16LE=function(r,n,e){return r=+r,n=n|0,e||w(this,r,n,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[n]=r&255,this[n+1]=r>>>8):D(this,r,n,!0),n+2};o.prototype.writeInt16BE=function(r,n,e){return r=+r,n=n|0,e||w(this,r,n,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[n]=r>>>8,this[n+1]=r&255):D(this,r,n,!1),n+2};o.prototype.writeInt32LE=function(r,n,e){return r=+r,n=n|0,e||w(this,r,n,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[n]=r&255,this[n+1]=r>>>8,this[n+2]=r>>>16,this[n+3]=r>>>24):C(this,r,n,!0),n+4};o.prototype.writeInt32BE=function(r,n,e){return r=+r,n=n|0,e||w(this,r,n,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),o.TYPED_ARRAY_SUPPORT?(this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255):C(this,r,n,!1),n+4};function fr(i,r,n,e,t,f){if(n+e>i.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ur(i,r,n,e,t){return t||fr(i,r,n,4,34028234663852886e22,-34028234663852886e22),cr(i,r,n,e,23,4),n+4}o.prototype.writeFloatLE=function(r,n,e){return ur(this,r,n,!0,e)};o.prototype.writeFloatBE=function(r,n,e){return ur(this,r,n,!1,e)};function or(i,r,n,e,t){return t||fr(i,r,n,8,17976931348623157e292,-17976931348623157e292),cr(i,r,n,e,52,8),n+8}o.prototype.writeDoubleLE=function(r,n,e){return or(this,r,n,!0,e)};o.prototype.writeDoubleBE=function(r,n,e){return or(this,r,n,!1,e)};o.prototype.copy=function(r,n,e,t){if(e||(e=0),!t&&t!==0&&(t=this.length),n>=r.length&&(n=r.length),n||(n=0),t>0&&t<e&&(t=e),t===e||r.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),r.length-n<t-e&&(t=r.length-n+e);var f=t-e,u;if(this===r&&e<n&&n<t)for(u=f-1;u>=0;--u)r[u+n]=this[u+e];else if(f<1e3||!o.TYPED_ARRAY_SUPPORT)for(u=0;u<f;++u)r[u+n]=this[u+e];else Uint8Array.prototype.set.call(r,this.subarray(e,e+f),n);return f};o.prototype.fill=function(r,n,e,t){if(typeof r=="string"){if(typeof n=="string"?(t=n,n=0,e=this.length):typeof e=="string"&&(t=e,e=this.length),r.length===1){var f=r.charCodeAt(0);f<256&&(r=f)}if(t!==void 0&&typeof t!="string")throw new TypeError("encoding must be a string");if(typeof t=="string"&&!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else typeof r=="number"&&(r=r&255);if(n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(e<=n)return this;n=n>>>0,e=e===void 0?this.length:e>>>0,r||(r=0);var u;if(typeof r=="number")for(u=n;u<e;++u)this[u]=r;else{var a=y(r)?r:M(new o(r,t).toString()),h=a.length;for(u=0;u<e-n;++u)this[u+n]=a[u%h]}return this};var ln=/[^+\/0-9A-Za-z-_]/g;function sn(i){if(i=wn(i).replace(ln,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function wn(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function xn(i){return i<16?"0"+i.toString(16):i.toString(16)}function M(i,r){r=r||1/0;for(var n,e=i.length,t=null,f=[],u=0;u<e;++u){if(n=i.charCodeAt(u),n>55295&&n<57344){if(!t){if(n>56319){(r-=3)>-1&&f.push(239,191,189);continue}else if(u+1===e){(r-=3)>-1&&f.push(239,191,189);continue}t=n;continue}if(n<56320){(r-=3)>-1&&f.push(239,191,189),t=n;continue}n=(t-55296<<10|n-56320)+65536}else t&&(r-=3)>-1&&f.push(239,191,189);if(t=null,n<128){if((r-=1)<0)break;f.push(n)}else if(n<2048){if((r-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((r-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((r-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function En(i){for(var r=[],n=0;n<i.length;++n)r.push(i.charCodeAt(n)&255);return r}function mn(i,r){for(var n,e,t,f=[],u=0;u<i.length&&!((r-=2)<0);++u)n=i.charCodeAt(u),e=n>>8,t=n%256,f.push(t),f.push(e);return f}function ar(i){return Jr(sn(i))}function k(i,r,n,e){for(var t=0;t<e&&!(t+n>=r.length||t>=i.length);++t)r[t+n]=i[t];return t}function An(i){return i!==i}function yn(i){return i!=null&&(!!i._isBuffer||hr(i)||gn(i))}function hr(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function gn(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&hr(i.slice(0,0))}function N(i,r,n,e,t){var f,u,a=t*8-e-1,h=(1<<a)-1,p=h>>1,l=-7,c=n?t-1:0,m=n?-1:1,x=i[r+c];for(c+=m,f=x&(1<<-l)-1,x>>=-l,l+=a;l>0;f=f*256+i[r+c],c+=m,l-=8);for(u=f&(1<<-l)-1,f>>=-l,l+=e;l>0;u=u*256+i[r+c],c+=m,l-=8);if(f===0)f=1-p;else{if(f===h)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,e),f=f-p}return(x?-1:1)*u*Math.pow(2,f-e)}function cr(i,r,n,e,t,f){var u,a,h,p=f*8-t-1,l=(1<<p)-1,c=l>>1,m=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:f-1,B=e?1:-1,pr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-u))<1&&(u--,h*=2),u+c>=1?r+=m/h:r+=m*Math.pow(2,1-c),r*h>=2&&(u++,h/=2),u+c>=l?(a=0,u=l):u+c>=1?(a=(r*h-1)*Math.pow(2,t),u=u+c):(a=r*Math.pow(2,c-1)*Math.pow(2,t),u=0));t>=8;i[n+x]=a&255,x+=B,a/=256,t-=8);for(u=u<<t|a,p+=t;p>0;i[n+x]=u&255,x+=B,u/=256,p-=8);i[n+x-B]|=pr*128}var Tn={PathParameters:"pathParameters",QueryParameters:"queryParameters",Headers:"headers",RequestBody:"requestBody"};0&&(module.exports={Scope});
2
- /*! Bundled license information:
3
-
4
- @esbuild-plugins/node-globals-polyfill/Buffer.js:
5
- (*!
6
- * The buffer module from node.js, for the browser.
7
- *
8
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
9
- * @license MIT
10
- *)
11
- */
package/cjs/Scope.d.cts DELETED
@@ -1,9 +0,0 @@
1
- declare const Scope: {
2
- readonly PathParameters: "pathParameters";
3
- readonly QueryParameters: "queryParameters";
4
- readonly Headers: "headers";
5
- readonly RequestBody: "requestBody";
6
- };
7
- declare type Scope = typeof Scope[keyof typeof Scope];
8
-
9
- export { Scope };