@fern-api/java-dynamic-snippets 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/DynamicSnippetsGenerator.cjs +4 -4
- package/cjs/DynamicSnippetsGenerator.d.cts +1 -1
- package/cjs/{DynamicSnippetsGeneratorContext-CjKFdkU7.d.cts → DynamicSnippetsGeneratorContext-B2BA5MLv.d.cts} +3 -2
- package/cjs/EndpointSnippetGenerator.cjs +3 -3
- package/cjs/EndpointSnippetGenerator.d.cts +1 -1
- package/cjs/context/DynamicSnippetsGeneratorContext.cjs +3 -3
- package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +1 -1
- package/cjs/context/DynamicTypeLiteralMapper.d.cts +1 -1
- package/cjs/context/DynamicTypeMapper.d.cts +1 -1
- package/cjs/context/FilePropertyMapper.d.cts +1 -1
- package/cjs/index.cjs +8 -8
- package/cjs/index.d.cts +1 -1
- package/esm/DynamicSnippetsGenerator.d.ts +1 -1
- package/esm/DynamicSnippetsGenerator.js +1 -1
- package/esm/{DynamicSnippetsGeneratorContext-CjKFdkU7.d.ts → DynamicSnippetsGeneratorContext-B2BA5MLv.d.ts} +3 -2
- package/esm/EndpointSnippetGenerator.d.ts +1 -1
- package/esm/EndpointSnippetGenerator.js +1 -1
- package/esm/{chunk-3DDUCXS2.js → chunk-BKM7JFLZ.js} +1 -1
- package/esm/chunk-N3DIPQCT.js +14 -0
- package/esm/chunk-TTNRR5YY.js +1 -0
- package/esm/context/DynamicSnippetsGeneratorContext.d.ts +1 -1
- package/esm/context/DynamicSnippetsGeneratorContext.js +1 -1
- package/esm/context/DynamicTypeLiteralMapper.d.ts +1 -1
- package/esm/context/DynamicTypeMapper.d.ts +1 -1
- package/esm/context/FilePropertyMapper.d.ts +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/chunk-FOUIYX4V.js +0 -1
- package/esm/chunk-GHM3YOPV.js +0 -14
package/cjs/index.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";var hp=Object.create;var Ke=Object.defineProperty,gp=Object.defineProperties,vp=Object.getOwnPropertyDescriptor,xp=Object.getOwnPropertyDescriptors,wp=Object.getOwnPropertyNames,Pr=Object.getOwnPropertySymbols,bp=Object.getPrototypeOf,Ct=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable;var Ot=(t,e,r)=>e in t?Ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,hi=(t,e)=>{for(var r in e||(e={}))Ct.call(e,r)&&Ot(t,r,e[r]);if(Pr)for(var r of Pr(e))mi.call(e,r)&&Ot(t,r,e[r]);return t},gi=(t,e)=>gp(t,xp(e));var vi=t=>typeof t=="symbol"?t:t+"",xi=(t,e)=>{var r={};for(var n in t)Ct.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Pr)for(var n of Pr(t))e.indexOf(n)<0&&mi.call(t,n)&&(r[n]=t[n]);return r};var Oe=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),kt=(t,e)=>{for(var r in e)Ke(t,r,{get:e[r],enumerable:!0})},wi=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of wp(e))!Ct.call(t,i)&&i!==r&&Ke(t,i,{get:()=>e[i],enumerable:!(n=vp(e,i))||n.enumerable});return t};var Ap=(t,e,r)=>(r=t!=null?hp(bp(t)):{},wi(e||!t||!t.__esModule?Ke(r,"default",{value:t,enumerable:!0}):r,t)),bi=t=>wi(Ke({},"__esModule",{value:!0}),t);var v=(t,e,r)=>Ot(t,typeof e!="symbol"?e+"":e,r);function Si(){throw new Error("setTimeout has not been defined")}function Ti(){throw new Error("clearTimeout has not been defined")}function Ri(t){if(te===setTimeout)return setTimeout(t,0);if((te===Si||!te)&&setTimeout)return te=setTimeout,setTimeout(t,0);try{return te(t,0)}catch(e){try{return te.call(null,t,0)}catch(r){return te.call(this,t,0)}}}function Sp(t){if(ne===clearTimeout)return clearTimeout(t);if((ne===Ti||!ne)&&clearTimeout)return ne=clearTimeout,clearTimeout(t);try{return ne(t)}catch(e){try{return ne.call(null,t)}catch(r){return ne.call(this,t)}}}function Tp(){!ke||!pe||(ke=!1,pe.length?J=pe.concat(J):Fr=-1,J.length&&Ei())}function Ei(){if(!ke){var t=Ri(Tp);ke=!0;for(var e=J.length;e;){for(pe=J,J=[];++Fr<e;)pe&&pe[Fr].run();Fr=-1,e=J.length}pe=null,ke=!1,Sp(t)}}function Rp(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];J.push(new Ii(t,e)),J.length===1&&!ke&&Ri(Ei)}function Ii(t,e){this.fun=t,this.array=e}function fe(){}function Dp(t){throw new Error("process.binding is not supported")}function Wp(){return"/"}function Gp(t){throw new Error("process.chdir is not supported")}function Vp(){return 0}function Yp(t){var e=zp.call(Ce)*.001,r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r=r-t[0],n=n-t[1],n<0&&(r--,n+=1e9)),[r,n]}function Jp(){var t=new Date,e=t-Hp;return e/1e3}var te,ne,J,ke,pe,Fr,Ep,Ip,Np,Pp,Fp,Op,Cp,kp,Lp,Up,Bp,Mp,qp,$p,_p,jp,Ce,zp,Hp,f,Ai,a=Oe(()=>{"use strict";te=Si,ne=Ti;typeof globalThis.setTimeout=="function"&&(te=setTimeout);typeof globalThis.clearTimeout=="function"&&(ne=clearTimeout);J=[],ke=!1,Fr=-1;Ii.prototype.run=function(){this.fun.apply(null,this.array)};Ep="browser",Ip="browser",Np=!0,Pp={},Fp=[],Op="",Cp={},kp={},Lp={};Up=fe,Bp=fe,Mp=fe,qp=fe,$p=fe,_p=fe,jp=fe;Ce=globalThis.performance||{},zp=Ce.now||Ce.mozNow||Ce.msNow||Ce.oNow||Ce.webkitNow||function(){return new Date().getTime()};Hp=new Date;f={nextTick:Rp,title:Ep,browser:Np,env:Pp,argv:Fp,version:Op,versions:Cp,on:Up,addListener:Bp,once:Mp,off:qp,removeListener:$p,removeAllListeners:_p,emit:jp,binding:Dp,cwd:Wp,chdir:Gp,umask:Vp,hrtime:Yp,platform:Ip,release:kp,config:Lp,uptime:Jp},Ai={};Object.keys(Ai).forEach(t=>{let e=t.split("."),r=f;for(let n=0;n<e.length;n++){let i=e[n];n===e.length-1?r[i]=Ai[t]:r=r[i]||(r[i]={})}})});function Oi(){Ut=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)_[e]=t[e],q[t.charCodeAt(e)]=e;q[45]=62,q[95]=63}function Zp(t){Ut||Oi();var e,r,n,i,o,u,p=t.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=t[p-2]==="="?2:t[p-1]==="="?1:0,u=new Kp(p*3/4-o),n=o>0?p-4:p;var c=0;for(e=0,r=0;e<n;e+=4,r+=3)i=q[t.charCodeAt(e)]<<18|q[t.charCodeAt(e+1)]<<12|q[t.charCodeAt(e+2)]<<6|q[t.charCodeAt(e+3)],u[c++]=i>>16&255,u[c++]=i>>8&255,u[c++]=i&255;return o===2?(i=q[t.charCodeAt(e)]<<2|q[t.charCodeAt(e+1)]>>4,u[c++]=i&255):o===1&&(i=q[t.charCodeAt(e)]<<10|q[t.charCodeAt(e+1)]<<4|q[t.charCodeAt(e+2)]>>2,u[c++]=i>>8&255,u[c++]=i&255),u}function Xp(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function Qp(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(Xp(n));return i.join("")}function Ni(t){Ut||Oi();for(var e,r=t.length,n=r%3,i="",o=[],u=16383,p=0,c=r-n;p<c;p+=u)o.push(Qp(t,p,p+u>c?c:p+u));return n===1?(e=t[r-1],i+=_[e>>2],i+=_[e<<4&63],i+="=="):n===2&&(e=(t[r-2]<<8)+t[r-1],i+=_[e>>10],i+=_[e>>4&63],i+=_[e<<2&63],i+="="),o.push(i),o.join("")}function Or(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function K(t,e){if(Or()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=l.prototype):(t===null&&(t=new l(e)),t.length=e),t}function l(t,e,r){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(t,e,r);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return Bt(this,t)}return Ci(this,t,e,r)}function Ci(t,e,r,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer?tf(t,e,r,n):typeof e=="string"?rf(t,e,r):nf(t,e)}function ki(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function ef(t,e,r,n){return ki(e),e<=0?K(t,e):r!==void 0?typeof n=="string"?K(t,e).fill(r,n):K(t,e).fill(r):K(t,e)}function Bt(t,e){if(ki(e),t=K(t,e<0?0:Mt(e)|0),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function rf(t,e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=Li(e,r)|0;t=K(t,n);var i=t.write(e,r);return i!==n&&(t=t.slice(0,i)),t}function Lt(t,e){var r=e.length<0?0:Mt(e.length)|0;t=K(t,r);for(var n=0;n<r;n+=1)t[n]=e[n]&255;return t}function tf(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?e=new Uint8Array(e):n===void 0?e=new Uint8Array(e,r):e=new Uint8Array(e,r,n),l.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=l.prototype):t=Lt(t,e),t}function nf(t,e){if(j(e)){var r=Mt(e.length)|0;return t=K(t,r),t.length===0||e.copy(t,0,0,r),t}if(e){if(typeof ArrayBuffer!="undefined"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Sf(e.length)?K(t,0):Lt(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return Lt(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Mt(t){if(t>=Or())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Or().toString(16)+" bytes");return t|0}function j(t){return!!(t!=null&&t._isBuffer)}function Li(t,e){if(j(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var r=t.length;if(r===0)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Cr(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ji(t).length;default:if(n)return Cr(t).length;e=(""+e).toLowerCase(),n=!0}}function of(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return mf(this,e,r);case"utf8":case"utf-8":return Mi(this,e,r);case"ascii":return df(this,e,r);case"latin1":case"binary":return yf(this,e,r);case"base64":return ff(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hf(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function ce(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Ui(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=l.from(e,n)),j(e))return e.length===0?-1:Pi(t,e,r,n,i);if(typeof e=="number")return e=e&255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Pi(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Pi(t,e,r,n,i){var o=1,u=t.length,p=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,u/=2,p/=2,r/=2}function c(w,R){return o===1?w[R]:w.readUInt16BE(R*o)}var h;if(i){var g=-1;for(h=r;h<u;h++)if(c(t,h)===c(e,g===-1?0:h-g)){if(g===-1&&(g=h),h-g+1===p)return g*o}else g!==-1&&(h-=h-g),g=-1}else for(r+p>u&&(r=u-p),h=r;h>=0;h--){for(var m=!0,x=0;x<p;x++)if(c(t,h+x)!==c(e,x)){m=!1;break}if(m)return h}return-1}function af(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u<n;++u){var p=parseInt(e.substr(u*2,2),16);if(isNaN(p))return u;t[r+u]=p}return u}function sf(t,e,r,n){return Ur(Cr(e,t.length-r),t,r,n)}function Bi(t,e,r,n){return Ur(bf(e),t,r,n)}function uf(t,e,r,n){return Bi(t,e,r,n)}function lf(t,e,r,n){return Ur(ji(e),t,r,n)}function pf(t,e,r,n){return Ur(Af(e,t.length-r),t,r,n)}function ff(t,e,r){return e===0&&r===t.length?Ni(t):Ni(t.slice(e,r))}function Mi(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],u=null,p=o>239?4:o>223?3:o>191?2:1;if(i+p<=r){var c,h,g,m;switch(p){case 1:o<128&&(u=o);break;case 2:c=t[i+1],(c&192)===128&&(m=(o&31)<<6|c&63,m>127&&(u=m));break;case 3:c=t[i+1],h=t[i+2],(c&192)===128&&(h&192)===128&&(m=(o&15)<<12|(c&63)<<6|h&63,m>2047&&(m<55296||m>57343)&&(u=m));break;case 4:c=t[i+1],h=t[i+2],g=t[i+3],(c&192)===128&&(h&192)===128&&(g&192)===128&&(m=(o&15)<<18|(c&63)<<12|(h&63)<<6|g&63,m>65535&&m<1114112&&(u=m))}}u===null?(u=65533,p=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=p}return cf(n)}function cf(t){var e=t.length;if(e<=Fi)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Fi));return r}function df(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function yf(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function mf(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=wf(t[o]);return i}function hf(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}function F(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,r,n,i,o){if(!j(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function kr(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function Lr(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>(n?i:3-i)*8&255}function qi(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $i(t,e,r,n,i){return i||qi(t,e,r,4,34028234663852886e22,-34028234663852886e22),Wi(t,e,r,n,23,4),r+4}function _i(t,e,r,n,i){return i||qi(t,e,r,8,17976931348623157e292,-17976931348623157e292),Wi(t,e,r,n,52,8),r+8}function vf(t){if(t=xf(t).replace(gf,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function xf(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function wf(t){return t<16?"0"+t.toString(16):t.toString(16)}function Cr(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],u=0;u<n;++u){if(r=t.charCodeAt(u),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function bf(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Af(t,e){for(var r,n,i,o=[],u=0;u<t.length&&!((e-=2)<0);++u)r=t.charCodeAt(u),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function ji(t){return Zp(vf(t))}function Ur(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Sf(t){return t!==t}function Tf(t){return t!=null&&(!!t._isBuffer||Di(t)||Rf(t))}function Di(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Rf(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Di(t.slice(0,0))}function Br(t,e,r,n,i){var o,u,p=i*8-n-1,c=(1<<p)-1,h=c>>1,g=-7,m=r?i-1:0,x=r?-1:1,w=t[e+m];for(m+=x,o=w&(1<<-g)-1,w>>=-g,g+=p;g>0;o=o*256+t[e+m],m+=x,g-=8);for(u=o&(1<<-g)-1,o>>=-g,g+=n;g>0;u=u*256+t[e+m],m+=x,g-=8);if(o===0)o=1-h;else{if(o===c)return u?NaN:(w?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-h}return(w?-1:1)*u*Math.pow(2,o-n)}function Wi(t,e,r,n,i,o){var u,p,c,h=o*8-i-1,g=(1<<h)-1,m=g>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,R=n?1:-1,I=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,u=g):(u=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+m>=1?e+=x/c:e+=x*Math.pow(2,1-m),e*c>=2&&(u++,c/=2),u+m>=g?(p=0,u=g):u+m>=1?(p=(e*c-1)*Math.pow(2,i),u=u+m):(p=e*Math.pow(2,m-1)*Math.pow(2,i),u=0));i>=8;t[r+w]=p&255,w+=R,p/=256,i-=8);for(u=u<<i|p,h+=i;h>0;t[r+w]=u&255,w+=R,u/=256,h-=8);t[r+w-R]|=I*128}var _,q,Kp,Ut,Fi,gf,Gi=Oe(()=>{"use strict";a();s();_=[],q=[],Kp=typeof Uint8Array!="undefined"?Uint8Array:Array,Ut=!1;l.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;l.poolSize=8192;l._augment=function(t){return t.__proto__=l.prototype,t};l.from=function(t,e,r){return Ci(null,t,e,r)};l.kMaxLength=Or();l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&l[Symbol.species]);l.alloc=function(t,e,r){return ef(null,t,e,r)};l.allocUnsafe=function(t){return Bt(null,t)};l.allocUnsafeSlow=function(t){return Bt(null,t)};l.isBuffer=Tf;l.compare=function(e,r){if(!j(e)||!j(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,i=r.length,o=0,u=Math.min(n,i);o<u;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};l.isEncoding=function(e){switch(String(e).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}};l.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=l.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var u=e[n];if(!j(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,o),o+=u.length}return i};l.byteLength=Li;l.prototype._isBuffer=!0;l.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)ce(this,r,r+1);return this};l.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)ce(this,r,r+3),ce(this,r+1,r+2);return this};l.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)ce(this,r,r+7),ce(this,r+1,r+6),ce(this,r+2,r+5),ce(this,r+3,r+4);return this};l.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?Mi(this,0,e):of.apply(this,arguments)};l.prototype.equals=function(e){if(!j(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.compare=function(e,r,n,i,o){if(!j(e))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var u=o-i,p=n-r,c=Math.min(u,p),h=this.slice(i,o),g=e.slice(r,n),m=0;m<c;++m)if(h[m]!==g[m]){u=h[m],p=g[m];break}return u<p?-1:p<u?1:0};l.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};l.prototype.indexOf=function(e,r,n){return Ui(this,e,r,n,!0)};l.prototype.lastIndexOf=function(e,r,n){return Ui(this,e,r,n,!1)};l.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return af(this,e,r,n);case"utf8":case"utf-8":return sf(this,e,r,n);case"ascii":return Bi(this,e,r,n);case"latin1":case"binary":return uf(this,e,r,n);case"base64":return lf(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pf(this,e,r,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};Fi=4096;l.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i;if(l.TYPED_ARRAY_SUPPORT)i=this.subarray(e,r),i.__proto__=l.prototype;else{var o=r-e;i=new l(o,void 0);for(var u=0;u<o;++u)i[u]=this[u+e]}return i};l.prototype.readUIntLE=function(e,r,n){e=e|0,r=r|0,n||F(e,r,this.length);for(var i=this[e],o=1,u=0;++u<r&&(o*=256);)i+=this[e+u]*o;return i};l.prototype.readUIntBE=function(e,r,n){e=e|0,r=r|0,n||F(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};l.prototype.readUInt8=function(e,r){return r||F(e,1,this.length),this[e]};l.prototype.readUInt16LE=function(e,r){return r||F(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUInt16BE=function(e,r){return r||F(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUInt32LE=function(e,r){return r||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUInt32BE=function(e,r){return r||F(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readIntLE=function(e,r,n){e=e|0,r=r|0,n||F(e,r,this.length);for(var i=this[e],o=1,u=0;++u<r&&(o*=256);)i+=this[e+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};l.prototype.readIntBE=function(e,r,n){e=e|0,r=r|0,n||F(e,r,this.length);for(var i=r,o=1,u=this[e+--i];i>0&&(o*=256);)u+=this[e+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*r)),u};l.prototype.readInt8=function(e,r){return r||F(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,r){r||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,r){r||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,r){return r||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,r){return r||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readFloatLE=function(e,r){return r||F(e,4,this.length),Br(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,r){return r||F(e,4,this.length),Br(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,r){return r||F(e,8,this.length),Br(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,r){return r||F(e,8,this.length),Br(this,e,!1,52,8)};l.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;U(this,e,r,n,o,0)}var u=1,p=0;for(this[r]=e&255;++p<n&&(u*=256);)this[r+p]=e/u&255;return r+n};l.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;U(this,e,r,n,o,0)}var u=n-1,p=1;for(this[r+u]=e&255;--u>=0&&(p*=256);)this[r+u]=e/p&255;return r+n};l.prototype.writeUInt8=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=e&255,r+1};l.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):kr(this,e,r,!0),r+2};l.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):kr(this,e,r,!1),r+2};l.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255):Lr(this,e,r,!0),r+4};l.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):Lr(this,e,r,!1),r+4};l.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r|0,!i){var o=Math.pow(2,8*n-1);U(this,e,r,n,o-1,-o)}var u=0,p=1,c=0;for(this[r]=e&255;++u<n&&(p*=256);)e<0&&c===0&&this[r+u-1]!==0&&(c=1),this[r+u]=(e/p>>0)-c&255;return r+n};l.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r|0,!i){var o=Math.pow(2,8*n-1);U(this,e,r,n,o-1,-o)}var u=n-1,p=1,c=0;for(this[r+u]=e&255;--u>=0&&(p*=256);)e<0&&c===0&&this[r+u+1]!==0&&(c=1),this[r+u]=(e/p>>0)-c&255;return r+n};l.prototype.writeInt8=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=e&255,r+1};l.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):kr(this,e,r,!0),r+2};l.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):kr(this,e,r,!1),r+2};l.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):Lr(this,e,r,!0),r+4};l.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):Lr(this,e,r,!1),r+4};l.prototype.writeFloatLE=function(e,r,n){return $i(this,e,r,!0,n)};l.prototype.writeFloatBE=function(e,r,n){return $i(this,e,r,!1,n)};l.prototype.writeDoubleLE=function(e,r,n){return _i(this,e,r,!0,n)};l.prototype.writeDoubleBE=function(e,r,n){return _i(this,e,r,!1,n)};l.prototype.copy=function(e,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n,u;if(this===e&&n<r&&r<i)for(u=o-1;u>=0;--u)e[u+r]=this[u+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(u=0;u<o;++u)e[u+r]=this[u+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),r);return o};l.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),e.length===1){var o=e.charCodeAt(0);o<256&&(e=o)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var u;if(typeof e=="number")for(u=r;u<n;++u)this[u]=e;else{var p=j(e)?e:Cr(new l(e,i).toString()),c=p.length;for(u=0;u<n-r;++u)this[u+r]=p[u%c]}return this};gf=/[^+\/0-9A-Za-z-_]/g});var s=Oe(()=>{"use strict";Gi()});var Yi=y((Pv,zi)=>{"use strict";a();s();var Ef="Function.prototype.bind called on incompatible ",If=Object.prototype.toString,Nf=Math.max,Pf="[object Function]",Vi=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var o=0;o<r.length;o+=1)n[o+e.length]=r[o];return n},Ff=function(e,r){for(var n=[],i=r||0,o=0;i<e.length;i+=1,o+=1)n[o]=e[i];return n},Of=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};zi.exports=function(e){var r=this;if(typeof r!="function"||If.apply(r)!==Pf)throw new TypeError(Ef+r);for(var n=Ff(arguments,1),i,o=function(){if(this instanceof i){var g=r.apply(this,Vi(n,arguments));return Object(g)===g?g:this}return r.apply(e,Vi(n,arguments))},u=Nf(0,r.length-n.length),p=[],c=0;c<u;c++)p[c]="$"+c;if(i=Function("binder","return function ("+Of(p,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var h=function(){};h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i}});var de=y((Cv,Hi)=>{"use strict";a();s();var Cf=Yi();Hi.exports=Function.prototype.bind||Cf});var qt=y((Uv,Ji)=>{"use strict";a();s();Ji.exports=Error});var $t=y((qv,Ki)=>{"use strict";a();s();Ki.exports=EvalError});var _t=y((jv,Zi)=>{"use strict";a();s();Zi.exports=RangeError});var jt=y((Gv,Xi)=>{"use strict";a();s();Xi.exports=ReferenceError});var Mr=y((Yv,Qi)=>{"use strict";a();s();Qi.exports=SyntaxError});var P=y((Kv,eo)=>{"use strict";a();s();eo.exports=TypeError});var Dt=y((Qv,ro)=>{"use strict";a();s();ro.exports=URIError});var no=y((tx,to)=>{"use strict";a();s();to.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0}});var Wt=y((ox,oo)=>{"use strict";a();s();var io=typeof Symbol!="undefined"&&Symbol,kf=no();oo.exports=function(){return typeof io!="function"||typeof Symbol!="function"||typeof io("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:kf()}});var so=y((ux,ao)=>{"use strict";a();s();var Gt={__proto__:null,foo:{}},Lf=Object;ao.exports=function(){return{__proto__:Gt}.foo===Gt.foo&&!(Gt instanceof Lf)}});var Vt=y((fx,uo)=>{"use strict";a();s();var Uf=Function.prototype.call,Bf=Object.prototype.hasOwnProperty,Mf=de();uo.exports=Mf.call(Uf,Bf)});var D=y((yx,yo)=>{"use strict";a();s();var b,qf=qt(),$f=$t(),_f=_t(),jf=jt(),Me=Mr(),Be=P(),Df=Dt(),co=Function,zt=function(t){try{return co('"use strict"; return ('+t+").constructor;")()}catch(e){}},ye=Object.getOwnPropertyDescriptor;if(ye)try{ye({},"")}catch(t){ye=null}var Yt=function(){throw new Be},Wf=ye?function(){try{return arguments.callee,Yt}catch(t){try{return ye(arguments,"callee").get}catch(e){return Yt}}}():Yt,Le=Wt()(),Gf=so()(),O=Object.getPrototypeOf||(Gf?function(t){return t.__proto__}:null),Ue={},Vf=typeof Uint8Array=="undefined"||!O?b:O(Uint8Array),me={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?b:ArrayBuffer,"%ArrayIteratorPrototype%":Le&&O?O([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":Ue,"%AsyncGenerator%":Ue,"%AsyncGeneratorFunction%":Ue,"%AsyncIteratorPrototype%":Ue,"%Atomics%":typeof Atomics=="undefined"?b:Atomics,"%BigInt%":typeof BigInt=="undefined"?b:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?b:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":qf,"%eval%":eval,"%EvalError%":$f,"%Float32Array%":typeof Float32Array=="undefined"?b:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?b:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?b:FinalizationRegistry,"%Function%":co,"%GeneratorFunction%":Ue,"%Int8Array%":typeof Int8Array=="undefined"?b:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?b:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Le&&O?O(O([][Symbol.iterator]())):b,"%JSON%":typeof JSON=="object"?JSON:b,"%Map%":typeof Map=="undefined"?b:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Le||!O?b:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?b:Promise,"%Proxy%":typeof Proxy=="undefined"?b:Proxy,"%RangeError%":_f,"%ReferenceError%":jf,"%Reflect%":typeof Reflect=="undefined"?b:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?b:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Le||!O?b:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Le&&O?O(""[Symbol.iterator]()):b,"%Symbol%":Le?Symbol:b,"%SyntaxError%":Me,"%ThrowTypeError%":Wf,"%TypedArray%":Vf,"%TypeError%":Be,"%Uint8Array%":typeof Uint8Array=="undefined"?b:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?b:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?b:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?b:Uint32Array,"%URIError%":Df,"%WeakMap%":typeof WeakMap=="undefined"?b:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?b:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?b:WeakSet};if(O)try{null.error}catch(t){lo=O(O(t)),me["%Error.prototype%"]=lo}var lo,zf=function t(e){var r;if(e==="%AsyncFunction%")r=zt("async function () {}");else if(e==="%GeneratorFunction%")r=zt("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=zt("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&O&&(r=O(i.prototype))}return me[e]=r,r},po={__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"]},Ze=de(),qr=Vt(),Yf=Ze.call(Function.call,Array.prototype.concat),Hf=Ze.call(Function.apply,Array.prototype.splice),fo=Ze.call(Function.call,String.prototype.replace),$r=Ze.call(Function.call,String.prototype.slice),Jf=Ze.call(Function.call,RegExp.prototype.exec),Kf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Zf=/\\(\\)?/g,Xf=function(e){var r=$r(e,0,1),n=$r(e,-1);if(r==="%"&&n!=="%")throw new Me("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Me("invalid intrinsic syntax, expected opening `%`");var i=[];return fo(e,Kf,function(o,u,p,c){i[i.length]=p?fo(c,Zf,"$1"):u||o}),i},Qf=function(e,r){var n=e,i;if(qr(po,n)&&(i=po[n],n="%"+i[0]+"%"),qr(me,n)){var o=me[n];if(o===Ue&&(o=zf(n)),typeof o=="undefined"&&!r)throw new Be("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Me("intrinsic "+e+" does not exist!")};yo.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new Be("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Be('"allowMissing" argument must be a boolean');if(Jf(/^%?[^%]*%?$/,e)===null)throw new Me("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Xf(e),i=n.length>0?n[0]:"",o=Qf("%"+i+"%",r),u=o.name,p=o.value,c=!1,h=o.alias;h&&(i=h[0],Hf(n,Yf([0,1],h)));for(var g=1,m=!0;g<n.length;g+=1){var x=n[g],w=$r(x,0,1),R=$r(x,-1);if((w==='"'||w==="'"||w==="`"||R==='"'||R==="'"||R==="`")&&w!==R)throw new Me("property names with quotes must have matching quotes");if((x==="constructor"||!m)&&(c=!0),i+="."+x,u="%"+i+"%",qr(me,u))p=me[u];else if(p!=null){if(!(x in p)){if(!r)throw new Be("base intrinsic for "+e+" exists, but the property is not available.");return}if(ye&&g+1>=n.length){var I=ye(p,x);m=!!I,m&&"get"in I&&!("originalValue"in I.get)?p=I.get:p=p[x]}else m=qr(p,x),p=p[x];m&&!c&&(me[u]=p)}}return p}});var Ht=y((gx,mo)=>{"use strict";a();s();mo.exports=Object});var go=y((wx,ho)=>{"use strict";a();s();ho.exports=Math.abs});var xo=y((Sx,vo)=>{"use strict";a();s();vo.exports=Math.floor});var bo=y((Ex,wo)=>{"use strict";a();s();wo.exports=Math.max});var So=y((Px,Ao)=>{"use strict";a();s();Ao.exports=Math.min});var Ro=y((Cx,To)=>{"use strict";a();s();To.exports=Math.pow});var Io=y((Ux,Eo)=>{"use strict";a();s();Eo.exports=Math.round});var Po=y((qx,No)=>{"use strict";a();s();No.exports=Number.isNaN||function(e){return e!==e}});var Oo=y((jx,Fo)=>{"use strict";a();s();var ec=Po();Fo.exports=function(e){return ec(e)||e===0?e:e<0?-1:1}});var ko=y((Gx,Co)=>{"use strict";a();s();Co.exports=Object.getOwnPropertyDescriptor});var Xe=y((Yx,Lo)=>{"use strict";a();s();var _r=ko();if(_r)try{_r([],"length")}catch(t){_r=null}Lo.exports=_r});var Dr=y((Kx,Uo)=>{"use strict";a();s();var jr=Object.defineProperty||!1;if(jr)try{jr({},"a",{value:1})}catch(t){jr=!1}Uo.exports=jr});var Jt=y((Qx,Bo)=>{"use strict";a();s();Bo.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(e,r);if(p.value!==i||p.enumerable!==!0)return!1}return!0}});var $o=y((t0,qo)=>{"use strict";a();s();var Mo=typeof Symbol!="undefined"&&Symbol,rc=Jt();qo.exports=function(){return typeof Mo!="function"||typeof Symbol!="function"||typeof Mo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:rc()}});var Kt=y((o0,_o)=>{"use strict";a();s();_o.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var Zt=y((u0,jo)=>{"use strict";a();s();var tc=Ht();jo.exports=tc.getPrototypeOf||null});var Wr=y((f0,Do)=>{"use strict";a();s();Do.exports=Function.prototype.call});var Xt=y((y0,Wo)=>{"use strict";a();s();Wo.exports=Function.prototype.apply});var Vo=y((g0,Go)=>{"use strict";a();s();Go.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var Yo=y((w0,zo)=>{"use strict";a();s();var nc=de(),ic=Xt(),oc=Wr(),ac=Vo();zo.exports=ac||nc.call(oc,ic)});var Jo=y((S0,Ho)=>{"use strict";a();s();var sc=de(),uc=P(),lc=Wr(),pc=Yo();Ho.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new uc("a function is required");return pc(sc,lc,e)}});var ra=y((E0,ea)=>{"use strict";a();s();var fc=Jo(),Ko=Xe(),Xo;try{Xo=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Qt=!!Xo&&Ko&&Ko(Object.prototype,"__proto__"),Qo=Object,Zo=Qo.getPrototypeOf;ea.exports=Qt&&typeof Qt.get=="function"?fc([Qt.get]):typeof Zo=="function"?function(e){return Zo(e==null?e:Qo(e))}:!1});var aa=y((P0,oa)=>{"use strict";a();s();var ta=Kt(),na=Zt(),ia=ra();oa.exports=ta?function(e){return ta(e)}:na?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return na(e)}:ia?function(e){return ia(e)}:null});var tn=y((C0,ca)=>{"use strict";a();s();var A,cc=Ht(),dc=qt(),yc=$t(),mc=_t(),hc=jt(),je=Mr(),_e=P(),gc=Dt(),vc=go(),xc=xo(),wc=bo(),bc=So(),Ac=Ro(),Sc=Io(),Tc=Oo(),pa=Function,en=function(t){try{return pa('"use strict"; return ('+t+").constructor;")()}catch(e){}},Qe=Xe(),Rc=Dr(),rn=function(){throw new _e},Ec=Qe?function(){try{return arguments.callee,rn}catch(t){try{return Qe(arguments,"callee").get}catch(e){return rn}}}():rn,qe=$o()(),C=aa(),Ic=Zt(),Nc=Kt(),fa=Xt(),er=Wr(),$e={},Pc=typeof Uint8Array=="undefined"||!C?A:C(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?A:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?A:ArrayBuffer,"%ArrayIteratorPrototype%":qe&&C?C([][Symbol.iterator]()):A,"%AsyncFromSyncIteratorPrototype%":A,"%AsyncFunction%":$e,"%AsyncGenerator%":$e,"%AsyncGeneratorFunction%":$e,"%AsyncIteratorPrototype%":$e,"%Atomics%":typeof Atomics=="undefined"?A:Atomics,"%BigInt%":typeof BigInt=="undefined"?A:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?A:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?A:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?A:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":dc,"%eval%":eval,"%EvalError%":yc,"%Float32Array%":typeof Float32Array=="undefined"?A:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?A:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?A:FinalizationRegistry,"%Function%":pa,"%GeneratorFunction%":$e,"%Int8Array%":typeof Int8Array=="undefined"?A:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?A:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?A:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":qe&&C?C(C([][Symbol.iterator]())):A,"%JSON%":typeof JSON=="object"?JSON:A,"%Map%":typeof Map=="undefined"?A:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!qe||!C?A:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":cc,"%Object.getOwnPropertyDescriptor%":Qe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?A:Promise,"%Proxy%":typeof Proxy=="undefined"?A:Proxy,"%RangeError%":mc,"%ReferenceError%":hc,"%Reflect%":typeof Reflect=="undefined"?A:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?A:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!qe||!C?A:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?A:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":qe&&C?C(""[Symbol.iterator]()):A,"%Symbol%":qe?Symbol:A,"%SyntaxError%":je,"%ThrowTypeError%":Ec,"%TypedArray%":Pc,"%TypeError%":_e,"%Uint8Array%":typeof Uint8Array=="undefined"?A:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?A:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?A:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?A:Uint32Array,"%URIError%":gc,"%WeakMap%":typeof WeakMap=="undefined"?A:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?A:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?A:WeakSet,"%Function.prototype.call%":er,"%Function.prototype.apply%":fa,"%Object.defineProperty%":Rc,"%Object.getPrototypeOf%":Ic,"%Math.abs%":vc,"%Math.floor%":xc,"%Math.max%":wc,"%Math.min%":bc,"%Math.pow%":Ac,"%Math.round%":Sc,"%Math.sign%":Tc,"%Reflect.getPrototypeOf%":Nc};if(C)try{null.error}catch(t){sa=C(C(t)),he["%Error.prototype%"]=sa}var sa,Fc=function t(e){var r;if(e==="%AsyncFunction%")r=en("async function () {}");else if(e==="%GeneratorFunction%")r=en("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=en("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&C&&(r=C(i.prototype))}return he[e]=r,r},ua={__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"]},rr=de(),Gr=Vt(),Oc=rr.call(er,Array.prototype.concat),Cc=rr.call(fa,Array.prototype.splice),la=rr.call(er,String.prototype.replace),Vr=rr.call(er,String.prototype.slice),kc=rr.call(er,RegExp.prototype.exec),Lc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Uc=/\\(\\)?/g,Bc=function(e){var r=Vr(e,0,1),n=Vr(e,-1);if(r==="%"&&n!=="%")throw new je("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new je("invalid intrinsic syntax, expected opening `%`");var i=[];return la(e,Lc,function(o,u,p,c){i[i.length]=p?la(c,Uc,"$1"):u||o}),i},Mc=function(e,r){var n=e,i;if(Gr(ua,n)&&(i=ua[n],n="%"+i[0]+"%"),Gr(he,n)){var o=he[n];if(o===$e&&(o=Fc(n)),typeof o=="undefined"&&!r)throw new _e("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new je("intrinsic "+e+" does not exist!")};ca.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new _e("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _e('"allowMissing" argument must be a boolean');if(kc(/^%?[^%]*%?$/,e)===null)throw new je("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Bc(e),i=n.length>0?n[0]:"",o=Mc("%"+i+"%",r),u=o.name,p=o.value,c=!1,h=o.alias;h&&(i=h[0],Cc(n,Oc([0,1],h)));for(var g=1,m=!0;g<n.length;g+=1){var x=n[g],w=Vr(x,0,1),R=Vr(x,-1);if((w==='"'||w==="'"||w==="`"||R==='"'||R==="'"||R==="`")&&w!==R)throw new je("property names with quotes must have matching quotes");if((x==="constructor"||!m)&&(c=!0),i+="."+x,u="%"+i+"%",Gr(he,u))p=he[u];else if(p!=null){if(!(x in p)){if(!r)throw new _e("base intrinsic for "+e+" exists, but the property is not available.");return}if(Qe&&g+1>=n.length){var I=Qe(p,x);m=!!I,m&&"get"in I&&!("originalValue"in I.get)?p=I.get:p=p[x]}else m=Gr(p,x),p=p[x];m&&!c&&(he[u]=p)}}return p}});var nn=y((U0,ma)=>{"use strict";a();s();var da=Dr(),qc=Mr(),De=P(),ya=Xe();ma.exports=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new De("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new De("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new De("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new De("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new De("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new De("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,c=!!ya&&ya(e,r);if(da)da(e,r,{configurable:u===null&&c?c.configurable:!u,enumerable:i===null&&c?c.enumerable:!i,value:n,writable:o===null&&c?c.writable:!o});else if(p||!i&&!o&&!u)e[r]=n;else throw new qc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var an=y((q0,ga)=>{"use strict";a();s();var on=Dr(),ha=function(){return!!on};ha.hasArrayLengthDefineBug=function(){if(!on)return null;try{return on([],"length",{value:1}).length!==1}catch(e){return!0}};ga.exports=ha});var Aa=y((j0,ba)=>{"use strict";a();s();var $c=tn(),va=nn(),_c=an()(),xa=Xe(),wa=P(),jc=$c("%Math.floor%");ba.exports=function(e,r){if(typeof e!="function")throw new wa("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||jc(r)!==r)throw new wa("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in e&&xa){var u=xa(e,"length");u&&!u.configurable&&(i=!1),u&&!u.writable&&(o=!1)}return(i||o||!n)&&(_c?va(e,"length",r,!0,!0):va(e,"length",r)),e}});var Ta=y((G0,Sa)=>{"use strict";a();s();var Dc=tn(),zr=Dc("%Object.defineProperty%",!0)||!1;if(zr)try{zr({},"a",{value:1})}catch(t){zr=!1}Sa.exports=zr});var Jr=y((Y0,Yr)=>{"use strict";a();s();var sn=de(),Hr=D(),Wc=Aa(),Gc=P(),Ia=Hr("%Function.prototype.apply%"),Na=Hr("%Function.prototype.call%"),Pa=Hr("%Reflect.apply%",!0)||sn.call(Na,Ia),Ra=Ta(),Vc=Hr("%Math.max%");Yr.exports=function(e){if(typeof e!="function")throw new Gc("a function is required");var r=Pa(sn,Na,arguments);return Wc(r,1+Vc(0,e.length-(arguments.length-1)),!0)};var Ea=function(){return Pa(sn,Ia,arguments)};Ra?Ra(Yr.exports,"apply",{value:Ea}):Yr.exports.apply=Ea});var un=y((K0,Oa)=>{"use strict";a();s();var Fa=Object.prototype.toString;Oa.exports=function(e){var r=Fa.call(e),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Fa.call(e.callee)==="[object Function]"),n}});var _a=y((Q0,$a)=>{"use strict";a();s();var qa;Object.keys||(tr=Object.prototype.hasOwnProperty,ln=Object.prototype.toString,Ca=un(),pn=Object.prototype.propertyIsEnumerable,ka=!pn.call({toString:null},"toString"),La=pn.call(function(){},"prototype"),nr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Kr=function(t){var e=t.constructor;return e&&e.prototype===t},Ua={$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},Ba=function(){if(typeof window=="undefined")return!1;for(var t in window)try{if(!Ua["$"+t]&&tr.call(window,t)&&window[t]!==null&&typeof window[t]=="object")try{Kr(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),Ma=function(t){if(typeof window=="undefined"||!Ba)return Kr(t);try{return Kr(t)}catch(e){return!1}},qa=function(e){var r=e!==null&&typeof e=="object",n=ln.call(e)==="[object Function]",i=Ca(e),o=r&&ln.call(e)==="[object String]",u=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var p=La&&n;if(o&&e.length>0&&!tr.call(e,0))for(var c=0;c<e.length;++c)u.push(String(c));if(i&&e.length>0)for(var h=0;h<e.length;++h)u.push(String(h));else for(var g in e)!(p&&g==="prototype")&&tr.call(e,g)&&u.push(String(g));if(ka)for(var m=Ma(e),x=0;x<nr.length;++x)!(m&&nr[x]==="constructor")&&tr.call(e,nr[x])&&u.push(nr[x]);return u});var tr,ln,Ca,pn,ka,La,nr,Kr,Ua,Ba,Ma;$a.exports=qa});var Ga=y((tw,Wa)=>{"use strict";a();s();var zc=Array.prototype.slice,Yc=un(),ja=Object.keys,Zr=ja?function(e){return ja(e)}:_a(),Da=Object.keys;Zr.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(n){return Yc(n)?Da(zc.call(n)):Da(n)})}else Object.keys=Zr;return Object.keys||Zr};Wa.exports=Zr});var ir=y((ow,Ha)=>{"use strict";a();s();var Hc=Ga(),Jc=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Kc=Object.prototype.toString,Zc=Array.prototype.concat,Va=nn(),Xc=function(t){return typeof t=="function"&&Kc.call(t)==="[object Function]"},za=an()(),Qc=function(t,e,r,n){if(e in t){if(n===!0){if(t[e]===r)return}else if(!Xc(n)||!n())return}za?Va(t,e,r,!0):Va(t,e,r)},Ya=function(t,e){var r=arguments.length>2?arguments[2]:{},n=Hc(e);Jc&&(n=Zc.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i<n.length;i+=1)Qc(t,n[i],e[n[i]],r[n[i]])};Ya.supportsDescriptors=!!za;Ha.exports=Ya});var $=y((uw,Za)=>{"use strict";a();s();var Ja=D(),Ka=Jr(),ed=Ka(Ja("String.prototype.indexOf"));Za.exports=function(e,r){var n=Ja(e,!!r);return typeof n=="function"&&ed(e,".prototype.")>-1?Ka(n):n}});var es=y((fw,Qa)=>{"use strict";a();s();var rd=D(),Xa=rd("%Array%"),td=!Xa.isArray&&$()("Object.prototype.toString");Qa.exports=Xa.isArray||function(e){return td(e)==="[object Array]"}});var fn=y((yw,rs)=>{"use strict";a();s();rs.exports=es()});var ns=y((gw,ts)=>{"use strict";a();s();var nd=D(),id=$(),od=P(),ad=fn(),sd=nd("%Reflect.apply%",!0)||id("Function.prototype.apply");ts.exports=function(e,r){var n=arguments.length>2?arguments[2]:[];if(!ad(n))throw new od("Assertion failed: optional `argumentsList`, if provided, must be a List");return sd(e,r,n)}});function is(){throw new Error("setTimeout has not been defined")}function os(){throw new Error("clearTimeout has not been defined")}function as(t){if(ie===setTimeout)return setTimeout(t,0);if((ie===is||!ie)&&setTimeout)return ie=setTimeout,setTimeout(t,0);try{return ie(t,0)}catch(e){try{return ie.call(null,t,0)}catch(r){return ie.call(this,t,0)}}}function ud(t){if(oe===clearTimeout)return clearTimeout(t);if((oe===os||!oe)&&clearTimeout)return oe=clearTimeout,clearTimeout(t);try{return oe(t)}catch(e){try{return oe.call(null,t)}catch(r){return oe.call(this,t)}}}function ld(){!Ge||!ge||(Ge=!1,ge.length?Z=ge.concat(Z):Xr=-1,Z.length&&ss())}function ss(){if(!Ge){var t=as(ld);Ge=!0;for(var e=Z.length;e;){for(ge=Z,Z=[];++Xr<e;)ge&&ge[Xr].run();Xr=-1,e=Z.length}ge=null,Ge=!1,ud(t)}}function pd(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Z.push(new us(t,e)),Z.length===1&&!Ge&&as(ss)}function us(t,e){this.fun=t,this.array=e}function ve(){}function Id(t){throw new Error("process.binding is not supported")}function Nd(){return"/"}function Pd(t){throw new Error("process.chdir is not supported")}function Fd(){return 0}function Cd(t){var e=Od.call(We)*.001,r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r=r-t[0],n=n-t[1],n<0&&(r--,n+=1e9)),[r,n]}function Ld(){var t=new Date,e=t-kd;return e/1e3}var ie,oe,Z,Ge,ge,Xr,fd,cd,dd,yd,md,hd,gd,vd,xd,wd,bd,Ad,Sd,Td,Rd,Ed,We,Od,kd,Ud,or,ls=Oe(()=>{"use strict";a();s();ie=is,oe=os;typeof globalThis.setTimeout=="function"&&(ie=setTimeout);typeof globalThis.clearTimeout=="function"&&(oe=clearTimeout);Z=[],Ge=!1,Xr=-1;us.prototype.run=function(){this.fun.apply(null,this.array)};fd="browser",cd="browser",dd=!0,yd={},md=[],hd="",gd={},vd={},xd={};wd=ve,bd=ve,Ad=ve,Sd=ve,Td=ve,Rd=ve,Ed=ve;We=globalThis.performance||{},Od=We.now||We.mozNow||We.msNow||We.oNow||We.webkitNow||function(){return new Date().getTime()};kd=new Date;Ud={nextTick:pd,title:fd,browser:dd,env:yd,argv:md,version:hd,versions:gd,on:wd,addListener:bd,once:Ad,off:Sd,removeListener:Td,removeAllListeners:Rd,emit:Ed,binding:Id,cwd:Nd,chdir:Pd,umask:Fd,hrtime:Cd,platform:cd,release:vd,config:xd,uptime:Ld},or=Ud});var cn,dn,ps=Oe(()=>{"use strict";a();s();typeof Object.create=="function"?cn=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:cn=function(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e};dn=cn});var vs={};kt(vs,{_extend:()=>An,debuglog:()=>fs,default:()=>Vd,deprecate:()=>vn,format:()=>tt,inherits:()=>dn,inspect:()=>G,isArray:()=>xn,isBoolean:()=>nt,isBuffer:()=>ms,isDate:()=>rt,isError:()=>sr,isFunction:()=>ur,isNull:()=>lr,isNullOrUndefined:()=>cs,isNumber:()=>wn,isObject:()=>xe,isPrimitive:()=>ys,isRegExp:()=>ar,isString:()=>pr,isSymbol:()=>ds,isUndefined:()=>W,log:()=>hs});function tt(t){if(!pr(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(G(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,i=n.length,o=String(t).replace(Bd,function(p){if(p==="%%")return"%";if(r>=i)return p;switch(p){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(c){return"[Circular]"}default:return p}}),u=n[r];r<i;u=n[++r])lr(u)||!xe(u)?o+=" "+u:o+=" "+G(u);return o}function vn(t,e){if(W(globalThis.process))return function(){return vn(t,e).apply(this,arguments)};if(or.noDeprecation===!0)return t;var r=!1;function n(){if(!r){if(or.throwDeprecation)throw new Error(e);or.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return n}function fs(t){if(W(yn)&&(yn=or.env.NODE_DEBUG||""),t=t.toUpperCase(),!Qr[t])if(new RegExp("\\b"+t+"\\b","i").test(yn)){var e=0;Qr[t]=function(){var r=tt.apply(null,arguments);console.error("%s %d: %s",t,e,r)}}else Qr[t]=function(){};return Qr[t]}function G(t,e){var r={seen:[],stylize:qd};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),nt(e)?r.showHidden=e:e&&An(r,e),W(r.showHidden)&&(r.showHidden=!1),W(r.depth)&&(r.depth=2),W(r.colors)&&(r.colors=!1),W(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Md),et(r,t,r.depth)}function Md(t,e){var r=G.styles[e];return r?"\x1B["+G.colors[r][0]+"m"+t+"\x1B["+G.colors[r][1]+"m":t}function qd(t,e){return t}function $d(t){var e={};return t.forEach(function(r,n){e[r]=!0}),e}function et(t,e,r){if(t.customInspect&&e&&ur(e.inspect)&&e.inspect!==G&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(r,t);return pr(n)||(n=et(t,n,r)),n}var i=_d(t,e);if(i)return i;var o=Object.keys(e),u=$d(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),sr(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return mn(e);if(o.length===0){if(ur(e)){var p=e.name?": "+e.name:"";return t.stylize("[Function"+p+"]","special")}if(ar(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(rt(e))return t.stylize(Date.prototype.toString.call(e),"date");if(sr(e))return mn(e)}var c="",h=!1,g=["{","}"];if(xn(e)&&(h=!0,g=["[","]"]),ur(e)){var m=e.name?": "+e.name:"";c=" [Function"+m+"]"}if(ar(e)&&(c=" "+RegExp.prototype.toString.call(e)),rt(e)&&(c=" "+Date.prototype.toUTCString.call(e)),sr(e)&&(c=" "+mn(e)),o.length===0&&(!h||e.length==0))return g[0]+c+g[1];if(r<0)return ar(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var x;return h?x=jd(t,e,r,u,o):x=o.map(function(w){return gn(t,e,r,u,w,h)}),t.seen.pop(),Dd(x,c,g)}function _d(t,e){if(W(e))return t.stylize("undefined","undefined");if(pr(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(wn(e))return t.stylize(""+e,"number");if(nt(e))return t.stylize(""+e,"boolean");if(lr(e))return t.stylize("null","null")}function mn(t){return"["+Error.prototype.toString.call(t)+"]"}function jd(t,e,r,n,i){for(var o=[],u=0,p=e.length;u<p;++u)gs(e,String(u))?o.push(gn(t,e,r,n,String(u),!0)):o.push("");return i.forEach(function(c){c.match(/^\d+$/)||o.push(gn(t,e,r,n,c,!0))}),o}function gn(t,e,r,n,i,o){var u,p,c;if(c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},c.get?c.set?p=t.stylize("[Getter/Setter]","special"):p=t.stylize("[Getter]","special"):c.set&&(p=t.stylize("[Setter]","special")),gs(n,i)||(u="["+i+"]"),p||(t.seen.indexOf(c.value)<0?(lr(r)?p=et(t,c.value,null):p=et(t,c.value,r-1),p.indexOf(`
|
|
1
|
+
"use strict";var hp=Object.create;var Ke=Object.defineProperty,gp=Object.defineProperties,vp=Object.getOwnPropertyDescriptor,xp=Object.getOwnPropertyDescriptors,wp=Object.getOwnPropertyNames,Nr=Object.getOwnPropertySymbols,bp=Object.getPrototypeOf,Ct=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable;var Ot=(t,e,r)=>e in t?Ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,hi=(t,e)=>{for(var r in e||(e={}))Ct.call(e,r)&&Ot(t,r,e[r]);if(Nr)for(var r of Nr(e))mi.call(e,r)&&Ot(t,r,e[r]);return t},gi=(t,e)=>gp(t,xp(e));var vi=t=>typeof t=="symbol"?t:t+"",xi=(t,e)=>{var r={};for(var n in t)Ct.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Nr)for(var n of Nr(t))e.indexOf(n)<0&&mi.call(t,n)&&(r[n]=t[n]);return r};var Oe=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),kt=(t,e)=>{for(var r in e)Ke(t,r,{get:e[r],enumerable:!0})},wi=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of wp(e))!Ct.call(t,i)&&i!==r&&Ke(t,i,{get:()=>e[i],enumerable:!(n=vp(e,i))||n.enumerable});return t};var Ap=(t,e,r)=>(r=t!=null?hp(bp(t)):{},wi(e||!t||!t.__esModule?Ke(r,"default",{value:t,enumerable:!0}):r,t)),bi=t=>wi(Ke({},"__esModule",{value:!0}),t);var g=(t,e,r)=>Ot(t,typeof e!="symbol"?e+"":e,r);function Si(){throw new Error("setTimeout has not been defined")}function Ti(){throw new Error("clearTimeout has not been defined")}function Ri(t){if(te===setTimeout)return setTimeout(t,0);if((te===Si||!te)&&setTimeout)return te=setTimeout,setTimeout(t,0);try{return te(t,0)}catch(e){try{return te.call(null,t,0)}catch(r){return te.call(this,t,0)}}}function Sp(t){if(ne===clearTimeout)return clearTimeout(t);if((ne===Ti||!ne)&&clearTimeout)return ne=clearTimeout,clearTimeout(t);try{return ne(t)}catch(e){try{return ne.call(null,t)}catch(r){return ne.call(this,t)}}}function Tp(){!ke||!pe||(ke=!1,pe.length?J=pe.concat(J):Fr=-1,J.length&&Ei())}function Ei(){if(!ke){var t=Ri(Tp);ke=!0;for(var e=J.length;e;){for(pe=J,J=[];++Fr<e;)pe&&pe[Fr].run();Fr=-1,e=J.length}pe=null,ke=!1,Sp(t)}}function Rp(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];J.push(new Ii(t,e)),J.length===1&&!ke&&Ri(Ei)}function Ii(t,e){this.fun=t,this.array=e}function fe(){}function jp(t){throw new Error("process.binding is not supported")}function Wp(){return"/"}function Gp(t){throw new Error("process.chdir is not supported")}function Vp(){return 0}function Yp(t){var e=zp.call(Ce)*.001,r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r=r-t[0],n=n-t[1],n<0&&(r--,n+=1e9)),[r,n]}function Jp(){var t=new Date,e=t-Hp;return e/1e3}var te,ne,J,ke,pe,Fr,Ep,Ip,Pp,Np,Fp,Op,Cp,kp,Lp,Up,Bp,Mp,qp,$p,_p,Dp,Ce,zp,Hp,f,Ai,a=Oe(()=>{"use strict";te=Si,ne=Ti;typeof globalThis.setTimeout=="function"&&(te=setTimeout);typeof globalThis.clearTimeout=="function"&&(ne=clearTimeout);J=[],ke=!1,Fr=-1;Ii.prototype.run=function(){this.fun.apply(null,this.array)};Ep="browser",Ip="browser",Pp=!0,Np={},Fp=[],Op="",Cp={},kp={},Lp={};Up=fe,Bp=fe,Mp=fe,qp=fe,$p=fe,_p=fe,Dp=fe;Ce=globalThis.performance||{},zp=Ce.now||Ce.mozNow||Ce.msNow||Ce.oNow||Ce.webkitNow||function(){return new Date().getTime()};Hp=new Date;f={nextTick:Rp,title:Ep,browser:Pp,env:Np,argv:Fp,version:Op,versions:Cp,on:Up,addListener:Bp,once:Mp,off:qp,removeListener:$p,removeAllListeners:_p,emit:Dp,binding:jp,cwd:Wp,chdir:Gp,umask:Vp,hrtime:Yp,platform:Ip,release:kp,config:Lp,uptime:Jp},Ai={};Object.keys(Ai).forEach(t=>{let e=t.split("."),r=f;for(let n=0;n<e.length;n++){let i=e[n];n===e.length-1?r[i]=Ai[t]:r=r[i]||(r[i]={})}})});function Oi(){Ut=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)_[e]=t[e],q[t.charCodeAt(e)]=e;q[45]=62,q[95]=63}function Zp(t){Ut||Oi();var e,r,n,i,o,u,p=t.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=t[p-2]==="="?2:t[p-1]==="="?1:0,u=new Kp(p*3/4-o),n=o>0?p-4:p;var c=0;for(e=0,r=0;e<n;e+=4,r+=3)i=q[t.charCodeAt(e)]<<18|q[t.charCodeAt(e+1)]<<12|q[t.charCodeAt(e+2)]<<6|q[t.charCodeAt(e+3)],u[c++]=i>>16&255,u[c++]=i>>8&255,u[c++]=i&255;return o===2?(i=q[t.charCodeAt(e)]<<2|q[t.charCodeAt(e+1)]>>4,u[c++]=i&255):o===1&&(i=q[t.charCodeAt(e)]<<10|q[t.charCodeAt(e+1)]<<4|q[t.charCodeAt(e+2)]>>2,u[c++]=i>>8&255,u[c++]=i&255),u}function Xp(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function Qp(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(Xp(n));return i.join("")}function Pi(t){Ut||Oi();for(var e,r=t.length,n=r%3,i="",o=[],u=16383,p=0,c=r-n;p<c;p+=u)o.push(Qp(t,p,p+u>c?c:p+u));return n===1?(e=t[r-1],i+=_[e>>2],i+=_[e<<4&63],i+="=="):n===2&&(e=(t[r-2]<<8)+t[r-1],i+=_[e>>10],i+=_[e>>4&63],i+=_[e<<2&63],i+="="),o.push(i),o.join("")}function Or(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function K(t,e){if(Or()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=l.prototype):(t===null&&(t=new l(e)),t.length=e),t}function l(t,e,r){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(t,e,r);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return Bt(this,t)}return Ci(this,t,e,r)}function Ci(t,e,r,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer?tf(t,e,r,n):typeof e=="string"?rf(t,e,r):nf(t,e)}function ki(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function ef(t,e,r,n){return ki(e),e<=0?K(t,e):r!==void 0?typeof n=="string"?K(t,e).fill(r,n):K(t,e).fill(r):K(t,e)}function Bt(t,e){if(ki(e),t=K(t,e<0?0:Mt(e)|0),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function rf(t,e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=Li(e,r)|0;t=K(t,n);var i=t.write(e,r);return i!==n&&(t=t.slice(0,i)),t}function Lt(t,e){var r=e.length<0?0:Mt(e.length)|0;t=K(t,r);for(var n=0;n<r;n+=1)t[n]=e[n]&255;return t}function tf(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?e=new Uint8Array(e):n===void 0?e=new Uint8Array(e,r):e=new Uint8Array(e,r,n),l.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=l.prototype):t=Lt(t,e),t}function nf(t,e){if(D(e)){var r=Mt(e.length)|0;return t=K(t,r),t.length===0||e.copy(t,0,0,r),t}if(e){if(typeof ArrayBuffer!="undefined"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Sf(e.length)?K(t,0):Lt(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return Lt(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Mt(t){if(t>=Or())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Or().toString(16)+" bytes");return t|0}function D(t){return!!(t!=null&&t._isBuffer)}function Li(t,e){if(D(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var r=t.length;if(r===0)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Cr(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Di(t).length;default:if(n)return Cr(t).length;e=(""+e).toLowerCase(),n=!0}}function of(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return mf(this,e,r);case"utf8":case"utf-8":return Mi(this,e,r);case"ascii":return df(this,e,r);case"latin1":case"binary":return yf(this,e,r);case"base64":return ff(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hf(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function ce(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Ui(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=l.from(e,n)),D(e))return e.length===0?-1:Ni(t,e,r,n,i);if(typeof e=="number")return e=e&255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ni(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Ni(t,e,r,n,i){var o=1,u=t.length,p=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,u/=2,p/=2,r/=2}function c(w,R){return o===1?w[R]:w.readUInt16BE(R*o)}var v;if(i){var h=-1;for(v=r;v<u;v++)if(c(t,v)===c(e,h===-1?0:v-h)){if(h===-1&&(h=v),v-h+1===p)return h*o}else h!==-1&&(v-=v-h),h=-1}else for(r+p>u&&(r=u-p),v=r;v>=0;v--){for(var m=!0,x=0;x<p;x++)if(c(t,v+x)!==c(e,x)){m=!1;break}if(m)return v}return-1}function af(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u<n;++u){var p=parseInt(e.substr(u*2,2),16);if(isNaN(p))return u;t[r+u]=p}return u}function sf(t,e,r,n){return Ur(Cr(e,t.length-r),t,r,n)}function Bi(t,e,r,n){return Ur(bf(e),t,r,n)}function uf(t,e,r,n){return Bi(t,e,r,n)}function lf(t,e,r,n){return Ur(Di(e),t,r,n)}function pf(t,e,r,n){return Ur(Af(e,t.length-r),t,r,n)}function ff(t,e,r){return e===0&&r===t.length?Pi(t):Pi(t.slice(e,r))}function Mi(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],u=null,p=o>239?4:o>223?3:o>191?2:1;if(i+p<=r){var c,v,h,m;switch(p){case 1:o<128&&(u=o);break;case 2:c=t[i+1],(c&192)===128&&(m=(o&31)<<6|c&63,m>127&&(u=m));break;case 3:c=t[i+1],v=t[i+2],(c&192)===128&&(v&192)===128&&(m=(o&15)<<12|(c&63)<<6|v&63,m>2047&&(m<55296||m>57343)&&(u=m));break;case 4:c=t[i+1],v=t[i+2],h=t[i+3],(c&192)===128&&(v&192)===128&&(h&192)===128&&(m=(o&15)<<18|(c&63)<<12|(v&63)<<6|h&63,m>65535&&m<1114112&&(u=m))}}u===null?(u=65533,p=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=p}return cf(n)}function cf(t){var e=t.length;if(e<=Fi)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Fi));return r}function df(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function yf(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function mf(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=wf(t[o]);return i}function hf(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}function F(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,r,n,i,o){if(!D(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function kr(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function Lr(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>(n?i:3-i)*8&255}function qi(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $i(t,e,r,n,i){return i||qi(t,e,r,4,34028234663852886e22,-34028234663852886e22),Wi(t,e,r,n,23,4),r+4}function _i(t,e,r,n,i){return i||qi(t,e,r,8,17976931348623157e292,-17976931348623157e292),Wi(t,e,r,n,52,8),r+8}function vf(t){if(t=xf(t).replace(gf,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function xf(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function wf(t){return t<16?"0"+t.toString(16):t.toString(16)}function Cr(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],u=0;u<n;++u){if(r=t.charCodeAt(u),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function bf(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Af(t,e){for(var r,n,i,o=[],u=0;u<t.length&&!((e-=2)<0);++u)r=t.charCodeAt(u),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Di(t){return Zp(vf(t))}function Ur(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Sf(t){return t!==t}function Tf(t){return t!=null&&(!!t._isBuffer||ji(t)||Rf(t))}function ji(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Rf(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&ji(t.slice(0,0))}function Br(t,e,r,n,i){var o,u,p=i*8-n-1,c=(1<<p)-1,v=c>>1,h=-7,m=r?i-1:0,x=r?-1:1,w=t[e+m];for(m+=x,o=w&(1<<-h)-1,w>>=-h,h+=p;h>0;o=o*256+t[e+m],m+=x,h-=8);for(u=o&(1<<-h)-1,o>>=-h,h+=n;h>0;u=u*256+t[e+m],m+=x,h-=8);if(o===0)o=1-v;else{if(o===c)return u?NaN:(w?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-v}return(w?-1:1)*u*Math.pow(2,o-n)}function Wi(t,e,r,n,i,o){var u,p,c,v=o*8-i-1,h=(1<<v)-1,m=h>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,R=n?1:-1,I=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,u=h):(u=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+m>=1?e+=x/c:e+=x*Math.pow(2,1-m),e*c>=2&&(u++,c/=2),u+m>=h?(p=0,u=h):u+m>=1?(p=(e*c-1)*Math.pow(2,i),u=u+m):(p=e*Math.pow(2,m-1)*Math.pow(2,i),u=0));i>=8;t[r+w]=p&255,w+=R,p/=256,i-=8);for(u=u<<i|p,v+=i;v>0;t[r+w]=u&255,w+=R,u/=256,v-=8);t[r+w-R]|=I*128}var _,q,Kp,Ut,Fi,gf,Gi=Oe(()=>{"use strict";a();s();_=[],q=[],Kp=typeof Uint8Array!="undefined"?Uint8Array:Array,Ut=!1;l.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;l.poolSize=8192;l._augment=function(t){return t.__proto__=l.prototype,t};l.from=function(t,e,r){return Ci(null,t,e,r)};l.kMaxLength=Or();l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&l[Symbol.species]);l.alloc=function(t,e,r){return ef(null,t,e,r)};l.allocUnsafe=function(t){return Bt(null,t)};l.allocUnsafeSlow=function(t){return Bt(null,t)};l.isBuffer=Tf;l.compare=function(e,r){if(!D(e)||!D(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,i=r.length,o=0,u=Math.min(n,i);o<u;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};l.isEncoding=function(e){switch(String(e).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}};l.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=l.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var u=e[n];if(!D(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,o),o+=u.length}return i};l.byteLength=Li;l.prototype._isBuffer=!0;l.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)ce(this,r,r+1);return this};l.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)ce(this,r,r+3),ce(this,r+1,r+2);return this};l.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)ce(this,r,r+7),ce(this,r+1,r+6),ce(this,r+2,r+5),ce(this,r+3,r+4);return this};l.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?Mi(this,0,e):of.apply(this,arguments)};l.prototype.equals=function(e){if(!D(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.compare=function(e,r,n,i,o){if(!D(e))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var u=o-i,p=n-r,c=Math.min(u,p),v=this.slice(i,o),h=e.slice(r,n),m=0;m<c;++m)if(v[m]!==h[m]){u=v[m],p=h[m];break}return u<p?-1:p<u?1:0};l.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};l.prototype.indexOf=function(e,r,n){return Ui(this,e,r,n,!0)};l.prototype.lastIndexOf=function(e,r,n){return Ui(this,e,r,n,!1)};l.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return af(this,e,r,n);case"utf8":case"utf-8":return sf(this,e,r,n);case"ascii":return Bi(this,e,r,n);case"latin1":case"binary":return uf(this,e,r,n);case"base64":return lf(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pf(this,e,r,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};Fi=4096;l.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i;if(l.TYPED_ARRAY_SUPPORT)i=this.subarray(e,r),i.__proto__=l.prototype;else{var o=r-e;i=new l(o,void 0);for(var u=0;u<o;++u)i[u]=this[u+e]}return i};l.prototype.readUIntLE=function(e,r,n){e=e|0,r=r|0,n||F(e,r,this.length);for(var i=this[e],o=1,u=0;++u<r&&(o*=256);)i+=this[e+u]*o;return i};l.prototype.readUIntBE=function(e,r,n){e=e|0,r=r|0,n||F(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};l.prototype.readUInt8=function(e,r){return r||F(e,1,this.length),this[e]};l.prototype.readUInt16LE=function(e,r){return r||F(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUInt16BE=function(e,r){return r||F(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUInt32LE=function(e,r){return r||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUInt32BE=function(e,r){return r||F(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readIntLE=function(e,r,n){e=e|0,r=r|0,n||F(e,r,this.length);for(var i=this[e],o=1,u=0;++u<r&&(o*=256);)i+=this[e+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};l.prototype.readIntBE=function(e,r,n){e=e|0,r=r|0,n||F(e,r,this.length);for(var i=r,o=1,u=this[e+--i];i>0&&(o*=256);)u+=this[e+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*r)),u};l.prototype.readInt8=function(e,r){return r||F(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,r){r||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,r){r||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,r){return r||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,r){return r||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readFloatLE=function(e,r){return r||F(e,4,this.length),Br(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,r){return r||F(e,4,this.length),Br(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,r){return r||F(e,8,this.length),Br(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,r){return r||F(e,8,this.length),Br(this,e,!1,52,8)};l.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;U(this,e,r,n,o,0)}var u=1,p=0;for(this[r]=e&255;++p<n&&(u*=256);)this[r+p]=e/u&255;return r+n};l.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;U(this,e,r,n,o,0)}var u=n-1,p=1;for(this[r+u]=e&255;--u>=0&&(p*=256);)this[r+u]=e/p&255;return r+n};l.prototype.writeUInt8=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=e&255,r+1};l.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):kr(this,e,r,!0),r+2};l.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):kr(this,e,r,!1),r+2};l.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255):Lr(this,e,r,!0),r+4};l.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):Lr(this,e,r,!1),r+4};l.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r|0,!i){var o=Math.pow(2,8*n-1);U(this,e,r,n,o-1,-o)}var u=0,p=1,c=0;for(this[r]=e&255;++u<n&&(p*=256);)e<0&&c===0&&this[r+u-1]!==0&&(c=1),this[r+u]=(e/p>>0)-c&255;return r+n};l.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r|0,!i){var o=Math.pow(2,8*n-1);U(this,e,r,n,o-1,-o)}var u=n-1,p=1,c=0;for(this[r+u]=e&255;--u>=0&&(p*=256);)e<0&&c===0&&this[r+u+1]!==0&&(c=1),this[r+u]=(e/p>>0)-c&255;return r+n};l.prototype.writeInt8=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=e&255,r+1};l.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):kr(this,e,r,!0),r+2};l.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):kr(this,e,r,!1),r+2};l.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):Lr(this,e,r,!0),r+4};l.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r|0,n||U(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):Lr(this,e,r,!1),r+4};l.prototype.writeFloatLE=function(e,r,n){return $i(this,e,r,!0,n)};l.prototype.writeFloatBE=function(e,r,n){return $i(this,e,r,!1,n)};l.prototype.writeDoubleLE=function(e,r,n){return _i(this,e,r,!0,n)};l.prototype.writeDoubleBE=function(e,r,n){return _i(this,e,r,!1,n)};l.prototype.copy=function(e,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n,u;if(this===e&&n<r&&r<i)for(u=o-1;u>=0;--u)e[u+r]=this[u+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(u=0;u<o;++u)e[u+r]=this[u+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),r);return o};l.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),e.length===1){var o=e.charCodeAt(0);o<256&&(e=o)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var u;if(typeof e=="number")for(u=r;u<n;++u)this[u]=e;else{var p=D(e)?e:Cr(new l(e,i).toString()),c=p.length;for(u=0;u<n-r;++u)this[u+r]=p[u%c]}return this};gf=/[^+\/0-9A-Za-z-_]/g});var s=Oe(()=>{"use strict";Gi()});var Yi=y((Nv,zi)=>{"use strict";a();s();var Ef="Function.prototype.bind called on incompatible ",If=Object.prototype.toString,Pf=Math.max,Nf="[object Function]",Vi=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var o=0;o<r.length;o+=1)n[o+e.length]=r[o];return n},Ff=function(e,r){for(var n=[],i=r||0,o=0;i<e.length;i+=1,o+=1)n[o]=e[i];return n},Of=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};zi.exports=function(e){var r=this;if(typeof r!="function"||If.apply(r)!==Nf)throw new TypeError(Ef+r);for(var n=Ff(arguments,1),i,o=function(){if(this instanceof i){var h=r.apply(this,Vi(n,arguments));return Object(h)===h?h:this}return r.apply(e,Vi(n,arguments))},u=Pf(0,r.length-n.length),p=[],c=0;c<u;c++)p[c]="$"+c;if(i=Function("binder","return function ("+Of(p,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var v=function(){};v.prototype=r.prototype,i.prototype=new v,v.prototype=null}return i}});var de=y((Cv,Hi)=>{"use strict";a();s();var Cf=Yi();Hi.exports=Function.prototype.bind||Cf});var qt=y((Uv,Ji)=>{"use strict";a();s();Ji.exports=Error});var $t=y((qv,Ki)=>{"use strict";a();s();Ki.exports=EvalError});var _t=y((Dv,Zi)=>{"use strict";a();s();Zi.exports=RangeError});var Dt=y((Gv,Xi)=>{"use strict";a();s();Xi.exports=ReferenceError});var Mr=y((Yv,Qi)=>{"use strict";a();s();Qi.exports=SyntaxError});var N=y((Kv,eo)=>{"use strict";a();s();eo.exports=TypeError});var jt=y((Qv,ro)=>{"use strict";a();s();ro.exports=URIError});var no=y((tx,to)=>{"use strict";a();s();to.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0}});var Wt=y((ox,oo)=>{"use strict";a();s();var io=typeof Symbol!="undefined"&&Symbol,kf=no();oo.exports=function(){return typeof io!="function"||typeof Symbol!="function"||typeof io("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:kf()}});var so=y((ux,ao)=>{"use strict";a();s();var Gt={__proto__:null,foo:{}},Lf=Object;ao.exports=function(){return{__proto__:Gt}.foo===Gt.foo&&!(Gt instanceof Lf)}});var Vt=y((fx,uo)=>{"use strict";a();s();var Uf=Function.prototype.call,Bf=Object.prototype.hasOwnProperty,Mf=de();uo.exports=Mf.call(Uf,Bf)});var j=y((yx,yo)=>{"use strict";a();s();var b,qf=qt(),$f=$t(),_f=_t(),Df=Dt(),Me=Mr(),Be=N(),jf=jt(),co=Function,zt=function(t){try{return co('"use strict"; return ('+t+").constructor;")()}catch(e){}},ye=Object.getOwnPropertyDescriptor;if(ye)try{ye({},"")}catch(t){ye=null}var Yt=function(){throw new Be},Wf=ye?function(){try{return arguments.callee,Yt}catch(t){try{return ye(arguments,"callee").get}catch(e){return Yt}}}():Yt,Le=Wt()(),Gf=so()(),O=Object.getPrototypeOf||(Gf?function(t){return t.__proto__}:null),Ue={},Vf=typeof Uint8Array=="undefined"||!O?b:O(Uint8Array),me={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?b:ArrayBuffer,"%ArrayIteratorPrototype%":Le&&O?O([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":Ue,"%AsyncGenerator%":Ue,"%AsyncGeneratorFunction%":Ue,"%AsyncIteratorPrototype%":Ue,"%Atomics%":typeof Atomics=="undefined"?b:Atomics,"%BigInt%":typeof BigInt=="undefined"?b:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?b:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":qf,"%eval%":eval,"%EvalError%":$f,"%Float32Array%":typeof Float32Array=="undefined"?b:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?b:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?b:FinalizationRegistry,"%Function%":co,"%GeneratorFunction%":Ue,"%Int8Array%":typeof Int8Array=="undefined"?b:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?b:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Le&&O?O(O([][Symbol.iterator]())):b,"%JSON%":typeof JSON=="object"?JSON:b,"%Map%":typeof Map=="undefined"?b:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Le||!O?b:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?b:Promise,"%Proxy%":typeof Proxy=="undefined"?b:Proxy,"%RangeError%":_f,"%ReferenceError%":Df,"%Reflect%":typeof Reflect=="undefined"?b:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?b:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Le||!O?b:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Le&&O?O(""[Symbol.iterator]()):b,"%Symbol%":Le?Symbol:b,"%SyntaxError%":Me,"%ThrowTypeError%":Wf,"%TypedArray%":Vf,"%TypeError%":Be,"%Uint8Array%":typeof Uint8Array=="undefined"?b:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?b:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?b:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?b:Uint32Array,"%URIError%":jf,"%WeakMap%":typeof WeakMap=="undefined"?b:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?b:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?b:WeakSet};if(O)try{null.error}catch(t){lo=O(O(t)),me["%Error.prototype%"]=lo}var lo,zf=function t(e){var r;if(e==="%AsyncFunction%")r=zt("async function () {}");else if(e==="%GeneratorFunction%")r=zt("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=zt("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&O&&(r=O(i.prototype))}return me[e]=r,r},po={__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"]},Ze=de(),qr=Vt(),Yf=Ze.call(Function.call,Array.prototype.concat),Hf=Ze.call(Function.apply,Array.prototype.splice),fo=Ze.call(Function.call,String.prototype.replace),$r=Ze.call(Function.call,String.prototype.slice),Jf=Ze.call(Function.call,RegExp.prototype.exec),Kf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Zf=/\\(\\)?/g,Xf=function(e){var r=$r(e,0,1),n=$r(e,-1);if(r==="%"&&n!=="%")throw new Me("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Me("invalid intrinsic syntax, expected opening `%`");var i=[];return fo(e,Kf,function(o,u,p,c){i[i.length]=p?fo(c,Zf,"$1"):u||o}),i},Qf=function(e,r){var n=e,i;if(qr(po,n)&&(i=po[n],n="%"+i[0]+"%"),qr(me,n)){var o=me[n];if(o===Ue&&(o=zf(n)),typeof o=="undefined"&&!r)throw new Be("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Me("intrinsic "+e+" does not exist!")};yo.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new Be("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Be('"allowMissing" argument must be a boolean');if(Jf(/^%?[^%]*%?$/,e)===null)throw new Me("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Xf(e),i=n.length>0?n[0]:"",o=Qf("%"+i+"%",r),u=o.name,p=o.value,c=!1,v=o.alias;v&&(i=v[0],Hf(n,Yf([0,1],v)));for(var h=1,m=!0;h<n.length;h+=1){var x=n[h],w=$r(x,0,1),R=$r(x,-1);if((w==='"'||w==="'"||w==="`"||R==='"'||R==="'"||R==="`")&&w!==R)throw new Me("property names with quotes must have matching quotes");if((x==="constructor"||!m)&&(c=!0),i+="."+x,u="%"+i+"%",qr(me,u))p=me[u];else if(p!=null){if(!(x in p)){if(!r)throw new Be("base intrinsic for "+e+" exists, but the property is not available.");return}if(ye&&h+1>=n.length){var I=ye(p,x);m=!!I,m&&"get"in I&&!("originalValue"in I.get)?p=I.get:p=p[x]}else m=qr(p,x),p=p[x];m&&!c&&(me[u]=p)}}return p}});var Ht=y((gx,mo)=>{"use strict";a();s();mo.exports=Object});var go=y((wx,ho)=>{"use strict";a();s();ho.exports=Math.abs});var xo=y((Sx,vo)=>{"use strict";a();s();vo.exports=Math.floor});var bo=y((Ex,wo)=>{"use strict";a();s();wo.exports=Math.max});var So=y((Nx,Ao)=>{"use strict";a();s();Ao.exports=Math.min});var Ro=y((Cx,To)=>{"use strict";a();s();To.exports=Math.pow});var Io=y((Ux,Eo)=>{"use strict";a();s();Eo.exports=Math.round});var No=y((qx,Po)=>{"use strict";a();s();Po.exports=Number.isNaN||function(e){return e!==e}});var Oo=y((Dx,Fo)=>{"use strict";a();s();var ec=No();Fo.exports=function(e){return ec(e)||e===0?e:e<0?-1:1}});var ko=y((Gx,Co)=>{"use strict";a();s();Co.exports=Object.getOwnPropertyDescriptor});var Xe=y((Yx,Lo)=>{"use strict";a();s();var _r=ko();if(_r)try{_r([],"length")}catch(t){_r=null}Lo.exports=_r});var jr=y((Kx,Uo)=>{"use strict";a();s();var Dr=Object.defineProperty||!1;if(Dr)try{Dr({},"a",{value:1})}catch(t){Dr=!1}Uo.exports=Dr});var Jt=y((Qx,Bo)=>{"use strict";a();s();Bo.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(e,r);if(p.value!==i||p.enumerable!==!0)return!1}return!0}});var $o=y((t0,qo)=>{"use strict";a();s();var Mo=typeof Symbol!="undefined"&&Symbol,rc=Jt();qo.exports=function(){return typeof Mo!="function"||typeof Symbol!="function"||typeof Mo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:rc()}});var Kt=y((o0,_o)=>{"use strict";a();s();_o.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var Zt=y((u0,Do)=>{"use strict";a();s();var tc=Ht();Do.exports=tc.getPrototypeOf||null});var Wr=y((f0,jo)=>{"use strict";a();s();jo.exports=Function.prototype.call});var Xt=y((y0,Wo)=>{"use strict";a();s();Wo.exports=Function.prototype.apply});var Vo=y((g0,Go)=>{"use strict";a();s();Go.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var Yo=y((w0,zo)=>{"use strict";a();s();var nc=de(),ic=Xt(),oc=Wr(),ac=Vo();zo.exports=ac||nc.call(oc,ic)});var Jo=y((S0,Ho)=>{"use strict";a();s();var sc=de(),uc=N(),lc=Wr(),pc=Yo();Ho.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new uc("a function is required");return pc(sc,lc,e)}});var ra=y((E0,ea)=>{"use strict";a();s();var fc=Jo(),Ko=Xe(),Xo;try{Xo=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Qt=!!Xo&&Ko&&Ko(Object.prototype,"__proto__"),Qo=Object,Zo=Qo.getPrototypeOf;ea.exports=Qt&&typeof Qt.get=="function"?fc([Qt.get]):typeof Zo=="function"?function(e){return Zo(e==null?e:Qo(e))}:!1});var aa=y((N0,oa)=>{"use strict";a();s();var ta=Kt(),na=Zt(),ia=ra();oa.exports=ta?function(e){return ta(e)}:na?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return na(e)}:ia?function(e){return ia(e)}:null});var tn=y((C0,ca)=>{"use strict";a();s();var A,cc=Ht(),dc=qt(),yc=$t(),mc=_t(),hc=Dt(),De=Mr(),_e=N(),gc=jt(),vc=go(),xc=xo(),wc=bo(),bc=So(),Ac=Ro(),Sc=Io(),Tc=Oo(),pa=Function,en=function(t){try{return pa('"use strict"; return ('+t+").constructor;")()}catch(e){}},Qe=Xe(),Rc=jr(),rn=function(){throw new _e},Ec=Qe?function(){try{return arguments.callee,rn}catch(t){try{return Qe(arguments,"callee").get}catch(e){return rn}}}():rn,qe=$o()(),C=aa(),Ic=Zt(),Pc=Kt(),fa=Xt(),er=Wr(),$e={},Nc=typeof Uint8Array=="undefined"||!C?A:C(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?A:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?A:ArrayBuffer,"%ArrayIteratorPrototype%":qe&&C?C([][Symbol.iterator]()):A,"%AsyncFromSyncIteratorPrototype%":A,"%AsyncFunction%":$e,"%AsyncGenerator%":$e,"%AsyncGeneratorFunction%":$e,"%AsyncIteratorPrototype%":$e,"%Atomics%":typeof Atomics=="undefined"?A:Atomics,"%BigInt%":typeof BigInt=="undefined"?A:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?A:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?A:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?A:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":dc,"%eval%":eval,"%EvalError%":yc,"%Float32Array%":typeof Float32Array=="undefined"?A:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?A:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?A:FinalizationRegistry,"%Function%":pa,"%GeneratorFunction%":$e,"%Int8Array%":typeof Int8Array=="undefined"?A:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?A:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?A:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":qe&&C?C(C([][Symbol.iterator]())):A,"%JSON%":typeof JSON=="object"?JSON:A,"%Map%":typeof Map=="undefined"?A:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!qe||!C?A:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":cc,"%Object.getOwnPropertyDescriptor%":Qe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?A:Promise,"%Proxy%":typeof Proxy=="undefined"?A:Proxy,"%RangeError%":mc,"%ReferenceError%":hc,"%Reflect%":typeof Reflect=="undefined"?A:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?A:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!qe||!C?A:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?A:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":qe&&C?C(""[Symbol.iterator]()):A,"%Symbol%":qe?Symbol:A,"%SyntaxError%":De,"%ThrowTypeError%":Ec,"%TypedArray%":Nc,"%TypeError%":_e,"%Uint8Array%":typeof Uint8Array=="undefined"?A:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?A:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?A:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?A:Uint32Array,"%URIError%":gc,"%WeakMap%":typeof WeakMap=="undefined"?A:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?A:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?A:WeakSet,"%Function.prototype.call%":er,"%Function.prototype.apply%":fa,"%Object.defineProperty%":Rc,"%Object.getPrototypeOf%":Ic,"%Math.abs%":vc,"%Math.floor%":xc,"%Math.max%":wc,"%Math.min%":bc,"%Math.pow%":Ac,"%Math.round%":Sc,"%Math.sign%":Tc,"%Reflect.getPrototypeOf%":Pc};if(C)try{null.error}catch(t){sa=C(C(t)),he["%Error.prototype%"]=sa}var sa,Fc=function t(e){var r;if(e==="%AsyncFunction%")r=en("async function () {}");else if(e==="%GeneratorFunction%")r=en("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=en("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&C&&(r=C(i.prototype))}return he[e]=r,r},ua={__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"]},rr=de(),Gr=Vt(),Oc=rr.call(er,Array.prototype.concat),Cc=rr.call(fa,Array.prototype.splice),la=rr.call(er,String.prototype.replace),Vr=rr.call(er,String.prototype.slice),kc=rr.call(er,RegExp.prototype.exec),Lc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Uc=/\\(\\)?/g,Bc=function(e){var r=Vr(e,0,1),n=Vr(e,-1);if(r==="%"&&n!=="%")throw new De("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new De("invalid intrinsic syntax, expected opening `%`");var i=[];return la(e,Lc,function(o,u,p,c){i[i.length]=p?la(c,Uc,"$1"):u||o}),i},Mc=function(e,r){var n=e,i;if(Gr(ua,n)&&(i=ua[n],n="%"+i[0]+"%"),Gr(he,n)){var o=he[n];if(o===$e&&(o=Fc(n)),typeof o=="undefined"&&!r)throw new _e("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new De("intrinsic "+e+" does not exist!")};ca.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new _e("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _e('"allowMissing" argument must be a boolean');if(kc(/^%?[^%]*%?$/,e)===null)throw new De("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Bc(e),i=n.length>0?n[0]:"",o=Mc("%"+i+"%",r),u=o.name,p=o.value,c=!1,v=o.alias;v&&(i=v[0],Cc(n,Oc([0,1],v)));for(var h=1,m=!0;h<n.length;h+=1){var x=n[h],w=Vr(x,0,1),R=Vr(x,-1);if((w==='"'||w==="'"||w==="`"||R==='"'||R==="'"||R==="`")&&w!==R)throw new De("property names with quotes must have matching quotes");if((x==="constructor"||!m)&&(c=!0),i+="."+x,u="%"+i+"%",Gr(he,u))p=he[u];else if(p!=null){if(!(x in p)){if(!r)throw new _e("base intrinsic for "+e+" exists, but the property is not available.");return}if(Qe&&h+1>=n.length){var I=Qe(p,x);m=!!I,m&&"get"in I&&!("originalValue"in I.get)?p=I.get:p=p[x]}else m=Gr(p,x),p=p[x];m&&!c&&(he[u]=p)}}return p}});var nn=y((U0,ma)=>{"use strict";a();s();var da=jr(),qc=Mr(),je=N(),ya=Xe();ma.exports=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new je("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new je("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new je("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new je("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new je("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new je("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,c=!!ya&&ya(e,r);if(da)da(e,r,{configurable:u===null&&c?c.configurable:!u,enumerable:i===null&&c?c.enumerable:!i,value:n,writable:o===null&&c?c.writable:!o});else if(p||!i&&!o&&!u)e[r]=n;else throw new qc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var an=y((q0,ga)=>{"use strict";a();s();var on=jr(),ha=function(){return!!on};ha.hasArrayLengthDefineBug=function(){if(!on)return null;try{return on([],"length",{value:1}).length!==1}catch(e){return!0}};ga.exports=ha});var Aa=y((D0,ba)=>{"use strict";a();s();var $c=tn(),va=nn(),_c=an()(),xa=Xe(),wa=N(),Dc=$c("%Math.floor%");ba.exports=function(e,r){if(typeof e!="function")throw new wa("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Dc(r)!==r)throw new wa("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in e&&xa){var u=xa(e,"length");u&&!u.configurable&&(i=!1),u&&!u.writable&&(o=!1)}return(i||o||!n)&&(_c?va(e,"length",r,!0,!0):va(e,"length",r)),e}});var Ta=y((G0,Sa)=>{"use strict";a();s();var jc=tn(),zr=jc("%Object.defineProperty%",!0)||!1;if(zr)try{zr({},"a",{value:1})}catch(t){zr=!1}Sa.exports=zr});var Jr=y((Y0,Yr)=>{"use strict";a();s();var sn=de(),Hr=j(),Wc=Aa(),Gc=N(),Ia=Hr("%Function.prototype.apply%"),Pa=Hr("%Function.prototype.call%"),Na=Hr("%Reflect.apply%",!0)||sn.call(Pa,Ia),Ra=Ta(),Vc=Hr("%Math.max%");Yr.exports=function(e){if(typeof e!="function")throw new Gc("a function is required");var r=Na(sn,Pa,arguments);return Wc(r,1+Vc(0,e.length-(arguments.length-1)),!0)};var Ea=function(){return Na(sn,Ia,arguments)};Ra?Ra(Yr.exports,"apply",{value:Ea}):Yr.exports.apply=Ea});var un=y((K0,Oa)=>{"use strict";a();s();var Fa=Object.prototype.toString;Oa.exports=function(e){var r=Fa.call(e),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Fa.call(e.callee)==="[object Function]"),n}});var _a=y((Q0,$a)=>{"use strict";a();s();var qa;Object.keys||(tr=Object.prototype.hasOwnProperty,ln=Object.prototype.toString,Ca=un(),pn=Object.prototype.propertyIsEnumerable,ka=!pn.call({toString:null},"toString"),La=pn.call(function(){},"prototype"),nr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Kr=function(t){var e=t.constructor;return e&&e.prototype===t},Ua={$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},Ba=function(){if(typeof window=="undefined")return!1;for(var t in window)try{if(!Ua["$"+t]&&tr.call(window,t)&&window[t]!==null&&typeof window[t]=="object")try{Kr(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),Ma=function(t){if(typeof window=="undefined"||!Ba)return Kr(t);try{return Kr(t)}catch(e){return!1}},qa=function(e){var r=e!==null&&typeof e=="object",n=ln.call(e)==="[object Function]",i=Ca(e),o=r&&ln.call(e)==="[object String]",u=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var p=La&&n;if(o&&e.length>0&&!tr.call(e,0))for(var c=0;c<e.length;++c)u.push(String(c));if(i&&e.length>0)for(var v=0;v<e.length;++v)u.push(String(v));else for(var h in e)!(p&&h==="prototype")&&tr.call(e,h)&&u.push(String(h));if(ka)for(var m=Ma(e),x=0;x<nr.length;++x)!(m&&nr[x]==="constructor")&&tr.call(e,nr[x])&&u.push(nr[x]);return u});var tr,ln,Ca,pn,ka,La,nr,Kr,Ua,Ba,Ma;$a.exports=qa});var Ga=y((tw,Wa)=>{"use strict";a();s();var zc=Array.prototype.slice,Yc=un(),Da=Object.keys,Zr=Da?function(e){return Da(e)}:_a(),ja=Object.keys;Zr.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(n){return Yc(n)?ja(zc.call(n)):ja(n)})}else Object.keys=Zr;return Object.keys||Zr};Wa.exports=Zr});var ir=y((ow,Ha)=>{"use strict";a();s();var Hc=Ga(),Jc=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Kc=Object.prototype.toString,Zc=Array.prototype.concat,Va=nn(),Xc=function(t){return typeof t=="function"&&Kc.call(t)==="[object Function]"},za=an()(),Qc=function(t,e,r,n){if(e in t){if(n===!0){if(t[e]===r)return}else if(!Xc(n)||!n())return}za?Va(t,e,r,!0):Va(t,e,r)},Ya=function(t,e){var r=arguments.length>2?arguments[2]:{},n=Hc(e);Jc&&(n=Zc.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i<n.length;i+=1)Qc(t,n[i],e[n[i]],r[n[i]])};Ya.supportsDescriptors=!!za;Ha.exports=Ya});var $=y((uw,Za)=>{"use strict";a();s();var Ja=j(),Ka=Jr(),ed=Ka(Ja("String.prototype.indexOf"));Za.exports=function(e,r){var n=Ja(e,!!r);return typeof n=="function"&&ed(e,".prototype.")>-1?Ka(n):n}});var es=y((fw,Qa)=>{"use strict";a();s();var rd=j(),Xa=rd("%Array%"),td=!Xa.isArray&&$()("Object.prototype.toString");Qa.exports=Xa.isArray||function(e){return td(e)==="[object Array]"}});var fn=y((yw,rs)=>{"use strict";a();s();rs.exports=es()});var ns=y((gw,ts)=>{"use strict";a();s();var nd=j(),id=$(),od=N(),ad=fn(),sd=nd("%Reflect.apply%",!0)||id("Function.prototype.apply");ts.exports=function(e,r){var n=arguments.length>2?arguments[2]:[];if(!ad(n))throw new od("Assertion failed: optional `argumentsList`, if provided, must be a List");return sd(e,r,n)}});function is(){throw new Error("setTimeout has not been defined")}function os(){throw new Error("clearTimeout has not been defined")}function as(t){if(ie===setTimeout)return setTimeout(t,0);if((ie===is||!ie)&&setTimeout)return ie=setTimeout,setTimeout(t,0);try{return ie(t,0)}catch(e){try{return ie.call(null,t,0)}catch(r){return ie.call(this,t,0)}}}function ud(t){if(oe===clearTimeout)return clearTimeout(t);if((oe===os||!oe)&&clearTimeout)return oe=clearTimeout,clearTimeout(t);try{return oe(t)}catch(e){try{return oe.call(null,t)}catch(r){return oe.call(this,t)}}}function ld(){!Ge||!ge||(Ge=!1,ge.length?Z=ge.concat(Z):Xr=-1,Z.length&&ss())}function ss(){if(!Ge){var t=as(ld);Ge=!0;for(var e=Z.length;e;){for(ge=Z,Z=[];++Xr<e;)ge&&ge[Xr].run();Xr=-1,e=Z.length}ge=null,Ge=!1,ud(t)}}function pd(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Z.push(new us(t,e)),Z.length===1&&!Ge&&as(ss)}function us(t,e){this.fun=t,this.array=e}function ve(){}function Id(t){throw new Error("process.binding is not supported")}function Pd(){return"/"}function Nd(t){throw new Error("process.chdir is not supported")}function Fd(){return 0}function Cd(t){var e=Od.call(We)*.001,r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r=r-t[0],n=n-t[1],n<0&&(r--,n+=1e9)),[r,n]}function Ld(){var t=new Date,e=t-kd;return e/1e3}var ie,oe,Z,Ge,ge,Xr,fd,cd,dd,yd,md,hd,gd,vd,xd,wd,bd,Ad,Sd,Td,Rd,Ed,We,Od,kd,Ud,or,ls=Oe(()=>{"use strict";a();s();ie=is,oe=os;typeof globalThis.setTimeout=="function"&&(ie=setTimeout);typeof globalThis.clearTimeout=="function"&&(oe=clearTimeout);Z=[],Ge=!1,Xr=-1;us.prototype.run=function(){this.fun.apply(null,this.array)};fd="browser",cd="browser",dd=!0,yd={},md=[],hd="",gd={},vd={},xd={};wd=ve,bd=ve,Ad=ve,Sd=ve,Td=ve,Rd=ve,Ed=ve;We=globalThis.performance||{},Od=We.now||We.mozNow||We.msNow||We.oNow||We.webkitNow||function(){return new Date().getTime()};kd=new Date;Ud={nextTick:pd,title:fd,browser:dd,env:yd,argv:md,version:hd,versions:gd,on:wd,addListener:bd,once:Ad,off:Sd,removeListener:Td,removeAllListeners:Rd,emit:Ed,binding:Id,cwd:Pd,chdir:Nd,umask:Fd,hrtime:Cd,platform:cd,release:vd,config:xd,uptime:Ld},or=Ud});var cn,dn,ps=Oe(()=>{"use strict";a();s();typeof Object.create=="function"?cn=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:cn=function(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e};dn=cn});var vs={};kt(vs,{_extend:()=>An,debuglog:()=>fs,default:()=>Vd,deprecate:()=>vn,format:()=>tt,inherits:()=>dn,inspect:()=>G,isArray:()=>xn,isBoolean:()=>nt,isBuffer:()=>ms,isDate:()=>rt,isError:()=>sr,isFunction:()=>ur,isNull:()=>lr,isNullOrUndefined:()=>cs,isNumber:()=>wn,isObject:()=>xe,isPrimitive:()=>ys,isRegExp:()=>ar,isString:()=>pr,isSymbol:()=>ds,isUndefined:()=>W,log:()=>hs});function tt(t){if(!pr(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(G(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,i=n.length,o=String(t).replace(Bd,function(p){if(p==="%%")return"%";if(r>=i)return p;switch(p){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(c){return"[Circular]"}default:return p}}),u=n[r];r<i;u=n[++r])lr(u)||!xe(u)?o+=" "+u:o+=" "+G(u);return o}function vn(t,e){if(W(globalThis.process))return function(){return vn(t,e).apply(this,arguments)};if(or.noDeprecation===!0)return t;var r=!1;function n(){if(!r){if(or.throwDeprecation)throw new Error(e);or.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return n}function fs(t){if(W(yn)&&(yn=or.env.NODE_DEBUG||""),t=t.toUpperCase(),!Qr[t])if(new RegExp("\\b"+t+"\\b","i").test(yn)){var e=0;Qr[t]=function(){var r=tt.apply(null,arguments);console.error("%s %d: %s",t,e,r)}}else Qr[t]=function(){};return Qr[t]}function G(t,e){var r={seen:[],stylize:qd};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),nt(e)?r.showHidden=e:e&&An(r,e),W(r.showHidden)&&(r.showHidden=!1),W(r.depth)&&(r.depth=2),W(r.colors)&&(r.colors=!1),W(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Md),et(r,t,r.depth)}function Md(t,e){var r=G.styles[e];return r?"\x1B["+G.colors[r][0]+"m"+t+"\x1B["+G.colors[r][1]+"m":t}function qd(t,e){return t}function $d(t){var e={};return t.forEach(function(r,n){e[r]=!0}),e}function et(t,e,r){if(t.customInspect&&e&&ur(e.inspect)&&e.inspect!==G&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(r,t);return pr(n)||(n=et(t,n,r)),n}var i=_d(t,e);if(i)return i;var o=Object.keys(e),u=$d(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),sr(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return mn(e);if(o.length===0){if(ur(e)){var p=e.name?": "+e.name:"";return t.stylize("[Function"+p+"]","special")}if(ar(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(rt(e))return t.stylize(Date.prototype.toString.call(e),"date");if(sr(e))return mn(e)}var c="",v=!1,h=["{","}"];if(xn(e)&&(v=!0,h=["[","]"]),ur(e)){var m=e.name?": "+e.name:"";c=" [Function"+m+"]"}if(ar(e)&&(c=" "+RegExp.prototype.toString.call(e)),rt(e)&&(c=" "+Date.prototype.toUTCString.call(e)),sr(e)&&(c=" "+mn(e)),o.length===0&&(!v||e.length==0))return h[0]+c+h[1];if(r<0)return ar(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var x;return v?x=Dd(t,e,r,u,o):x=o.map(function(w){return gn(t,e,r,u,w,v)}),t.seen.pop(),jd(x,c,h)}function _d(t,e){if(W(e))return t.stylize("undefined","undefined");if(pr(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(wn(e))return t.stylize(""+e,"number");if(nt(e))return t.stylize(""+e,"boolean");if(lr(e))return t.stylize("null","null")}function mn(t){return"["+Error.prototype.toString.call(t)+"]"}function Dd(t,e,r,n,i){for(var o=[],u=0,p=e.length;u<p;++u)gs(e,String(u))?o.push(gn(t,e,r,n,String(u),!0)):o.push("");return i.forEach(function(c){c.match(/^\d+$/)||o.push(gn(t,e,r,n,c,!0))}),o}function gn(t,e,r,n,i,o){var u,p,c;if(c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},c.get?c.set?p=t.stylize("[Getter/Setter]","special"):p=t.stylize("[Getter]","special"):c.set&&(p=t.stylize("[Setter]","special")),gs(n,i)||(u="["+i+"]"),p||(t.seen.indexOf(c.value)<0?(lr(r)?p=et(t,c.value,null):p=et(t,c.value,r-1),p.indexOf(`
|
|
2
2
|
`)>-1&&(o?p=p.split(`
|
|
3
|
-
`).map(function(
|
|
3
|
+
`).map(function(v){return" "+v}).join(`
|
|
4
4
|
`).substr(2):p=`
|
|
5
5
|
`+p.split(`
|
|
6
|
-
`).map(function(
|
|
7
|
-
`))):p=t.stylize("[Circular]","special")),W(u)){if(o&&i.match(/^\d+$/))return p;u=JSON.stringify(""+i),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=t.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=t.stylize(u,"string"))}return u+": "+p}function
|
|
6
|
+
`).map(function(v){return" "+v}).join(`
|
|
7
|
+
`))):p=t.stylize("[Circular]","special")),W(u)){if(o&&i.match(/^\d+$/))return p;u=JSON.stringify(""+i),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=t.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=t.stylize(u,"string"))}return u+": "+p}function jd(t,e,r){var n=0,i=t.reduce(function(o,u){return n++,u.indexOf(`
|
|
8
8
|
`)>=0&&n++,o+u.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(e===""?"":e+`
|
|
9
9
|
`)+" "+t.join(`,
|
|
10
|
-
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function xn(t){return Array.isArray(t)}function nt(t){return typeof t=="boolean"}function lr(t){return t===null}function cs(t){return t==null}function wn(t){return typeof t=="number"}function pr(t){return typeof t=="string"}function ds(t){return typeof t=="symbol"}function W(t){return t===void 0}function ar(t){return xe(t)&&bn(t)==="[object RegExp]"}function xe(t){return typeof t=="object"&&t!==null}function rt(t){return xe(t)&&bn(t)==="[object Date]"}function sr(t){return xe(t)&&(bn(t)==="[object Error]"||t instanceof Error)}function ur(t){return typeof t=="function"}function ys(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t=="undefined"}function ms(t){return l.isBuffer(t)}function bn(t){return Object.prototype.toString.call(t)}function hn(t){return t<10?"0"+t.toString(10):t.toString(10)}function Gd(){var t=new Date,e=[hn(t.getHours()),hn(t.getMinutes()),hn(t.getSeconds())].join(":");return[t.getDate(),Wd[t.getMonth()],e].join(" ")}function hs(){console.log("%s - %s",Gd(),tt.apply(null,arguments))}function An(t,e){if(!e||!xe(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function gs(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Bd,Qr,yn,Wd,Vd,xs=Oe(()=>{"use strict";a();s();ls();ps();Bd=/%[sdj%]/g;Qr={};G.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]};G.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};Wd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Vd={inherits:dn,_extend:An,log:hs,isBuffer:ms,isPrimitive:ys,isFunction:ur,isError:sr,isDate:rt,isObject:xe,isRegExp:ar,isUndefined:W,isSymbol:ds,isString:pr,isNumber:wn,isNullOrUndefined:cs,isNull:lr,isBoolean:nt,isArray:xn,inspect:G,deprecate:vn,format:tt,debuglog:fs}});var ws=y((Fw,it)=>{"use strict";a();s();var we=(xs(),bi(vs));if(we&&we.default){it.exports=we.default;for(let t in we)it.exports[t]=we[t]}else we&&(it.exports=we)});var As=y((kw,bs)=>{"use strict";a();s();bs.exports=ws().inspect});var yr=y((Bw,Ds)=>{"use strict";a();s();var Cn=typeof Map=="function"&&Map.prototype,Sn=Object.getOwnPropertyDescriptor&&Cn?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,at=Cn&&Sn&&typeof Sn.get=="function"?Sn.get:null,Ss=Cn&&Map.prototype.forEach,kn=typeof Set=="function"&&Set.prototype,Tn=Object.getOwnPropertyDescriptor&&kn?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,st=kn&&Tn&&typeof Tn.get=="function"?Tn.get:null,Ts=kn&&Set.prototype.forEach,zd=typeof WeakMap=="function"&&WeakMap.prototype,cr=zd?WeakMap.prototype.has:null,Yd=typeof WeakSet=="function"&&WeakSet.prototype,dr=Yd?WeakSet.prototype.has:null,Hd=typeof WeakRef=="function"&&WeakRef.prototype,Rs=Hd?WeakRef.prototype.deref:null,Jd=Boolean.prototype.valueOf,Kd=Object.prototype.toString,Zd=Function.prototype.toString,Xd=String.prototype.match,Ln=String.prototype.slice,ae=String.prototype.replace,Qd=String.prototype.toUpperCase,Es=String.prototype.toLowerCase,Us=RegExp.prototype.test,Is=Array.prototype.concat,V=Array.prototype.join,ey=Array.prototype.slice,Ns=Math.floor,In=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Rn=Object.getOwnPropertySymbols,Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="object",k=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ve||!0)?Symbol.toStringTag:null,Bs=Object.prototype.propertyIsEnumerable,Ps=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Fs(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Us.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ns(-t):Ns(t);if(n!==t){var i=String(n),o=Ln.call(e,i.length+1);return ae.call(i,r,"$&_")+"."+ae.call(ae.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ae.call(e,r,"$&_")}var Pn=As(),Os=Pn.custom,Cs=$s(Os)?Os:null,Ms={__proto__:null,double:'"',single:"'"},ry={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ds.exports=function t(e,r,n,i){var o=r||{};if(X(o,"quoteStyle")&&!X(Ms,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=X(o,"customInspect")?o.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return js(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return p?Fs(e,c):c}if(typeof e=="bigint"){var h=String(e)+"n";return p?Fs(e,h):h}var g=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=g&&g>0&&typeof e=="object")return Fn(e)?"[Array]":"[Object]";var m=xy(o,n);if(typeof i=="undefined")i=[];else if(_s(i,e)>=0)return"[Circular]";function x(Fe,Nr,mp){if(Nr&&(i=ey.call(i),i.push(Nr)),mp){var yi={depth:o.depth};return X(o,"quoteStyle")&&(yi.quoteStyle=o.quoteStyle),t(Fe,yi,n+1,i)}return t(Fe,o,n+1,i)}if(typeof e=="function"&&!ks(e)){var w=py(e),R=ot(e,x);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(R.length>0?" { "+V.call(R,", ")+" }":"")}if($s(e)){var I=Ve?ae.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Nn.call(e);return typeof e=="object"&&!Ve?fr(I):I}if(hy(e)){for(var L="<"+Es.call(String(e.nodeName)),M=e.attributes||[],H=0;H<M.length;H++)L+=" "+M[H].name+"="+qs(ty(M[H].value),"double",o);return L+=">",e.childNodes&&e.childNodes.length&&(L+="..."),L+="</"+Es.call(String(e.nodeName))+">",L}if(Fn(e)){if(e.length===0)return"[]";var le=ot(e,x);return m&&!vy(le)?"["+On(le,m)+"]":"[ "+V.call(le,", ")+" ]"}if(iy(e)){var Je=ot(e,x);return!("cause"in Error.prototype)&&"cause"in e&&!Bs.call(e,"cause")?"{ ["+String(e)+"] "+V.call(Is.call("[cause]: "+x(e.cause),Je),", ")+" }":Je.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+V.call(Je,", ")+" }"}if(typeof e=="object"&&u){if(Cs&&typeof e[Cs]=="function"&&Pn)return Pn(e,{depth:g-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(fy(e)){var Ir=[];return Ss&&Ss.call(e,function(Fe,Nr){Ir.push(x(Nr,e,!0)+" => "+x(Fe,e))}),Ls("Map",at.call(e),Ir,m)}if(yy(e)){var fi=[];return Ts&&Ts.call(e,function(Fe){fi.push(x(Fe,e))}),Ls("Set",st.call(e),fi,m)}if(cy(e))return En("WeakMap");if(my(e))return En("WeakSet");if(dy(e))return En("WeakRef");if(ay(e))return fr(x(Number(e)));if(uy(e))return fr(x(In.call(e)));if(sy(e))return fr(Jd.call(e));if(oy(e))return fr(x(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof globalThis!="undefined"&&e===globalThis)return"{ [object globalThis] }";if(!ny(e)&&!ks(e)){var Nt=ot(e,x),ci=Ps?Ps(e)===Object.prototype:e instanceof Object||e.constructor===Object,Pt=e instanceof Object?"":"null prototype",di=!ci&&k&&Object(e)===e&&k in e?Ln.call(se(e),8,-1):Pt?"Object":"",yp=ci||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Ft=yp+(di||Pt?"["+V.call(Is.call([],di||[],Pt||[]),": ")+"] ":"");return Nt.length===0?Ft+"{}":m?Ft+"{"+On(Nt,m)+"}":Ft+"{ "+V.call(Nt,", ")+" }"}return String(e)};function qs(t,e,r){var n=r.quoteStyle||e,i=Ms[n];return i+t+i}function ty(t){return ae.call(String(t),/"/g,""")}function Fn(t){return se(t)==="[object Array]"&&(!k||!(typeof t=="object"&&k in t))}function ny(t){return se(t)==="[object Date]"&&(!k||!(typeof t=="object"&&k in t))}function ks(t){return se(t)==="[object RegExp]"&&(!k||!(typeof t=="object"&&k in t))}function iy(t){return se(t)==="[object Error]"&&(!k||!(typeof t=="object"&&k in t))}function oy(t){return se(t)==="[object String]"&&(!k||!(typeof t=="object"&&k in t))}function ay(t){return se(t)==="[object Number]"&&(!k||!(typeof t=="object"&&k in t))}function sy(t){return se(t)==="[object Boolean]"&&(!k||!(typeof t=="object"&&k in t))}function $s(t){if(Ve)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Nn)return!1;try{return Nn.call(t),!0}catch(e){}return!1}function uy(t){if(!t||typeof t!="object"||!In)return!1;try{return In.call(t),!0}catch(e){}return!1}var ly=Object.prototype.hasOwnProperty||function(t){return t in this};function X(t,e){return ly.call(t,e)}function se(t){return Kd.call(t)}function py(t){if(t.name)return t.name;var e=Xd.call(Zd.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function _s(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function fy(t){if(!at||!t||typeof t!="object")return!1;try{at.call(t);try{st.call(t)}catch(e){return!0}return t instanceof Map}catch(e){}return!1}function cy(t){if(!cr||!t||typeof t!="object")return!1;try{cr.call(t,cr);try{dr.call(t,dr)}catch(e){return!0}return t instanceof WeakMap}catch(e){}return!1}function dy(t){if(!Rs||!t||typeof t!="object")return!1;try{return Rs.call(t),!0}catch(e){}return!1}function yy(t){if(!st||!t||typeof t!="object")return!1;try{st.call(t);try{at.call(t)}catch(e){return!0}return t instanceof Set}catch(e){}return!1}function my(t){if(!dr||!t||typeof t!="object")return!1;try{dr.call(t,dr);try{cr.call(t,cr)}catch(e){return!0}return t instanceof WeakSet}catch(e){}return!1}function hy(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function js(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return js(Ln.call(t,0,e.maxStringLength),e)+n}var i=ry[e.quoteStyle||"single"];i.lastIndex=0;var o=ae.call(ae.call(t,i,"\\$1"),/[\x00-\x1f]/g,gy);return qs(o,"single",e)}function gy(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Qd.call(e.toString(16))}function fr(t){return"Object("+t+")"}function En(t){return t+" { ? }"}function Ls(t,e,r,n){var i=n?On(r,n):V.call(r,", ");return t+" ("+e+") {"+i+"}"}function vy(t){for(var e=0;e<t.length;e++)if(_s(t[e],`
|
|
10
|
+
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function xn(t){return Array.isArray(t)}function nt(t){return typeof t=="boolean"}function lr(t){return t===null}function cs(t){return t==null}function wn(t){return typeof t=="number"}function pr(t){return typeof t=="string"}function ds(t){return typeof t=="symbol"}function W(t){return t===void 0}function ar(t){return xe(t)&&bn(t)==="[object RegExp]"}function xe(t){return typeof t=="object"&&t!==null}function rt(t){return xe(t)&&bn(t)==="[object Date]"}function sr(t){return xe(t)&&(bn(t)==="[object Error]"||t instanceof Error)}function ur(t){return typeof t=="function"}function ys(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t=="undefined"}function ms(t){return l.isBuffer(t)}function bn(t){return Object.prototype.toString.call(t)}function hn(t){return t<10?"0"+t.toString(10):t.toString(10)}function Gd(){var t=new Date,e=[hn(t.getHours()),hn(t.getMinutes()),hn(t.getSeconds())].join(":");return[t.getDate(),Wd[t.getMonth()],e].join(" ")}function hs(){console.log("%s - %s",Gd(),tt.apply(null,arguments))}function An(t,e){if(!e||!xe(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function gs(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Bd,Qr,yn,Wd,Vd,xs=Oe(()=>{"use strict";a();s();ls();ps();Bd=/%[sdj%]/g;Qr={};G.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]};G.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};Wd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Vd={inherits:dn,_extend:An,log:hs,isBuffer:ms,isPrimitive:ys,isFunction:ur,isError:sr,isDate:rt,isObject:xe,isRegExp:ar,isUndefined:W,isSymbol:ds,isString:pr,isNumber:wn,isNullOrUndefined:cs,isNull:lr,isBoolean:nt,isArray:xn,inspect:G,deprecate:vn,format:tt,debuglog:fs}});var ws=y((Fw,it)=>{"use strict";a();s();var we=(xs(),bi(vs));if(we&&we.default){it.exports=we.default;for(let t in we)it.exports[t]=we[t]}else we&&(it.exports=we)});var As=y((kw,bs)=>{"use strict";a();s();bs.exports=ws().inspect});var yr=y((Bw,js)=>{"use strict";a();s();var Cn=typeof Map=="function"&&Map.prototype,Sn=Object.getOwnPropertyDescriptor&&Cn?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,at=Cn&&Sn&&typeof Sn.get=="function"?Sn.get:null,Ss=Cn&&Map.prototype.forEach,kn=typeof Set=="function"&&Set.prototype,Tn=Object.getOwnPropertyDescriptor&&kn?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,st=kn&&Tn&&typeof Tn.get=="function"?Tn.get:null,Ts=kn&&Set.prototype.forEach,zd=typeof WeakMap=="function"&&WeakMap.prototype,cr=zd?WeakMap.prototype.has:null,Yd=typeof WeakSet=="function"&&WeakSet.prototype,dr=Yd?WeakSet.prototype.has:null,Hd=typeof WeakRef=="function"&&WeakRef.prototype,Rs=Hd?WeakRef.prototype.deref:null,Jd=Boolean.prototype.valueOf,Kd=Object.prototype.toString,Zd=Function.prototype.toString,Xd=String.prototype.match,Ln=String.prototype.slice,ae=String.prototype.replace,Qd=String.prototype.toUpperCase,Es=String.prototype.toLowerCase,Us=RegExp.prototype.test,Is=Array.prototype.concat,V=Array.prototype.join,ey=Array.prototype.slice,Ps=Math.floor,In=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Rn=Object.getOwnPropertySymbols,Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="object",k=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ve||!0)?Symbol.toStringTag:null,Bs=Object.prototype.propertyIsEnumerable,Ns=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Fs(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Us.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ps(-t):Ps(t);if(n!==t){var i=String(n),o=Ln.call(e,i.length+1);return ae.call(i,r,"$&_")+"."+ae.call(ae.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ae.call(e,r,"$&_")}var Nn=As(),Os=Nn.custom,Cs=$s(Os)?Os:null,Ms={__proto__:null,double:'"',single:"'"},ry={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};js.exports=function t(e,r,n,i){var o=r||{};if(X(o,"quoteStyle")&&!X(Ms,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=X(o,"customInspect")?o.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ds(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return p?Fs(e,c):c}if(typeof e=="bigint"){var v=String(e)+"n";return p?Fs(e,v):v}var h=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=h&&h>0&&typeof e=="object")return Fn(e)?"[Array]":"[Object]";var m=xy(o,n);if(typeof i=="undefined")i=[];else if(_s(i,e)>=0)return"[Circular]";function x(Fe,Pr,mp){if(Pr&&(i=ey.call(i),i.push(Pr)),mp){var yi={depth:o.depth};return X(o,"quoteStyle")&&(yi.quoteStyle=o.quoteStyle),t(Fe,yi,n+1,i)}return t(Fe,o,n+1,i)}if(typeof e=="function"&&!ks(e)){var w=py(e),R=ot(e,x);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(R.length>0?" { "+V.call(R,", ")+" }":"")}if($s(e)){var I=Ve?ae.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Pn.call(e);return typeof e=="object"&&!Ve?fr(I):I}if(hy(e)){for(var L="<"+Es.call(String(e.nodeName)),M=e.attributes||[],H=0;H<M.length;H++)L+=" "+M[H].name+"="+qs(ty(M[H].value),"double",o);return L+=">",e.childNodes&&e.childNodes.length&&(L+="..."),L+="</"+Es.call(String(e.nodeName))+">",L}if(Fn(e)){if(e.length===0)return"[]";var le=ot(e,x);return m&&!vy(le)?"["+On(le,m)+"]":"[ "+V.call(le,", ")+" ]"}if(iy(e)){var Je=ot(e,x);return!("cause"in Error.prototype)&&"cause"in e&&!Bs.call(e,"cause")?"{ ["+String(e)+"] "+V.call(Is.call("[cause]: "+x(e.cause),Je),", ")+" }":Je.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+V.call(Je,", ")+" }"}if(typeof e=="object"&&u){if(Cs&&typeof e[Cs]=="function"&&Nn)return Nn(e,{depth:h-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(fy(e)){var Ir=[];return Ss&&Ss.call(e,function(Fe,Pr){Ir.push(x(Pr,e,!0)+" => "+x(Fe,e))}),Ls("Map",at.call(e),Ir,m)}if(yy(e)){var fi=[];return Ts&&Ts.call(e,function(Fe){fi.push(x(Fe,e))}),Ls("Set",st.call(e),fi,m)}if(cy(e))return En("WeakMap");if(my(e))return En("WeakSet");if(dy(e))return En("WeakRef");if(ay(e))return fr(x(Number(e)));if(uy(e))return fr(x(In.call(e)));if(sy(e))return fr(Jd.call(e));if(oy(e))return fr(x(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof globalThis!="undefined"&&e===globalThis)return"{ [object globalThis] }";if(!ny(e)&&!ks(e)){var Pt=ot(e,x),ci=Ns?Ns(e)===Object.prototype:e instanceof Object||e.constructor===Object,Nt=e instanceof Object?"":"null prototype",di=!ci&&k&&Object(e)===e&&k in e?Ln.call(se(e),8,-1):Nt?"Object":"",yp=ci||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Ft=yp+(di||Nt?"["+V.call(Is.call([],di||[],Nt||[]),": ")+"] ":"");return Pt.length===0?Ft+"{}":m?Ft+"{"+On(Pt,m)+"}":Ft+"{ "+V.call(Pt,", ")+" }"}return String(e)};function qs(t,e,r){var n=r.quoteStyle||e,i=Ms[n];return i+t+i}function ty(t){return ae.call(String(t),/"/g,""")}function Fn(t){return se(t)==="[object Array]"&&(!k||!(typeof t=="object"&&k in t))}function ny(t){return se(t)==="[object Date]"&&(!k||!(typeof t=="object"&&k in t))}function ks(t){return se(t)==="[object RegExp]"&&(!k||!(typeof t=="object"&&k in t))}function iy(t){return se(t)==="[object Error]"&&(!k||!(typeof t=="object"&&k in t))}function oy(t){return se(t)==="[object String]"&&(!k||!(typeof t=="object"&&k in t))}function ay(t){return se(t)==="[object Number]"&&(!k||!(typeof t=="object"&&k in t))}function sy(t){return se(t)==="[object Boolean]"&&(!k||!(typeof t=="object"&&k in t))}function $s(t){if(Ve)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Pn)return!1;try{return Pn.call(t),!0}catch(e){}return!1}function uy(t){if(!t||typeof t!="object"||!In)return!1;try{return In.call(t),!0}catch(e){}return!1}var ly=Object.prototype.hasOwnProperty||function(t){return t in this};function X(t,e){return ly.call(t,e)}function se(t){return Kd.call(t)}function py(t){if(t.name)return t.name;var e=Xd.call(Zd.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function _s(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function fy(t){if(!at||!t||typeof t!="object")return!1;try{at.call(t);try{st.call(t)}catch(e){return!0}return t instanceof Map}catch(e){}return!1}function cy(t){if(!cr||!t||typeof t!="object")return!1;try{cr.call(t,cr);try{dr.call(t,dr)}catch(e){return!0}return t instanceof WeakMap}catch(e){}return!1}function dy(t){if(!Rs||!t||typeof t!="object")return!1;try{return Rs.call(t),!0}catch(e){}return!1}function yy(t){if(!st||!t||typeof t!="object")return!1;try{st.call(t);try{at.call(t)}catch(e){return!0}return t instanceof Set}catch(e){}return!1}function my(t){if(!dr||!t||typeof t!="object")return!1;try{dr.call(t,dr);try{cr.call(t,cr)}catch(e){return!0}return t instanceof WeakSet}catch(e){}return!1}function hy(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Ds(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Ds(Ln.call(t,0,e.maxStringLength),e)+n}var i=ry[e.quoteStyle||"single"];i.lastIndex=0;var o=ae.call(ae.call(t,i,"\\$1"),/[\x00-\x1f]/g,gy);return qs(o,"single",e)}function gy(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Qd.call(e.toString(16))}function fr(t){return"Object("+t+")"}function En(t){return t+" { ? }"}function Ls(t,e,r,n){var i=n?On(r,n):V.call(r,", ");return t+" ("+e+") {"+i+"}"}function vy(t){for(var e=0;e<t.length;e++)if(_s(t[e],`
|
|
11
11
|
`)>=0)return!1;return!0}function xy(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=V.call(Array(t.indent+1)," ");else return null;return{base:r,prev:V.call(Array(e+1),r)}}function On(t,e){if(t.length===0)return"";var r=`
|
|
12
12
|
`+e.prev+e.base;return r+V.call(t,","+r)+`
|
|
13
|
-
`+e.prev}function ot(t,e){var r=Fn(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=X(t,i)?e(t[i],t):""}var o=typeof Rn=="function"?Rn(t):[],u;if(Ve){u={};for(var p=0;p<o.length;p++)u["$"+o[p]]=o[p]}for(var c in t)X(t,c)&&(r&&String(Number(c))===c&&c<t.length||Ve&&u["$"+c]instanceof Symbol||(Us.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof Rn=="function")for(var h=0;h<o.length;h++)Bs.call(t,o[h])&&n.push("["+e(o[h])+"]: "+e(t[o[h]],t));return n}});var ut=y(($w,Ws)=>{"use strict";a();s();Ws.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var Vs=y((Dw,Gs)=>{"use strict";a();s();var wy=P(),by=yr(),Ay=ut();Gs.exports=function(e,r){if(!Ay(r))throw new wy("Assertion failed: IsPropertyKey(P) is not true, got "+by(r));return e[r]}});var Js=y((Vw,Hs)=>{"use strict";a();s();var Ys=Function.prototype.toString,ze=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Bn,lt;if(typeof ze=="function"&&typeof Object.defineProperty=="function")try{Bn=Object.defineProperty({},"length",{get:function(){throw lt}}),lt={},ze(function(){throw 42},null,Bn)}catch(t){t!==lt&&(ze=null)}else ze=null;var Sy=/^\s*class\b/,Mn=function(e){try{var r=Ys.call(e);return Sy.test(r)}catch(n){return!1}},Un=function(e){try{return Mn(e)?!1:(Ys.call(e),!0)}catch(r){return!1}},pt=Object.prototype.toString,Ty="[object Object]",Ry="[object Function]",Ey="[object GeneratorFunction]",Iy="[object HTMLAllCollection]",Ny="[object HTML document.all class]",Py="[object HTMLCollection]",Fy=typeof Symbol=="function"&&!!Symbol.toStringTag,Oy=!(0 in[,]),qn=function(){return!1};typeof document=="object"&&(zs=document.all,pt.call(zs)===pt.call(document.all)&&(qn=function(e){if((Oy||!e)&&(typeof e=="undefined"||typeof e=="object"))try{var r=pt.call(e);return(r===Iy||r===Ny||r===Py||r===Ty)&&e("")==null}catch(n){}return!1}));var zs;Hs.exports=ze?function(e){if(qn(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ze(e,null,Bn)}catch(r){if(r!==lt)return!1}return!Mn(e)&&Un(e)}:function(e){if(qn(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Fy)return Un(e);if(Mn(e))return!1;var r=pt.call(e);return r!==Ry&&r!==Ey&&!/^\[object HTML/.test(r)?!1:Un(e)}});var $n=y((Hw,Ks)=>{"use strict";a();s();Ks.exports=Js()});var eu=y((Zw,Qs)=>{"use strict";a();s();var Zs=P(),Cy=Vs(),ky=$n(),Ly=ut(),Xs=yr();Qs.exports=function(e,r){if(!Ly(r))throw new Zs("Assertion failed: IsPropertyKey(P) is not true");var n=Cy(e,r);if(n!=null){if(!ky(n))throw new Zs(Xs(r)+" is not a function: "+Xs(n));return n}}});var tu=y((eb,ru)=>{"use strict";a();s();var Uy=Jt();ru.exports=function(){return Uy()&&!!Symbol.toStringTag}});var Wn=y((nb,au)=>{"use strict";a();s();var _n=$(),nu=tu()(),iu,ou,jn,Dn;nu&&(iu=_n("Object.prototype.hasOwnProperty"),ou=_n("RegExp.prototype.exec"),jn={},ft=function(){throw jn},Dn={toString:ft,valueOf:ft},typeof Symbol.toPrimitive=="symbol"&&(Dn[Symbol.toPrimitive]=ft));var ft,By=_n("Object.prototype.toString"),My=Object.getOwnPropertyDescriptor,qy="[object RegExp]";au.exports=nu?function(e){if(!e||typeof e!="object")return!1;var r=My(e,"lastIndex"),n=r&&iu(r,"value");if(!n)return!1;try{ou(e,Dn)}catch(i){return i===jn}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:By(e)===qy}});var Gn=y((ab,su)=>{"use strict";a();s();var $y=$(),_y=Wn(),jy=$y("RegExp.prototype.exec"),Dy=P();su.exports=function(e){if(!_y(e))throw new Dy("`regex` must be a RegExp");return function(n){return jy(e,n)!==null}}});var lu=y((lb,uu)=>{"use strict";a();s();uu.exports=function(e,r){for(var n=0;n<e.length;n+=1)if(!r(e[n],n,e))return!1;return!0}});var fu=y((cb,pu)=>{"use strict";a();s();pu.exports=function(e){if(e===null)return"Null";if(typeof e=="undefined")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"}});var Vn=y((mb,cu)=>{"use strict";a();s();var Wy=fu();cu.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":Wy(e)}});var mu=y((vb,yu)=>{"use strict";a();s();var du=P(),Gy=yr(),Vy=ut(),zy=Vn();yu.exports=function(e,r){if(zy(e)!=="Object")throw new du("Assertion failed: Type(O) is not Object");if(!Vy(r))throw new du("Assertion failed: IsPropertyKey(P) is not true, got "+Gy(r));return e[r]}});var gu=y((bb,hu)=>{"use strict";a();s();var Yy=D();hu.exports=Yy("%Math.min%")});var zn=y((Tb,vu)=>{"use strict";a();s();vu.exports=Number.isNaN||function(e){return e!==e}});var wu=y((Ib,xu)=>{"use strict";a();s();var Hy=zn();xu.exports=function(t){return(typeof t=="number"||typeof t=="bigint")&&!Hy(t)&&t!==1/0&&t!==-1/0}});var ct=y((Fb,Au)=>{"use strict";a();s();var bu=D(),Jy=bu("%Math.abs%"),Ky=bu("%Math.floor%"),Zy=zn(),Xy=wu();Au.exports=function(e){if(typeof e!="number"||Zy(e)||!Xy(e))return!1;var r=Jy(e);return Ky(r)===r}});var Hn=y((kb,Su)=>{"use strict";a();s();var Qy=$(),Yn=P(),em=ct(),rm=Qy("String.prototype.slice");Su.exports=function(e,r,n){if(typeof e!="string")throw new Yn("Assertion failed: `string` must be a String");if(typeof r!="string")throw new Yn("Assertion failed: `searchValue` must be a String");if(!em(n)||n<0)throw new Yn("Assertion failed: `fromIndex` must be a non-negative integer");var i=e.length;if(r===""&&n<=i)return n;for(var o=r.length,u=n;u<=i-o;u+=1){var p=rm(e,u,u+o);if(p===r)return u}return-1}});var dt=y((Bb,Tu)=>{"use strict";a();s();var tm=P();Tu.exports=function(e){if(e==null)throw new tm(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var yt=y(($b,Ru)=>{"use strict";a();s();var nm=D(),im=nm("%String%"),om=P();Ru.exports=function(e){if(typeof e=="symbol")throw new om("Cannot convert a Symbol value to a string");return im(e)}});var Jn=y((Db,Nu)=>{"use strict";a();s();var am=dt(),sm=yt(),um=$(),Eu=um("String.prototype.replace"),Iu=/^\s$/.test("\u180E"),lm=Iu?/^[\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]+/,pm=Iu?/[\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]+$/;Nu.exports=function(){var e=sm(am(this));return Eu(Eu(e,lm,""),pm,"")}});var Kn=y((Vb,Fu)=>{"use strict";a();s();var fm=Jn(),Pu="\u200B",Ye="\u180E";Fu.exports=function(){return String.prototype.trim&&Pu.trim()===Pu&&Ye.trim()===Ye&&("_"+Ye).trim()==="_"+Ye&&(Ye+"_").trim()===Ye+"_"?String.prototype.trim:fm}});var Cu=y((Hb,Ou)=>{"use strict";a();s();var cm=ir(),dm=Kn();Ou.exports=function(){var e=dm();return cm(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var Bu=y((Zb,Uu)=>{"use strict";a();s();var ym=Jr(),mm=ir(),hm=dt(),gm=Jn(),ku=Kn(),vm=Cu(),xm=ym(ku()),Lu=function(e){return hm(e),xm(e)};mm(Lu,{getPolyfill:ku,implementation:gm,shim:vm});Uu.exports=Lu});var _u=y((eA,$u)=>{"use strict";a();s();var Xn=D(),Zn=Xn("%Number%"),wm=Xn("%RegExp%"),bm=P(),Mu=Xn("%parseInt%"),Am=$(),mt=Gn(),qu=Am("String.prototype.slice"),Sm=mt(/^0b[01]+$/i),Tm=mt(/^0o[0-7]+$/i),Rm=mt(/^[-+]0x[0-9a-f]+$/i),Em=["\x85","\u200B","\uFFFE"].join(""),Im=new wm("["+Em+"]","g"),Nm=mt(Im),Pm=Bu();$u.exports=function t(e){if(typeof e!="string")throw new bm("Assertion failed: `argument` is not a String");if(Sm(e))return Zn(Mu(qu(e,2),2));if(Tm(e))return Zn(Mu(qu(e,2),8));if(Nm(e)||Rm(e))return NaN;var r=Pm(e);return r!==e?t(r):Zn(e)}});var Wu=y((nA,Du)=>{"use strict";a();s();var Fm=P(),ju=ct(),Om=$(),Cm=Om("String.prototype.slice");Du.exports=function(e,r,n){if(typeof e!="string"||!ju(r)||arguments.length>2&&!ju(n))throw new Fm("`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers");return Cm(e,r,arguments.length>2?n:e.length)}});var Vu=y((aA,Gu)=>{"use strict";a();s();Gu.exports=function(e){return typeof e=="string"||typeof e=="undefined"}});var Yu=y((lA,zu)=>{"use strict";a();s();var km=$()("String.prototype.slice");zu.exports=function(e,r){return e===r?!0:e.length>r.length?!1:km(r,0,e.length)===e}});var Xu=y((cA,Zu)=>{"use strict";a();s();var Q=P(),Ku=Gn(),Lm=lu(),Qn=yr(),Um=mu(),Bm=fn(),Mm=gu(),qm=Hn(),Hu=_u(),ee=Wu(),$m=yt(),Ju=Vn(),_m=ct(),jm=Vu(),mr=Yu(),Dm=Ku(/^\$[0-9]/),Wm=Ku(/^\$[0-9][0-9]/);Zu.exports=function(e,r,n,i,o,u){if(typeof e!="string")throw new Q("Assertion failed: `matched` must be a String");if(typeof r!="string")throw new Q("Assertion failed: `str` must be a String");if(!_m(n)||n<0)throw new Q("Assertion failed: `position` must be a nonnegative integer, got "+Qn(n));if(!Bm(i)||!Lm(i,jm))throw new Q("Assertion failed: `captures` must be a possibly-empty List of Strings or `undefined`, got "+Qn(i));if(typeof o!="undefined"&&Ju(o)!=="Object")throw new Q("Assertion failed: `namedCaptures` must be `undefined` or an Object");if(typeof u!="string")throw new Q("Assertion failed: `replacementTemplate` must be a String");var p=r.length;if(n>p)throw new Q("Assertion failed: position > stringLength, got "+Qn(n));for(var c=u,h="";c!=="";){var g,m,x;if(mr("$$",c))g="$$",m="$";else if(mr("$`",c))g="$`",m=ee(r,0,n);else if(mr("$&",c))g="$&",m=e;else if(mr("$'",c)){g="$'";var w=e.length,R=n+w;m=ee(r,Mm(R,p))}else if(Dm(c)){var I=Wm(c)?2:1,L=ee(c,1,1+I),M=Hu(L);if(M<0||M>99)throw new Q("Assertion failed: `index` must be >= 0 and <= 99");var H=i.length;M>H&&I===2&&(I=1,L=ee(L,0,1),M=Hu(L)),g=ee(c,0,1+I),1<=M&&M<=H?(x=i[M-1],typeof x=="undefined"?m="":m=x):m=g}else if(mr("$<",c)){var le=qm(c,">",0);if(le===-1||typeof o=="undefined")g="$<",m=g;else{g=ee(c,0,le+1);var Je=ee(c,2,le);if(Ju(o)!=="Object")throw new Q("Assertion failed: Type(namedCaptures) is not Object");x=Um(o,Je),typeof x=="undefined"?m="":m=$m(x)}}else g=ee(c,0,1),m=g;var Ir=g.length;c=ee(c,Ir),h+=m}return h}});var ri=y((mA,tl)=>{"use strict";a();s();var Qu=ns(),Gm=eu(),Vm=Xu(),zm=$n(),Ym=dt(),ht=yt(),el=Hn(),Hm=D(),gt=$(),Jm=Wt()(),Km=Wn(),Zm=Hm("%Math.max%"),rl=P(),Xm=gt("Array.prototype.push"),ei=gt("String.prototype.slice"),Qm=gt("String.prototype.indexOf"),eh=gt("String.prototype.replace");tl.exports=function(e,r){var n=Ym(this),i=Km(e);if(i&&Qm(ei(e,e.source.length+2),"g")===-1)throw new rl("use .replace for a non-global regex. NOTE: this may be allowed in the future.");if(Jm&&Symbol.replace){if(e!=null){var o=Gm(e,Symbol.replace);if(typeof o!="undefined")return Qu(o,e,[n,r])}}else if(i)return eh(n,e,r);var u=ht(n),p=ht(e),c=zm(r);c||(r=ht(r));for(var h=p.length,g=Zm(1,h),m=[],x=el(u,p,0);x!==-1;)Xm(m,x),x=el(u,p,x+g);for(var w=0,R="",I=0;I<m.length;I+=1){var L;if(c)L=ht(Qu(r,void 0,[p,m[I],u]));else{if(typeof r!="string")throw new rl("Assertion failed: `replaceValue` should be a string at this point");var M=[];L=Vm(p,u,m[I],M,void 0,r)}var H=ei(u,w,m[I]);R+=H+L,w=m[I]+h}return w<u.length&&(R+=ei(u,w)),R}});var ti=y((vA,nl)=>{"use strict";a();s();var rh=ri();nl.exports=function(){return String.prototype.replaceAll||rh}});var ol=y((bA,il)=>{"use strict";a();s();var th=ir(),nh=ti();il.exports=function(){var e=nh();return th(String.prototype,{replaceAll:e},{replaceAll:function(){return String.prototype.replaceAll!==e}}),e}});var ll=y((TA,ul)=>{"use strict";a();s();var ih=Jr(),oh=ir(),al=ri(),ah=ti(),sh=ol(),sl=ih(al);oh(sl,{getPolyfill:ah,implementation:al,shim:sh});ul.exports=sl});var bv={};kt(bv,{DynamicSnippetsGenerator:()=>It});module.exports=bi(bv);a();s();var IN=Ap(ll(),1);a();s();a();s();a();s();function S(t){throw new Error("Unexpected value: "+JSON.stringify(t))}a();s();function hr(t){return Object.keys(t)}a();s();a();s();a();s();a();s();a();s();a();s();var uh=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,pl=uh;var lh=typeof self=="object"&&self&&self.Object===Object&&self,ph=pl||lh||Function("return this")(),fl=ph;var fh=fl.Symbol,re=fh;a();s();var cl=Object.prototype,ch=cl.hasOwnProperty,dh=cl.toString,gr=re?re.toStringTag:void 0;function yh(t){var e=ch.call(t,gr),r=t[gr];try{t[gr]=void 0;var n=!0}catch(o){}var i=dh.call(t);return n&&(e?t[gr]=r:delete t[gr]),i}var dl=yh;a();s();var mh=Object.prototype,hh=mh.toString;function gh(t){return hh.call(t)}var yl=gh;var vh="[object Null]",xh="[object Undefined]",ml=re?re.toStringTag:void 0;function wh(t){return t==null?t===void 0?xh:vh:ml&&ml in Object(t)?dl(t):yl(t)}var hl=wh;a();s();function bh(t){return t!=null&&typeof t=="object"}var gl=bh;var Ah="[object Symbol]";function Sh(t){return typeof t=="symbol"||gl(t)&&hl(t)==Ah}var vl=Sh;a();s();a();s();function Th(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var xl=Th;a();s();var Rh=Array.isArray,wl=Rh;var Eh=1/0,bl=re?re.prototype:void 0,Al=bl?bl.toString:void 0;function Sl(t){if(typeof t=="string")return t;if(wl(t))return xl(t,Sl)+"";if(vl(t))return Al?Al.call(t):"";var e=t+"";return e=="0"&&1/t==-Eh?"-0":e}var Tl=Sl;a();s();function Ih(t){return t==null?"":Tl(t)}var ue=Ih;a();s();a();s();a();s();a();s();a();s();a();s();function Nh(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}var Rl=Nh;function Ph(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:Rl(t,e,r)}var El=Ph;a();s();var Fh="\\ud800-\\udfff",Oh="\\u0300-\\u036f",Ch="\\ufe20-\\ufe2f",kh="\\u20d0-\\u20ff",Lh=Oh+Ch+kh,Uh="\\ufe0e\\ufe0f",Bh="\\u200d",Mh=RegExp("["+Bh+Fh+Lh+Uh+"]");function qh(t){return Mh.test(t)}var vt=qh;a();s();a();s();function $h(t){return t.split("")}var Il=$h;a();s();var Nl="\\ud800-\\udfff",_h="\\u0300-\\u036f",jh="\\ufe20-\\ufe2f",Dh="\\u20d0-\\u20ff",Wh=_h+jh+Dh,Gh="\\ufe0e\\ufe0f",Vh="["+Nl+"]",ni="["+Wh+"]",ii="\\ud83c[\\udffb-\\udfff]",zh="(?:"+ni+"|"+ii+")",Pl="[^"+Nl+"]",Fl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ol="[\\ud800-\\udbff][\\udc00-\\udfff]",Yh="\\u200d",Cl=zh+"?",kl="["+Gh+"]?",Hh="(?:"+Yh+"(?:"+[Pl,Fl,Ol].join("|")+")"+kl+Cl+")*",Jh=kl+Cl+Hh,Kh="(?:"+[Pl+ni+"?",ni,Fl,Ol,Vh].join("|")+")",Zh=RegExp(ii+"(?="+ii+")|"+Kh+Jh,"g");function Xh(t){return t.match(Zh)||[]}var Ll=Xh;function Qh(t){return vt(t)?Ll(t):Il(t)}var Ul=Qh;function eg(t){return function(e){e=ue(e);var r=vt(e)?Ul(e):void 0,n=r?r[0]:e.charAt(0),i=r?El(r,1).join(""):e.slice(1);return n[t]()+i}}var Bl=eg;var rg=Bl("toUpperCase"),Ml=rg;function tg(t){return Ml(ue(t).toLowerCase())}var ql=tg;a();s();a();s();function ng(t,e,r,n){var i=-1,o=t==null?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}var $l=ng;a();s();a();s();a();s();function ig(t){return function(e){return t==null?void 0:t[e]}}var _l=ig;var og={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ag=_l(og),jl=ag;var sg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ug="\\u0300-\\u036f",lg="\\ufe20-\\ufe2f",pg="\\u20d0-\\u20ff",fg=ug+lg+pg,cg="["+fg+"]",dg=RegExp(cg,"g");function yg(t){return t=ue(t),t&&t.replace(sg,jl).replace(dg,"")}var Dl=yg;a();s();a();s();var mg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function hg(t){return t.match(mg)||[]}var Wl=hg;a();s();var gg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function vg(t){return gg.test(t)}var Gl=vg;a();s();var Jl="\\ud800-\\udfff",xg="\\u0300-\\u036f",wg="\\ufe20-\\ufe2f",bg="\\u20d0-\\u20ff",Ag=xg+wg+bg,Kl="\\u2700-\\u27bf",Zl="a-z\\xdf-\\xf6\\xf8-\\xff",Sg="\\xac\\xb1\\xd7\\xf7",Tg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rg="\\u2000-\\u206f",Eg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xl="A-Z\\xc0-\\xd6\\xd8-\\xde",Ig="\\ufe0e\\ufe0f",Ql=Sg+Tg+Rg+Eg,ep="['\u2019]",Vl="["+Ql+"]",Ng="["+Ag+"]",rp="\\d+",Pg="["+Kl+"]",tp="["+Zl+"]",np="[^"+Jl+Ql+rp+Kl+Zl+Xl+"]",Fg="\\ud83c[\\udffb-\\udfff]",Og="(?:"+Ng+"|"+Fg+")",Cg="[^"+Jl+"]",ip="(?:\\ud83c[\\udde6-\\uddff]){2}",op="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Xl+"]",kg="\\u200d",zl="(?:"+tp+"|"+np+")",Lg="(?:"+He+"|"+np+")",Yl="(?:"+ep+"(?:d|ll|m|re|s|t|ve))?",Hl="(?:"+ep+"(?:D|LL|M|RE|S|T|VE))?",ap=Og+"?",sp="["+Ig+"]?",Ug="(?:"+kg+"(?:"+[Cg,ip,op].join("|")+")"+sp+ap+")*",Bg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qg=sp+ap+Ug,$g="(?:"+[Pg,ip,op].join("|")+")"+qg,_g=RegExp([He+"?"+tp+"+"+Yl+"(?="+[Vl,He,"$"].join("|")+")",Lg+"+"+Hl+"(?="+[Vl,He+zl,"$"].join("|")+")",He+"?"+zl+"+"+Yl,He+"+"+Hl,Mg,Bg,rp,$g].join("|"),"g");function jg(t){return t.match(_g)||[]}var up=jg;function Dg(t,e,r){return t=ue(t),e=r?void 0:e,e===void 0?Gl(t)?up(t):Wl(t):t.match(e)||[]}var lp=Dg;var Wg="['\u2019]",Gg=RegExp(Wg,"g");function Vg(t){return function(e){return $l(lp(Dl(e).replace(Gg,"")),t,"")}}var pp=Vg;var zg=pp(function(t,e,r){return e=e.toLowerCase(),t+(r?ql(e):e)}),oi=zg;a();s();a();s();var be=class{};a();s();a();s();var z=class extends be{constructor(r){super();v(this,"value");this.value=r}write(r){typeof this.value=="string"?r.write(this.value):this.value(r)}};var Yg=4,vr=class{constructor(){v(this,"buffer","");v(this,"indentLevel",0);v(this,"hasWrittenAnything",!1);v(this,"lastCharacterIsSemicolon",!1);v(this,"lastCharacterIsNewline",!1)}write(e){let r=e.length>0&&e.endsWith(`
|
|
13
|
+
`+e.prev}function ot(t,e){var r=Fn(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=X(t,i)?e(t[i],t):""}var o=typeof Rn=="function"?Rn(t):[],u;if(Ve){u={};for(var p=0;p<o.length;p++)u["$"+o[p]]=o[p]}for(var c in t)X(t,c)&&(r&&String(Number(c))===c&&c<t.length||Ve&&u["$"+c]instanceof Symbol||(Us.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof Rn=="function")for(var v=0;v<o.length;v++)Bs.call(t,o[v])&&n.push("["+e(o[v])+"]: "+e(t[o[v]],t));return n}});var ut=y(($w,Ws)=>{"use strict";a();s();Ws.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var Vs=y((jw,Gs)=>{"use strict";a();s();var wy=N(),by=yr(),Ay=ut();Gs.exports=function(e,r){if(!Ay(r))throw new wy("Assertion failed: IsPropertyKey(P) is not true, got "+by(r));return e[r]}});var Js=y((Vw,Hs)=>{"use strict";a();s();var Ys=Function.prototype.toString,ze=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Bn,lt;if(typeof ze=="function"&&typeof Object.defineProperty=="function")try{Bn=Object.defineProperty({},"length",{get:function(){throw lt}}),lt={},ze(function(){throw 42},null,Bn)}catch(t){t!==lt&&(ze=null)}else ze=null;var Sy=/^\s*class\b/,Mn=function(e){try{var r=Ys.call(e);return Sy.test(r)}catch(n){return!1}},Un=function(e){try{return Mn(e)?!1:(Ys.call(e),!0)}catch(r){return!1}},pt=Object.prototype.toString,Ty="[object Object]",Ry="[object Function]",Ey="[object GeneratorFunction]",Iy="[object HTMLAllCollection]",Py="[object HTML document.all class]",Ny="[object HTMLCollection]",Fy=typeof Symbol=="function"&&!!Symbol.toStringTag,Oy=!(0 in[,]),qn=function(){return!1};typeof document=="object"&&(zs=document.all,pt.call(zs)===pt.call(document.all)&&(qn=function(e){if((Oy||!e)&&(typeof e=="undefined"||typeof e=="object"))try{var r=pt.call(e);return(r===Iy||r===Py||r===Ny||r===Ty)&&e("")==null}catch(n){}return!1}));var zs;Hs.exports=ze?function(e){if(qn(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ze(e,null,Bn)}catch(r){if(r!==lt)return!1}return!Mn(e)&&Un(e)}:function(e){if(qn(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Fy)return Un(e);if(Mn(e))return!1;var r=pt.call(e);return r!==Ry&&r!==Ey&&!/^\[object HTML/.test(r)?!1:Un(e)}});var $n=y((Hw,Ks)=>{"use strict";a();s();Ks.exports=Js()});var eu=y((Zw,Qs)=>{"use strict";a();s();var Zs=N(),Cy=Vs(),ky=$n(),Ly=ut(),Xs=yr();Qs.exports=function(e,r){if(!Ly(r))throw new Zs("Assertion failed: IsPropertyKey(P) is not true");var n=Cy(e,r);if(n!=null){if(!ky(n))throw new Zs(Xs(r)+" is not a function: "+Xs(n));return n}}});var tu=y((eb,ru)=>{"use strict";a();s();var Uy=Jt();ru.exports=function(){return Uy()&&!!Symbol.toStringTag}});var Wn=y((nb,au)=>{"use strict";a();s();var _n=$(),nu=tu()(),iu,ou,Dn,jn;nu&&(iu=_n("Object.prototype.hasOwnProperty"),ou=_n("RegExp.prototype.exec"),Dn={},ft=function(){throw Dn},jn={toString:ft,valueOf:ft},typeof Symbol.toPrimitive=="symbol"&&(jn[Symbol.toPrimitive]=ft));var ft,By=_n("Object.prototype.toString"),My=Object.getOwnPropertyDescriptor,qy="[object RegExp]";au.exports=nu?function(e){if(!e||typeof e!="object")return!1;var r=My(e,"lastIndex"),n=r&&iu(r,"value");if(!n)return!1;try{ou(e,jn)}catch(i){return i===Dn}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:By(e)===qy}});var Gn=y((ab,su)=>{"use strict";a();s();var $y=$(),_y=Wn(),Dy=$y("RegExp.prototype.exec"),jy=N();su.exports=function(e){if(!_y(e))throw new jy("`regex` must be a RegExp");return function(n){return Dy(e,n)!==null}}});var lu=y((lb,uu)=>{"use strict";a();s();uu.exports=function(e,r){for(var n=0;n<e.length;n+=1)if(!r(e[n],n,e))return!1;return!0}});var fu=y((cb,pu)=>{"use strict";a();s();pu.exports=function(e){if(e===null)return"Null";if(typeof e=="undefined")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"}});var Vn=y((mb,cu)=>{"use strict";a();s();var Wy=fu();cu.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":Wy(e)}});var mu=y((vb,yu)=>{"use strict";a();s();var du=N(),Gy=yr(),Vy=ut(),zy=Vn();yu.exports=function(e,r){if(zy(e)!=="Object")throw new du("Assertion failed: Type(O) is not Object");if(!Vy(r))throw new du("Assertion failed: IsPropertyKey(P) is not true, got "+Gy(r));return e[r]}});var gu=y((bb,hu)=>{"use strict";a();s();var Yy=j();hu.exports=Yy("%Math.min%")});var zn=y((Tb,vu)=>{"use strict";a();s();vu.exports=Number.isNaN||function(e){return e!==e}});var wu=y((Ib,xu)=>{"use strict";a();s();var Hy=zn();xu.exports=function(t){return(typeof t=="number"||typeof t=="bigint")&&!Hy(t)&&t!==1/0&&t!==-1/0}});var ct=y((Fb,Au)=>{"use strict";a();s();var bu=j(),Jy=bu("%Math.abs%"),Ky=bu("%Math.floor%"),Zy=zn(),Xy=wu();Au.exports=function(e){if(typeof e!="number"||Zy(e)||!Xy(e))return!1;var r=Jy(e);return Ky(r)===r}});var Hn=y((kb,Su)=>{"use strict";a();s();var Qy=$(),Yn=N(),em=ct(),rm=Qy("String.prototype.slice");Su.exports=function(e,r,n){if(typeof e!="string")throw new Yn("Assertion failed: `string` must be a String");if(typeof r!="string")throw new Yn("Assertion failed: `searchValue` must be a String");if(!em(n)||n<0)throw new Yn("Assertion failed: `fromIndex` must be a non-negative integer");var i=e.length;if(r===""&&n<=i)return n;for(var o=r.length,u=n;u<=i-o;u+=1){var p=rm(e,u,u+o);if(p===r)return u}return-1}});var dt=y((Bb,Tu)=>{"use strict";a();s();var tm=N();Tu.exports=function(e){if(e==null)throw new tm(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var yt=y(($b,Ru)=>{"use strict";a();s();var nm=j(),im=nm("%String%"),om=N();Ru.exports=function(e){if(typeof e=="symbol")throw new om("Cannot convert a Symbol value to a string");return im(e)}});var Jn=y((jb,Pu)=>{"use strict";a();s();var am=dt(),sm=yt(),um=$(),Eu=um("String.prototype.replace"),Iu=/^\s$/.test("\u180E"),lm=Iu?/^[\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]+/,pm=Iu?/[\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]+$/;Pu.exports=function(){var e=sm(am(this));return Eu(Eu(e,lm,""),pm,"")}});var Kn=y((Vb,Fu)=>{"use strict";a();s();var fm=Jn(),Nu="\u200B",Ye="\u180E";Fu.exports=function(){return String.prototype.trim&&Nu.trim()===Nu&&Ye.trim()===Ye&&("_"+Ye).trim()==="_"+Ye&&(Ye+"_").trim()===Ye+"_"?String.prototype.trim:fm}});var Cu=y((Hb,Ou)=>{"use strict";a();s();var cm=ir(),dm=Kn();Ou.exports=function(){var e=dm();return cm(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var Bu=y((Zb,Uu)=>{"use strict";a();s();var ym=Jr(),mm=ir(),hm=dt(),gm=Jn(),ku=Kn(),vm=Cu(),xm=ym(ku()),Lu=function(e){return hm(e),xm(e)};mm(Lu,{getPolyfill:ku,implementation:gm,shim:vm});Uu.exports=Lu});var _u=y((eA,$u)=>{"use strict";a();s();var Xn=j(),Zn=Xn("%Number%"),wm=Xn("%RegExp%"),bm=N(),Mu=Xn("%parseInt%"),Am=$(),mt=Gn(),qu=Am("String.prototype.slice"),Sm=mt(/^0b[01]+$/i),Tm=mt(/^0o[0-7]+$/i),Rm=mt(/^[-+]0x[0-9a-f]+$/i),Em=["\x85","\u200B","\uFFFE"].join(""),Im=new wm("["+Em+"]","g"),Pm=mt(Im),Nm=Bu();$u.exports=function t(e){if(typeof e!="string")throw new bm("Assertion failed: `argument` is not a String");if(Sm(e))return Zn(Mu(qu(e,2),2));if(Tm(e))return Zn(Mu(qu(e,2),8));if(Pm(e)||Rm(e))return NaN;var r=Nm(e);return r!==e?t(r):Zn(e)}});var Wu=y((nA,ju)=>{"use strict";a();s();var Fm=N(),Du=ct(),Om=$(),Cm=Om("String.prototype.slice");ju.exports=function(e,r,n){if(typeof e!="string"||!Du(r)||arguments.length>2&&!Du(n))throw new Fm("`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers");return Cm(e,r,arguments.length>2?n:e.length)}});var Vu=y((aA,Gu)=>{"use strict";a();s();Gu.exports=function(e){return typeof e=="string"||typeof e=="undefined"}});var Yu=y((lA,zu)=>{"use strict";a();s();var km=$()("String.prototype.slice");zu.exports=function(e,r){return e===r?!0:e.length>r.length?!1:km(r,0,e.length)===e}});var Xu=y((cA,Zu)=>{"use strict";a();s();var Q=N(),Ku=Gn(),Lm=lu(),Qn=yr(),Um=mu(),Bm=fn(),Mm=gu(),qm=Hn(),Hu=_u(),ee=Wu(),$m=yt(),Ju=Vn(),_m=ct(),Dm=Vu(),mr=Yu(),jm=Ku(/^\$[0-9]/),Wm=Ku(/^\$[0-9][0-9]/);Zu.exports=function(e,r,n,i,o,u){if(typeof e!="string")throw new Q("Assertion failed: `matched` must be a String");if(typeof r!="string")throw new Q("Assertion failed: `str` must be a String");if(!_m(n)||n<0)throw new Q("Assertion failed: `position` must be a nonnegative integer, got "+Qn(n));if(!Bm(i)||!Lm(i,Dm))throw new Q("Assertion failed: `captures` must be a possibly-empty List of Strings or `undefined`, got "+Qn(i));if(typeof o!="undefined"&&Ju(o)!=="Object")throw new Q("Assertion failed: `namedCaptures` must be `undefined` or an Object");if(typeof u!="string")throw new Q("Assertion failed: `replacementTemplate` must be a String");var p=r.length;if(n>p)throw new Q("Assertion failed: position > stringLength, got "+Qn(n));for(var c=u,v="";c!=="";){var h,m,x;if(mr("$$",c))h="$$",m="$";else if(mr("$`",c))h="$`",m=ee(r,0,n);else if(mr("$&",c))h="$&",m=e;else if(mr("$'",c)){h="$'";var w=e.length,R=n+w;m=ee(r,Mm(R,p))}else if(jm(c)){var I=Wm(c)?2:1,L=ee(c,1,1+I),M=Hu(L);if(M<0||M>99)throw new Q("Assertion failed: `index` must be >= 0 and <= 99");var H=i.length;M>H&&I===2&&(I=1,L=ee(L,0,1),M=Hu(L)),h=ee(c,0,1+I),1<=M&&M<=H?(x=i[M-1],typeof x=="undefined"?m="":m=x):m=h}else if(mr("$<",c)){var le=qm(c,">",0);if(le===-1||typeof o=="undefined")h="$<",m=h;else{h=ee(c,0,le+1);var Je=ee(c,2,le);if(Ju(o)!=="Object")throw new Q("Assertion failed: Type(namedCaptures) is not Object");x=Um(o,Je),typeof x=="undefined"?m="":m=$m(x)}}else h=ee(c,0,1),m=h;var Ir=h.length;c=ee(c,Ir),v+=m}return v}});var ri=y((mA,tl)=>{"use strict";a();s();var Qu=ns(),Gm=eu(),Vm=Xu(),zm=$n(),Ym=dt(),ht=yt(),el=Hn(),Hm=j(),gt=$(),Jm=Wt()(),Km=Wn(),Zm=Hm("%Math.max%"),rl=N(),Xm=gt("Array.prototype.push"),ei=gt("String.prototype.slice"),Qm=gt("String.prototype.indexOf"),eh=gt("String.prototype.replace");tl.exports=function(e,r){var n=Ym(this),i=Km(e);if(i&&Qm(ei(e,e.source.length+2),"g")===-1)throw new rl("use .replace for a non-global regex. NOTE: this may be allowed in the future.");if(Jm&&Symbol.replace){if(e!=null){var o=Gm(e,Symbol.replace);if(typeof o!="undefined")return Qu(o,e,[n,r])}}else if(i)return eh(n,e,r);var u=ht(n),p=ht(e),c=zm(r);c||(r=ht(r));for(var v=p.length,h=Zm(1,v),m=[],x=el(u,p,0);x!==-1;)Xm(m,x),x=el(u,p,x+h);for(var w=0,R="",I=0;I<m.length;I+=1){var L;if(c)L=ht(Qu(r,void 0,[p,m[I],u]));else{if(typeof r!="string")throw new rl("Assertion failed: `replaceValue` should be a string at this point");var M=[];L=Vm(p,u,m[I],M,void 0,r)}var H=ei(u,w,m[I]);R+=H+L,w=m[I]+v}return w<u.length&&(R+=ei(u,w)),R}});var ti=y((vA,nl)=>{"use strict";a();s();var rh=ri();nl.exports=function(){return String.prototype.replaceAll||rh}});var ol=y((bA,il)=>{"use strict";a();s();var th=ir(),nh=ti();il.exports=function(){var e=nh();return th(String.prototype,{replaceAll:e},{replaceAll:function(){return String.prototype.replaceAll!==e}}),e}});var ll=y((TA,ul)=>{"use strict";a();s();var ih=Jr(),oh=ir(),al=ri(),ah=ti(),sh=ol(),sl=ih(al);oh(sl,{getPolyfill:ah,implementation:al,shim:sh});ul.exports=sl});var bv={};kt(bv,{DynamicSnippetsGenerator:()=>It});module.exports=bi(bv);a();s();var IP=Ap(ll(),1);a();s();a();s();a();s();function S(t){throw new Error("Unexpected value: "+JSON.stringify(t))}a();s();function hr(t){return Object.keys(t)}a();s();a();s();a();s();a();s();a();s();a();s();var uh=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,pl=uh;var lh=typeof self=="object"&&self&&self.Object===Object&&self,ph=pl||lh||Function("return this")(),fl=ph;var fh=fl.Symbol,re=fh;a();s();var cl=Object.prototype,ch=cl.hasOwnProperty,dh=cl.toString,gr=re?re.toStringTag:void 0;function yh(t){var e=ch.call(t,gr),r=t[gr];try{t[gr]=void 0;var n=!0}catch(o){}var i=dh.call(t);return n&&(e?t[gr]=r:delete t[gr]),i}var dl=yh;a();s();var mh=Object.prototype,hh=mh.toString;function gh(t){return hh.call(t)}var yl=gh;var vh="[object Null]",xh="[object Undefined]",ml=re?re.toStringTag:void 0;function wh(t){return t==null?t===void 0?xh:vh:ml&&ml in Object(t)?dl(t):yl(t)}var hl=wh;a();s();function bh(t){return t!=null&&typeof t=="object"}var gl=bh;var Ah="[object Symbol]";function Sh(t){return typeof t=="symbol"||gl(t)&&hl(t)==Ah}var vl=Sh;a();s();a();s();function Th(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var xl=Th;a();s();var Rh=Array.isArray,wl=Rh;var Eh=1/0,bl=re?re.prototype:void 0,Al=bl?bl.toString:void 0;function Sl(t){if(typeof t=="string")return t;if(wl(t))return xl(t,Sl)+"";if(vl(t))return Al?Al.call(t):"";var e=t+"";return e=="0"&&1/t==-Eh?"-0":e}var Tl=Sl;a();s();function Ih(t){return t==null?"":Tl(t)}var ue=Ih;a();s();a();s();a();s();a();s();a();s();a();s();function Ph(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}var Rl=Ph;function Nh(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:Rl(t,e,r)}var El=Nh;a();s();var Fh="\\ud800-\\udfff",Oh="\\u0300-\\u036f",Ch="\\ufe20-\\ufe2f",kh="\\u20d0-\\u20ff",Lh=Oh+Ch+kh,Uh="\\ufe0e\\ufe0f",Bh="\\u200d",Mh=RegExp("["+Bh+Fh+Lh+Uh+"]");function qh(t){return Mh.test(t)}var vt=qh;a();s();a();s();function $h(t){return t.split("")}var Il=$h;a();s();var Pl="\\ud800-\\udfff",_h="\\u0300-\\u036f",Dh="\\ufe20-\\ufe2f",jh="\\u20d0-\\u20ff",Wh=_h+Dh+jh,Gh="\\ufe0e\\ufe0f",Vh="["+Pl+"]",ni="["+Wh+"]",ii="\\ud83c[\\udffb-\\udfff]",zh="(?:"+ni+"|"+ii+")",Nl="[^"+Pl+"]",Fl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ol="[\\ud800-\\udbff][\\udc00-\\udfff]",Yh="\\u200d",Cl=zh+"?",kl="["+Gh+"]?",Hh="(?:"+Yh+"(?:"+[Nl,Fl,Ol].join("|")+")"+kl+Cl+")*",Jh=kl+Cl+Hh,Kh="(?:"+[Nl+ni+"?",ni,Fl,Ol,Vh].join("|")+")",Zh=RegExp(ii+"(?="+ii+")|"+Kh+Jh,"g");function Xh(t){return t.match(Zh)||[]}var Ll=Xh;function Qh(t){return vt(t)?Ll(t):Il(t)}var Ul=Qh;function eg(t){return function(e){e=ue(e);var r=vt(e)?Ul(e):void 0,n=r?r[0]:e.charAt(0),i=r?El(r,1).join(""):e.slice(1);return n[t]()+i}}var Bl=eg;var rg=Bl("toUpperCase"),Ml=rg;function tg(t){return Ml(ue(t).toLowerCase())}var ql=tg;a();s();a();s();function ng(t,e,r,n){var i=-1,o=t==null?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}var $l=ng;a();s();a();s();a();s();function ig(t){return function(e){return t==null?void 0:t[e]}}var _l=ig;var og={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ag=_l(og),Dl=ag;var sg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ug="\\u0300-\\u036f",lg="\\ufe20-\\ufe2f",pg="\\u20d0-\\u20ff",fg=ug+lg+pg,cg="["+fg+"]",dg=RegExp(cg,"g");function yg(t){return t=ue(t),t&&t.replace(sg,Dl).replace(dg,"")}var jl=yg;a();s();a();s();var mg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function hg(t){return t.match(mg)||[]}var Wl=hg;a();s();var gg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function vg(t){return gg.test(t)}var Gl=vg;a();s();var Jl="\\ud800-\\udfff",xg="\\u0300-\\u036f",wg="\\ufe20-\\ufe2f",bg="\\u20d0-\\u20ff",Ag=xg+wg+bg,Kl="\\u2700-\\u27bf",Zl="a-z\\xdf-\\xf6\\xf8-\\xff",Sg="\\xac\\xb1\\xd7\\xf7",Tg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rg="\\u2000-\\u206f",Eg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xl="A-Z\\xc0-\\xd6\\xd8-\\xde",Ig="\\ufe0e\\ufe0f",Ql=Sg+Tg+Rg+Eg,ep="['\u2019]",Vl="["+Ql+"]",Pg="["+Ag+"]",rp="\\d+",Ng="["+Kl+"]",tp="["+Zl+"]",np="[^"+Jl+Ql+rp+Kl+Zl+Xl+"]",Fg="\\ud83c[\\udffb-\\udfff]",Og="(?:"+Pg+"|"+Fg+")",Cg="[^"+Jl+"]",ip="(?:\\ud83c[\\udde6-\\uddff]){2}",op="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Xl+"]",kg="\\u200d",zl="(?:"+tp+"|"+np+")",Lg="(?:"+He+"|"+np+")",Yl="(?:"+ep+"(?:d|ll|m|re|s|t|ve))?",Hl="(?:"+ep+"(?:D|LL|M|RE|S|T|VE))?",ap=Og+"?",sp="["+Ig+"]?",Ug="(?:"+kg+"(?:"+[Cg,ip,op].join("|")+")"+sp+ap+")*",Bg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qg=sp+ap+Ug,$g="(?:"+[Ng,ip,op].join("|")+")"+qg,_g=RegExp([He+"?"+tp+"+"+Yl+"(?="+[Vl,He,"$"].join("|")+")",Lg+"+"+Hl+"(?="+[Vl,He+zl,"$"].join("|")+")",He+"?"+zl+"+"+Yl,He+"+"+Hl,Mg,Bg,rp,$g].join("|"),"g");function Dg(t){return t.match(_g)||[]}var up=Dg;function jg(t,e,r){return t=ue(t),e=r?void 0:e,e===void 0?Gl(t)?up(t):Wl(t):t.match(e)||[]}var lp=jg;var Wg="['\u2019]",Gg=RegExp(Wg,"g");function Vg(t){return function(e){return $l(lp(jl(e).replace(Gg,"")),t,"")}}var pp=Vg;var zg=pp(function(t,e,r){return e=e.toLowerCase(),t+(r?ql(e):e)}),oi=zg;a();s();a();s();var be=class{};a();s();a();s();var z=class extends be{constructor(r){super();g(this,"value");this.value=r}write(r){typeof this.value=="string"?r.write(this.value):this.value(r)}};var Yg=4,vr=class{constructor(){g(this,"buffer","");g(this,"indentLevel",0);g(this,"hasWrittenAnything",!1);g(this,"lastCharacterIsSemicolon",!1);g(this,"lastCharacterIsNewline",!1)}write(e){let r=e.length>0&&e.endsWith(`
|
|
14
14
|
`),n=r?e.substring(0,e.length-1):e,i=this.getIndentString(),o=n.replaceAll(`
|
|
15
15
|
`,`
|
|
16
16
|
${i}`);this.isAtStartOfLine()&&(o=i+o),r&&(o+=`
|
|
17
17
|
`),this.writeInternal(o)}writeNoIndent(e){let r=this.indentLevel;this.indentLevel=0,this.write(e),this.indentLevel=r}writeNode(e){e.write(this)}writeNodeOrString(e){if(typeof e=="string"){this.write(e);return}this.writeNode(e)}writeNodeStatement(e){e.write(this),this.write(";"),this.writeNewLineIfLastLineNot()}writeTextStatement(e){new z(e).write(this),this.write(";"),this.writeNewLineIfLastLineNot()}controlFlow(e,r){new z(e).write(this),this.write(" ("),this.writeNode(r),this.write(") {"),this.writeNewLineIfLastLineNot(),this.indent()}endControlFlow(){this.dedent(),this.writeLine("}")}contiguousControlFlow(e,r){this.dedent(),this.write("} "),new z(e).write(this),this.write(" ("),this.writeNode(r),this.write(") {"),this.writeNewLineIfLastLineNot(),this.indent()}alternativeControlFlow(e){this.dedent(),this.write("} "),new z(e).write(this),this.write(" {"),this.writeNewLineIfLastLineNot(),this.indent()}openBlock(e,r="{",n,i="}"){let o=e.filter(u=>u!==void 0).join(" ");o?this.write(`${o} ${r!=null?r:""}`):this.write(r!=null?r:"");try{this.indent(),n(),this.dedent()}finally{this.write(i!=null?i:"")}}writeLine(e=""){this.write(e),this.writeNewLineIfLastLineNot()}newLine(){this.writeInternal(`
|
|
18
18
|
`)}writeSemicolonIfLastCharacterIsNot(){this.lastCharacterIsSemicolon||this.writeInternal(";")}writeNewLineIfLastLineNot(){this.lastCharacterIsNewline||this.writeInternal(`
|
|
19
19
|
`)}indent(){this.indentLevel++}dedent(){this.indentLevel--}delimit({nodes:e,delimiter:r,writeFunction:n}){if(e.length>0){let i=e[0];i!=null&&n(i);for(let o=1;o<e.length;o++){this.write(r);let u=e[o];u!=null&&n(u)}}}toString(){return this.buffer}writeInternal(e){return e.length>0&&(this.hasWrittenAnything=!0,this.lastCharacterIsNewline=e.endsWith(`
|
|
20
|
-
`),this.lastCharacterIsSemicolon=e.endsWith(";")),this.buffer+=e}isAtStartOfLine(){return this.lastCharacterIsNewline||!this.hasWrittenAnything}getIndentString(){return" ".repeat(this.indentLevel*Yg)}};a();s();var xt=class{},xr=class extends xt{async format(e){return e}formatSync(e){return e}};a();s();function ai(t){return(t==null?void 0:t.name)!=null}a();s();a();s();a();s();var wr=class{constructor(){v(this,"reporter");v(this,"snippet");v(this,"err");this.snippet=void 0,this.reporter=void 0,this.err=void 0}update({context:e,snippet:r}){this.shouldUpdate({snippet:r,reporter:e.errors})&&(this.reporter=e.errors.clone(),this.snippet=r)}getResponseOrThrow({endpoint:e}){var r;if(this.snippet!=null&&this.reporter!=null)return{snippet:this.snippet,errors:this.reporter.toDynamicSnippetErrors()};throw(r=this.err)!=null?r:new Error(`Failed to generate snippet for endpoint "${e.method} ${e.path}"`)}shouldUpdate({snippet:e,reporter:r}){var n,i;return this.reporter==null||this.reporter.size()>0&&r.size()===0?!0:e.length>((i=(n=this.snippet)==null?void 0:n.length)!=null?i:0)}};var br=class{constructor(e){v(this,"context");this.context=e}async generate(e,r={}){let n=this.context.resolveEndpointLocationOrThrow(e.endpoint);if(n.length===0)throw new Error(`No endpoints found that match "${e.endpoint.method} ${e.endpoint.path}"`);let i=new wr;for(let o of n){let u=this.context.clone(),p=this.createSnippetGenerator(u);try{let c=await p.generateSnippet({endpoint:o,request:e,options:r});if(u.errors.empty())return{snippet:c,errors:void 0};i.update({context:u,snippet:c})}catch(c){i.err==null&&(i.err=c)}}return i.getResponseOrThrow({endpoint:e.endpoint})}generateSync(e,r={}){let n=this.context.resolveEndpointLocationOrThrow(e.endpoint);if(n.length===0)throw new Error(`No endpoints found that match "${e.endpoint.method} ${e.endpoint.path}"`);let i=new wr;for(let o of n){let u=this.context.clone(),p=this.createSnippetGenerator(u);try{let c=p.generateSnippetSync({endpoint:o,request:e,options:r});if(u.errors.empty())return{snippet:c,errors:void 0};i.update({context:u,snippet:c})}catch(c){i.err==null&&(i.err=c)}}return i.getResponseOrThrow({endpoint:e.endpoint})}};a();s();a();s();a();s();var Ar=class{constructor(){v(this,"REFERENCE_REGEX",/^(GET|POST|PUT|DELETE|PATCH)\s(\/[a-zA-Z0-9\/{}_-]*)$/)}validate(e){return this.REFERENCE_REGEX.test(e)?{type:"valid"}:{type:"invalid"}}tryParse(e){if(this.validate(e).type==="invalid")return;let n=e.match(this.REFERENCE_REGEX);if(!(n==null||n[1]==null||n[2]==null))return{method:n[1],path:n[2]}}};a();s();var T={Critical:"CRITICAL",Warning:"WARNING"},Sr=class t{constructor(){v(this,"errors");v(this,"path");this.errors=[],this.path=[]}add(e){this.errors.push(gi(hi({},e),{path:[...this.path]}))}scope(e){this.path.push(e)}unscope(){this.path.pop()}getBySeverity(e){return this.errors.filter(r=>r.severity===e)}empty(){return this.errors.length===0}size(){return this.errors.length}clone(){let e=new t;return e.errors=[...this.errors],e.path=[...this.path],e}reset(){this.errors=[],this.path=[]}toDynamicSnippetErrors(){return this.errors.map(e=>({severity:e.severity,path:e.path!=null?this.pathToStringArray(e.path):void 0,message:e.message}))}pathToStringArray(e){let r=[];for(let n of e){if(typeof n=="string"){r.push(n);continue}r[r.length-1]+=`[${n.index}]`}return r}};var Tr=class{constructor({ir:e,config:r,options:n={}}){v(this,"config");v(this,"options");v(this,"errors");v(this,"_ir");v(this,"httpEndpointReferenceParser");this._ir=e,this.config=r,this.options=n,this.errors=new Sr,this.httpEndpointReferenceParser=new Ar}associateQueryParametersByWireValue({parameters:e,values:r}){let n=[];for(let[i,o]of Object.entries(r)){this.errors.scope(i);try{let u=e.find(c=>c.name.wireValue===i);if(u==null)throw this.newParameterNotRecognizedError(i);let p=this.isListTypeReference(u.typeReference)&&!Array.isArray(o)?[o]:o;n.push({name:u.name,typeReference:u.typeReference,value:p})}finally{this.errors.unscope()}}return n}associateByWireValue({parameters:e,values:r,ignoreMissingParameters:n}){let i=[];for(let[o,u]of Object.entries(r)){this.errors.scope(o);try{let p=e.find(c=>c.name.wireValue===o);if(p==null){if(n)continue;this.errors.add({severity:T.Critical,message:this.newParameterNotRecognizedError(o).message});continue}i.push({name:p.name,typeReference:p.typeReference,value:u})}finally{this.errors.unscope()}}return i}getSingleFileValue({property:e,record:r}){let n=r[e.wireValue];if(n!=null){if(typeof n!="string"){this.errors.add({severity:T.Critical,message:`Expected file value to be a string, got ${typeof n}`});return}return n}}getFileArrayValues({property:e,record:r}){let n=r[e.wireValue];if(n==null)return;if(!Array.isArray(n)){this.errors.add({severity:T.Critical,message:`Expected file array value to be an array of strings, got ${typeof n}`});return}let i=[];for(let o of n){if(typeof o!="string"){this.errors.add({severity:T.Critical,message:`Expected file array value to be an array of strings, got ${typeof o}`});return}i.push(o)}return i}getRecord(e){if(typeof e!="object"||Array.isArray(e)){this.errors.add({severity:T.Critical,message:`Expected object with key, value pairs but got: ${Array.isArray(e)?"array":typeof e}`});return}return e==null?{}:e}resolveNamedType({typeId:e}){let r=this._ir.types[e];if(r==null){this.errors.add({severity:T.Critical,message:`Type identified by "${e}" could not be found`});return}return r}resolveDiscriminatedUnionTypeInstance({discriminatedUnion:e,value:r}){let n=this.getRecord(r);if(n==null)return;let i=e.discriminant.wireValue,o=n[i];if(o==null){this.errors.add({severity:T.Critical,message:this.newParameterNotRecognizedError(i).message});return}if(typeof o!="string"){this.errors.add({severity:T.Critical,message:`Expected discriminant value to be a string but got: ${typeof o}`});return}let u=e.types[o];if(u==null){this.errors.add({severity:T.Critical,message:`No type found for discriminant value "${o}"`});return}let h=n,{[i]:p}=h,c=xi(h,[vi(i)]);return{singleDiscriminatedUnionType:u,discriminantValue:u.discriminantValue,value:c}}resolveEndpointOrThrow(e){let r=this.httpEndpointReferenceParser.tryParse(e);if(r==null)throw new Error(`Failed to parse endpoint reference "${e}"`);return this.resolveEndpointLocationOrThrow(r)}resolveEndpointLocationOrThrow(e){let r=[];for(let n of Object.values(this._ir.endpoints))this.parsedEndpointMatches({endpoint:n,parsedEndpoint:e})&&r.push(n);if(r.length===0)throw new Error(`Failed to find endpoint identified by "${e.method} ${e.path}"`);return r}needsRequestParameter({request:e,inlinePathParameters:r,inlineFileProperties:n}){var i;return this.includePathParametersInWrappedRequest({request:e,inlinePathParameters:r})||e.queryParameters!=null&&e.queryParameters.length>0||e.headers!=null&&e.headers.length>0?!0:e.body!=null?this.includeRequestBodyInWrappedRequest({body:e.body,inlineFileProperties:n}):!((i=e.metadata)!=null&&i.onlyPathParameters)}includePathParametersInWrappedRequest({request:e,inlinePathParameters:r}){var n,i;return r&&((i=(n=e.metadata)==null?void 0:n.includePathParameters)!=null?i:!1)}isFileUploadRequestBody(e){switch(e.type){case"fileUpload":return!0;case"properties":case"referenced":return!1;default:S(e)}}resolveEnvironmentName(e){if(this._ir.environments==null)return;let r=this._ir.environments.environments;switch(r.type){case"singleBaseUrl":{let n=r.environments.find(i=>i.id===e);return n==null?void 0:n.name}case"multipleBaseUrls":{let n=r.environments.find(i=>i.id===e);return n==null?void 0:n.name}default:S(r)}}isSingleEnvironmentID(e){return typeof e=="string"}isMultiEnvironmentValues(e){return typeof e=="object"}validateMultiEnvironmentUrlValues(e){if(this._ir.environments==null)return this.errors.add({severity:T.Critical,message:"Multiple environments are not supported for single base URL environments; use the baseUrl option instead"}),!1;let r=this._ir.environments.environments;switch(r.type){case"singleBaseUrl":return this.errors.add({severity:T.Critical,message:"Multiple environments are not supported for single base URL environments; use the baseUrl option instead"}),!1;case"multipleBaseUrls":{let n=r.environments[0];if(n==null)return this.errors.add({severity:T.Critical,message:"Multiple environments are not supported; use the baseUrl option instead"}),!1;let i=new Set(hr(n.urls));for(let o of hr(e))i.has(o)&&i.delete(o);return i.size>0?(this.errors.add({severity:T.Critical,message:`The provided environments are invalid; got: [${Object.keys(e).join(", ")}], expected: [${hr(n.urls).join(", ")}]`}),!1):!0}}}getValueAsNumber({value:e}){if(typeof e!="number"){this.errors.add({severity:T.Critical,message:this.newTypeMismatchError({expected:"number",value:e}).message});return}return e}getValueAsBoolean({value:e}){if(typeof e!="boolean"){this.errors.add({severity:T.Critical,message:this.newTypeMismatchError({expected:"boolean",value:e}).message});return}return e}getValueAsString({value:e}){if(typeof e!="string"){this.errors.add({severity:T.Critical,message:this.newTypeMismatchError({expected:"string",value:e}).message});return}return e}isOptional(e){switch(e.type){case"nullable":return this.isOptional(e.value);case"optional":return!0;case"named":{let r=this.resolveNamedType({typeId:e.value});return r==null?!1:r.type==="alias"?this.isNullable(r.typeReference):!1}}return!1}isNullable(e){switch(e.type){case"nullable":return!0;case"optional":return this.isNullable(e.value);case"named":{let r=this.resolveNamedType({typeId:e.value});return r==null?!1:r.type==="alias"?this.isNullable(r.typeReference):!1}}return!1}newAuthMismatchError({auth:e,values:r}){return new Error(`Expected auth type ${e.type}, got ${r.type}`)}newParameterNotRecognizedError(e){return new Error(`"${e}" is not a recognized parameter for this endpoint`)}newTypeMismatchError({expected:e,value:r}){return new Error(`Expected ${e}, got ${typeof r}`)}includeRequestBodyInWrappedRequest({body:e,inlineFileProperties:r}){switch(e.type){case"properties":case"referenced":return!0;case"fileUpload":return this.includeFileUploadBodyInWrappedRequest({fileUpload:e,inlineFileProperties:r});default:S(e)}}includeFileUploadBodyInWrappedRequest({fileUpload:e,inlineFileProperties:r}){return this.fileUploadHasBodyProperties({fileUpload:e})||r&&this.fileUploadHasFileProperties({fileUpload:e})}fileUploadHasBodyProperties({fileUpload:e}){return e.properties.some(r=>{switch(r.type){case"file":case"fileArray":return!1;case"bodyProperty":return!0;default:S(r)}})}fileUploadHasFileProperties({fileUpload:e}){return e.properties.some(r=>{switch(r.type){case"file":case"fileArray":return!0;case"bodyProperty":return!1;default:S(r)}})}isListTypeReference(e){return e.type==="optional"?this.isListTypeReference(e.value):e.type==="list"||e.type==="set"}parsedEndpointMatches({endpoint:e,parsedEndpoint:r}){return e.location.method===r.method&&e.location.path===r.path}};a();s();var Ae;(function(t){t.Concise="concise",t.Full="full"})(Ae||(Ae={}));a();s();var Y={PathParameters:"pathParameters",QueryParameters:"queryParameters",Headers:"headers",RequestBody:"requestBody"};a();s();a();s();var d={};kt(d,{Access:()=>si,AstNode:()=>N,Class:()=>Te,ClassInstantiation:()=>Re,ClassReference:()=>E,CodeBlock:()=>Ee,Method:()=>Ie,MethodInvocation:()=>Ne,Parameter:()=>Pe,Type:()=>Er,TypeLiteral:()=>B,Writer:()=>Se,classReference:()=>cv,class_:()=>fv,codeblock:()=>pv,instantiateClass:()=>dv,invokeMethod:()=>yv,method:()=>mv,parameter:()=>hv});a();s();a();s();a();s();var si={Public:"public",Protected:"protected",Private:"private"};a();s();a();s();a();s();var Se=class extends vr{constructor({packageName:r,customConfig:n,formatter:i}){super();v(this,"packageName");v(this,"customConfig");v(this,"formatter");v(this,"imports",new Set);this.packageName=r,this.customConfig=n,this.formatter=i!=null?i:new xr}addImport(r){this.imports.add(r)}};var Rr=class extends Se{constructor({packageName:e,customConfig:r,formatter:n}){super({packageName:e,customConfig:r,formatter:n})}async toStringAsync(){let e=this.getContent();if(this.formatter!=null)try{return this.formatter.format(e)}catch(r){throw new Error(`Failed to format Java file: ${r}
|
|
20
|
+
`),this.lastCharacterIsSemicolon=e.endsWith(";")),this.buffer+=e}isAtStartOfLine(){return this.lastCharacterIsNewline||!this.hasWrittenAnything}getIndentString(){return" ".repeat(this.indentLevel*Yg)}};a();s();var xt=class{},xr=class extends xt{async format(e){return e}formatSync(e){return e}};a();s();function ai(t){return(t==null?void 0:t.name)!=null}a();s();a();s();a();s();var wr=class{constructor(){g(this,"reporter");g(this,"snippet");g(this,"err");this.snippet=void 0,this.reporter=void 0,this.err=void 0}update({context:e,snippet:r}){this.shouldUpdate({snippet:r,reporter:e.errors})&&(this.reporter=e.errors.clone(),this.snippet=r)}getResponseOrThrow({endpoint:e}){var r;if(this.snippet!=null&&this.reporter!=null)return{snippet:this.snippet,errors:this.reporter.toDynamicSnippetErrors()};throw(r=this.err)!=null?r:new Error(`Failed to generate snippet for endpoint "${e.method} ${e.path}"`)}shouldUpdate({snippet:e,reporter:r}){var n,i;return this.reporter==null||this.reporter.size()>0&&r.size()===0?!0:e.length>((i=(n=this.snippet)==null?void 0:n.length)!=null?i:0)}};var br=class{constructor(e){g(this,"context");this.context=e}async generate(e,r={}){let n=this.context.resolveEndpointLocationOrThrow(e.endpoint);if(n.length===0)throw new Error(`No endpoints found that match "${e.endpoint.method} ${e.endpoint.path}"`);let i=new wr;for(let o of n){let u=this.context.clone(),p=this.createSnippetGenerator(u);try{let c=await p.generateSnippet({endpoint:o,request:e,options:r});if(u.errors.empty())return{snippet:c,errors:void 0};i.update({context:u,snippet:c})}catch(c){i.err==null&&(i.err=c)}}return i.getResponseOrThrow({endpoint:e.endpoint})}generateSync(e,r={}){let n=this.context.resolveEndpointLocationOrThrow(e.endpoint);if(n.length===0)throw new Error(`No endpoints found that match "${e.endpoint.method} ${e.endpoint.path}"`);let i=new wr;for(let o of n){let u=this.context.clone(),p=this.createSnippetGenerator(u);try{let c=p.generateSnippetSync({endpoint:o,request:e,options:r});if(u.errors.empty())return{snippet:c,errors:void 0};i.update({context:u,snippet:c})}catch(c){i.err==null&&(i.err=c)}}return i.getResponseOrThrow({endpoint:e.endpoint})}};a();s();a();s();a();s();var Ar=class{constructor(){g(this,"REFERENCE_REGEX",/^(GET|POST|PUT|DELETE|PATCH)\s(\/[a-zA-Z0-9\/{}_-]*)$/)}validate(e){return this.REFERENCE_REGEX.test(e)?{type:"valid"}:{type:"invalid"}}tryParse(e){if(this.validate(e).type==="invalid")return;let n=e.match(this.REFERENCE_REGEX);if(!(n==null||n[1]==null||n[2]==null))return{method:n[1],path:n[2]}}};a();s();var T={Critical:"CRITICAL",Warning:"WARNING"},Sr=class t{constructor(){g(this,"errors");g(this,"path");this.errors=[],this.path=[]}add(e){this.errors.push(gi(hi({},e),{path:[...this.path]}))}scope(e){this.path.push(e)}unscope(){this.path.pop()}getBySeverity(e){return this.errors.filter(r=>r.severity===e)}empty(){return this.errors.length===0}size(){return this.errors.length}clone(){let e=new t;return e.errors=[...this.errors],e.path=[...this.path],e}reset(){this.errors=[],this.path=[]}toDynamicSnippetErrors(){return this.errors.map(e=>({severity:e.severity,path:e.path!=null?this.pathToStringArray(e.path):void 0,message:e.message}))}pathToStringArray(e){let r=[];for(let n of e){if(typeof n=="string"){r.push(n);continue}r[r.length-1]+=`[${n.index}]`}return r}};var Tr=class{constructor({ir:e,config:r,options:n={}}){g(this,"config");g(this,"options");g(this,"errors");g(this,"_ir");g(this,"httpEndpointReferenceParser");this._ir=e,this.config=r,this.options=n,this.errors=new Sr,this.httpEndpointReferenceParser=new Ar}associateQueryParametersByWireValue({parameters:e,values:r}){let n=[];for(let[i,o]of Object.entries(r)){this.errors.scope(i);try{let u=e.find(c=>c.name.wireValue===i);if(u==null)throw this.newParameterNotRecognizedError(i);let p=this.isListTypeReference(u.typeReference)&&!Array.isArray(o)?[o]:o;n.push({name:u.name,typeReference:u.typeReference,value:p})}finally{this.errors.unscope()}}return n}associateByWireValue({parameters:e,values:r,ignoreMissingParameters:n}){let i=[];for(let[o,u]of Object.entries(r)){this.errors.scope(o);try{let p=e.find(c=>c.name.wireValue===o);if(p==null){if(n)continue;this.errors.add({severity:T.Critical,message:this.newParameterNotRecognizedError(o).message});continue}i.push({name:p.name,typeReference:p.typeReference,value:u})}finally{this.errors.unscope()}}return i}getSingleFileValue({property:e,record:r}){let n=r[e.wireValue];if(n!=null){if(typeof n!="string"){this.errors.add({severity:T.Critical,message:`Expected file value to be a string, got ${typeof n}`});return}return n}}getFileArrayValues({property:e,record:r}){let n=r[e.wireValue];if(n==null)return;if(!Array.isArray(n)){this.errors.add({severity:T.Critical,message:`Expected file array value to be an array of strings, got ${typeof n}`});return}let i=[];for(let o of n){if(typeof o!="string"){this.errors.add({severity:T.Critical,message:`Expected file array value to be an array of strings, got ${typeof o}`});return}i.push(o)}return i}getRecord(e){if(typeof e!="object"||Array.isArray(e)){this.errors.add({severity:T.Critical,message:`Expected object with key, value pairs but got: ${Array.isArray(e)?"array":typeof e}`});return}return e==null?{}:e}resolveNamedType({typeId:e}){let r=this._ir.types[e];if(r==null){this.errors.add({severity:T.Critical,message:`Type identified by "${e}" could not be found`});return}return r}resolveDiscriminatedUnionTypeInstance({discriminatedUnion:e,value:r}){let n=this.getRecord(r);if(n==null)return;let i=e.discriminant.wireValue,o=n[i];if(o==null){this.errors.add({severity:T.Critical,message:this.newParameterNotRecognizedError(i).message});return}if(typeof o!="string"){this.errors.add({severity:T.Critical,message:`Expected discriminant value to be a string but got: ${typeof o}`});return}let u=e.types[o];if(u==null){this.errors.add({severity:T.Critical,message:`No type found for discriminant value "${o}"`});return}let v=n,{[i]:p}=v,c=xi(v,[vi(i)]);return{singleDiscriminatedUnionType:u,discriminantValue:u.discriminantValue,value:c}}resolveEndpointOrThrow(e){let r=this.httpEndpointReferenceParser.tryParse(e);if(r==null)throw new Error(`Failed to parse endpoint reference "${e}"`);return this.resolveEndpointLocationOrThrow(r)}resolveEndpointLocationOrThrow(e){let r=[];for(let n of Object.values(this._ir.endpoints))this.parsedEndpointMatches({endpoint:n,parsedEndpoint:e})&&r.push(n);if(r.length===0)throw new Error(`Failed to find endpoint identified by "${e.method} ${e.path}"`);return r}needsRequestParameter({request:e,inlinePathParameters:r,inlineFileProperties:n}){var i;return this.includePathParametersInWrappedRequest({request:e,inlinePathParameters:r})||e.queryParameters!=null&&e.queryParameters.length>0||e.headers!=null&&e.headers.length>0?!0:e.body!=null?this.includeRequestBodyInWrappedRequest({body:e.body,inlineFileProperties:n}):!((i=e.metadata)!=null&&i.onlyPathParameters)}includePathParametersInWrappedRequest({request:e,inlinePathParameters:r}){var n,i;return r&&((i=(n=e.metadata)==null?void 0:n.includePathParameters)!=null?i:!1)}isFileUploadRequestBody(e){switch(e.type){case"fileUpload":return!0;case"properties":case"referenced":return!1;default:S(e)}}resolveEnvironmentName(e){if(this._ir.environments==null)return;let r=this._ir.environments.environments;switch(r.type){case"singleBaseUrl":{let n=r.environments.find(i=>i.id===e);return n==null?void 0:n.name}case"multipleBaseUrls":{let n=r.environments.find(i=>i.id===e);return n==null?void 0:n.name}default:S(r)}}isSingleEnvironmentID(e){return typeof e=="string"}isMultiEnvironmentValues(e){return typeof e=="object"}validateMultiEnvironmentUrlValues(e){if(this._ir.environments==null)return this.errors.add({severity:T.Critical,message:"Multiple environments are not supported for single base URL environments; use the baseUrl option instead"}),!1;let r=this._ir.environments.environments;switch(r.type){case"singleBaseUrl":return this.errors.add({severity:T.Critical,message:"Multiple environments are not supported for single base URL environments; use the baseUrl option instead"}),!1;case"multipleBaseUrls":{let n=r.environments[0];if(n==null)return this.errors.add({severity:T.Critical,message:"Multiple environments are not supported; use the baseUrl option instead"}),!1;let i=new Set(hr(n.urls));for(let o of hr(e))i.has(o)&&i.delete(o);return i.size>0?(this.errors.add({severity:T.Critical,message:`The provided environments are invalid; got: [${Object.keys(e).join(", ")}], expected: [${hr(n.urls).join(", ")}]`}),!1):!0}}}getValueAsNumber({value:e}){if(typeof e!="number"){this.errors.add({severity:T.Critical,message:this.newTypeMismatchError({expected:"number",value:e}).message});return}return e}getValueAsBoolean({value:e}){if(typeof e!="boolean"){this.errors.add({severity:T.Critical,message:this.newTypeMismatchError({expected:"boolean",value:e}).message});return}return e}getValueAsString({value:e}){if(typeof e!="string"){this.errors.add({severity:T.Critical,message:this.newTypeMismatchError({expected:"string",value:e}).message});return}return e}isOptional(e){switch(e.type){case"nullable":return this.isOptional(e.value);case"optional":return!0;case"named":{let r=this.resolveNamedType({typeId:e.value});return r==null?!1:r.type==="alias"?this.isNullable(r.typeReference):!1}}return!1}isNullable(e){switch(e.type){case"nullable":return!0;case"optional":return this.isNullable(e.value);case"named":{let r=this.resolveNamedType({typeId:e.value});return r==null?!1:r.type==="alias"?this.isNullable(r.typeReference):!1}}return!1}newAuthMismatchError({auth:e,values:r}){return new Error(`Expected auth type ${e.type}, got ${r.type}`)}newParameterNotRecognizedError(e){return new Error(`"${e}" is not a recognized parameter for this endpoint`)}newTypeMismatchError({expected:e,value:r}){return new Error(`Expected ${e}, got ${typeof r}`)}includeRequestBodyInWrappedRequest({body:e,inlineFileProperties:r}){switch(e.type){case"properties":case"referenced":return!0;case"fileUpload":return this.includeFileUploadBodyInWrappedRequest({fileUpload:e,inlineFileProperties:r});default:S(e)}}includeFileUploadBodyInWrappedRequest({fileUpload:e,inlineFileProperties:r}){return this.fileUploadHasBodyProperties({fileUpload:e})||r&&this.fileUploadHasFileProperties({fileUpload:e})}fileUploadHasBodyProperties({fileUpload:e}){return e.properties.some(r=>{switch(r.type){case"file":case"fileArray":return!1;case"bodyProperty":return!0;default:S(r)}})}fileUploadHasFileProperties({fileUpload:e}){return e.properties.some(r=>{switch(r.type){case"file":case"fileArray":return!0;case"bodyProperty":return!1;default:S(r)}})}isListTypeReference(e){return e.type==="optional"?this.isListTypeReference(e.value):e.type==="list"||e.type==="set"}parsedEndpointMatches({endpoint:e,parsedEndpoint:r}){return e.location.method===r.method&&e.location.path===r.path}};a();s();var Ae;(function(t){t.Concise="concise",t.Full="full"})(Ae||(Ae={}));a();s();var Y={PathParameters:"pathParameters",QueryParameters:"queryParameters",Headers:"headers",RequestBody:"requestBody"};a();s();a();s();var d={};kt(d,{Access:()=>si,AstNode:()=>P,Class:()=>Te,ClassInstantiation:()=>Re,ClassReference:()=>E,CodeBlock:()=>Ee,Method:()=>Ie,MethodInvocation:()=>Pe,Parameter:()=>Ne,Type:()=>Er,TypeLiteral:()=>B,Writer:()=>Se,classReference:()=>cv,class_:()=>fv,codeblock:()=>pv,instantiateClass:()=>dv,invokeMethod:()=>yv,method:()=>mv,parameter:()=>hv});a();s();a();s();a();s();var si={Public:"public",Protected:"protected",Private:"private"};a();s();a();s();a();s();var Se=class extends vr{constructor({packageName:r,customConfig:n,formatter:i}){super();g(this,"packageName");g(this,"customConfig");g(this,"formatter");g(this,"imports",new Set);this.packageName=r,this.customConfig=n,this.formatter=i!=null?i:new xr}addImport(r){this.imports.add(r)}};var Rr=class extends Se{constructor({packageName:e,customConfig:r,formatter:n}){super({packageName:e,customConfig:r,formatter:n})}async toStringAsync(){let e=this.getContent();if(this.formatter!=null)try{return this.formatter.format(e)}catch(r){throw new Error(`Failed to format Java file: ${r}
|
|
21
21
|
${e}`)}return e}toString(){let e=this.getContent();if(this.formatter!=null)try{return this.formatter.formatSync(e)}catch(r){throw new Error(`Failed to format Java file: ${r}
|
|
22
22
|
${e}`)}return e}getContent(){let e=`package ${this.packageName};
|
|
23
23
|
|
|
24
24
|
`,r=this.stringifyImports();return r.length>0?`${e}${r}
|
|
25
25
|
|
|
26
26
|
${this.buffer}`:e+this.buffer}stringifyImports(){return Array.from(this.imports).filter(e=>e!==this.packageName).map(e=>`import ${e};`).sort().join(`
|
|
27
|
-
`)}};var N=class extends be{async toStringAsync({packageName:e,customConfig:r,formatter:n}){let i=new Rr({packageName:e,customConfig:r,formatter:n});return this.write(i),i.toStringAsync()}toString({packageName:e,customConfig:r,formatter:n}){let i=new Rr({packageName:e,customConfig:r,formatter:n});return this.write(i),i.toString()}};a();s();var Te=class extends N{constructor({name:r,access:n}){super();v(this,"name");v(this,"access");v(this,"methods",[]);this.name=r,this.access=n}write(r){if(r.write(`${this.access} class ${this.name}`),this.isEmpty()){r.writeLine(" {}");return}r.writeLine(" {"),r.indent();for(let n of this.methods)r.writeNode(n),r.newLine();r.dedent(),r.write("}")}addMethod(r){this.methods.push(r)}isEmpty(){return this.methods.length===0}};a();s();var E=class extends N{constructor({name:r,packageName:n,fullyQualified:i}){super();v(this,"name");v(this,"packageName");v(this,"fullyQualified");this.name=r,this.packageName=n,this.fullyQualified=i!=null?i:!1}write(r){if(r.addImport(`${this.packageName}.${this.name}`),this.fullyQualified){r.write(`${this.packageName}.${this.name}`);return}r.write(this.name)}};a();s();a();s();a();s();a();s();var Er=class extends N{constructor(r){super();v(this,"internalType");this.internalType=r}write(r){switch(this.internalType.type){case"bigInteger":r.writeNode(Hg);break;case"boolean":r.write("Boolean");break;case"bytes":r.write("byte[]");break;case"float":r.write("Float");break;case"date":r.write("String");break;case"dateTime":r.writeNode(Zg);break;case"double":r.write("Double");break;case"integer":r.write("Integer");break;case"list":{this.writeList({writer:r,list:this.internalType});break}case"long":{r.write("Long");break}case"map":{this.writeMap({writer:r,map:this.internalType});break}case"object":{r.write("Object");break}case"optional":{this.writeOptional({writer:r,optional:this.internalType});break}case"reference":r.writeNode(this.internalType.value);break;case"set":{this.writeSet({writer:r,set:this.internalType});break}case"string":r.write("String");break;case"uuid":r.writeNode(Qg);break;default:S(this.internalType)}}isOptional(){return this.internalType.type==="optional"}static bigInteger(){return new this({type:"bigInteger"})}static boolean(){return new this({type:"boolean"})}static bytes(){return new this({type:"bytes"})}static date(){return new this({type:"date"})}static dateTime(){return new this({type:"dateTime"})}static double(){return new this({type:"double"})}static float(){return new this({type:"float"})}static integer(){return new this({type:"integer"})}static list(r){return new this({type:"list",value:r})}static long(){return new this({type:"long"})}static map(r,n){return new this({type:"map",keyType:r,valueType:n})}static object(){return new this({type:"object"})}static optional(r){return this.isAlreadyOptional(r)?r:new this({type:"optional",value:r})}static reference(r){return new this({type:"reference",value:r})}static set(r){return new this({type:"set",value:r})}static string(){return new this({type:"string"})}static uuid(){return new this({type:"uuid"})}writeList({writer:r,list:n}){r.writeNode(Jg),r.write("<"),n.value.write(r),r.write(">")}writeMap({writer:r,map:n}){r.writeNode(Kg),r.write("<"),n.keyType.write(r),r.write(", "),n.valueType.write(r),r.write(">")}writeOptional({writer:r,optional:n}){r.writeNode(li),r.write("<"),n.value.write(r),r.write(">")}writeSet({writer:r,set:n}){r.writeNode(Xg),r.write("<"),n.value.write(r),r.write(">")}static isAlreadyOptional(r){return r.internalType.type==="optional"}},ui=new E({name:"Arrays",packageName:"java.util"}),Hg=new E({name:"BigInteger",packageName:"java.math"}),i1=new E({name:"HashMap",packageName:"java.util"}),Jg=new E({name:"List",packageName:"java.util"}),Kg=new E({name:"Map",packageName:"java.util"}),Zg=new E({name:"OffsetDateTime",packageName:"java.time"}),li=new E({name:"Optional",packageName:"java.util"}),Xg=new E({name:"Set",packageName:"java.util"}),Qg=new E({name:"UUID",packageName:"java.util"});var B=class t extends N{constructor(r){super();v(this,"internalType");this.internalType=r}write(r){switch(this.internalType.type){case"bigInteger":this.writeBigInteger({writer:r,bigInteger:this.internalType});break;case"boolean":r.write(this.internalType.value.toString());break;case"builder":this.writeBuilder({writer:r,builder:this.internalType});break;case"bytes":r.write(`"${this.internalType.value}".getBytes()`);break;case"class":{this.writeClass({writer:r,class_:this.internalType});break}case"date":r.write(`"${this.internalType.value}"`);break;case"dateTime":this.writeDateTime({writer:r,dateTime:this.internalType});break;case"double":r.write(this.internalType.value.toString());break;case"enum":this.writeEnum({writer:r,enum_:this.internalType});break;case"float":r.write(`${this.internalType.value}f`);break;case"integer":r.write(this.internalType.value.toString());break;case"list":{this.writeList({writer:r,list:this.internalType});break}case"long":{r.write(`${this.internalType.value}L`);break}case"map":{this.writeMap({writer:r,map:this.internalType});break}case"optional":{this.writeOptional({writer:r,optional:this.internalType});break}case"raw":{r.write(this.internalType.value);break}case"reference":r.writeNode(this.internalType.value);break;case"set":{this.writeSet({writer:r,set:this.internalType});break}case"string":r.write(`"${this.escapeString(this.internalType.value)}"`);break;case"unknown":this.writeUnknown({writer:r,value:this.internalType.value});break;case"uuid":this.writeUUID({writer:r,uuid:this.internalType});break;case"nop":break;default:S(this.internalType)}}isOptional(){return this.internalType.type==="optional"}static bigInteger(r){return new this({type:"bigInteger",value:r})}static boolean(r){return new this({type:"boolean",value:r})}static builder({classReference:r,parameters:n}){return new this({type:"builder",classReference:r,parameters:n})}static bytes(r){return new this({type:"bytes",value:r})}static class_({reference:r,parameters:n}){return new this({type:"class",reference:r,parameters:n})}static date(r){return new this({type:"date",value:r})}static dateTime(r){return new this({type:"dateTime",value:r})}static double(r){return new this({type:"double",value:r})}static enum_({classReference:r,value:n}){return new this({type:"enum",classReference:r,value:n})}static float(r){return new this({type:"float",value:r})}static integer(r){return new this({type:"integer",value:r})}static list({valueType:r,values:n}){return new this({type:"list",valueType:r,values:n})}static long(r){return new this({type:"long",value:r})}static map({keyType:r,valueType:n,entries:i}){return new this({type:"map",keyType:r,valueType:n,entries:i})}static optional({value:r,useOf:n}){return this.isAlreadyOptional(r)?r:new this({type:"optional",value:r,useOf:n})}static raw(r){return new this({type:"raw",value:r})}static reference(r){return new this({type:"reference",value:r})}static set({valueType:r,values:n}){return new this({type:"set",valueType:r,values:n})}static string(r){return new this({type:"string",value:r})}static unknown(r){return new this({type:"unknown",value:r})}static uuid(r){return new this({type:"uuid",value:r})}static nop(){return new this({type:"nop"})}static isNop(r){return r.internalType.type==="nop"}shouldWriteInLine(){switch(this.internalType.type){case"bigInteger":case"boolean":case"bytes":case"date":case"dateTime":case"double":case"enum":case"float":case"integer":case"long":case"nop":case"raw":case"string":case"unknown":case"uuid":return!0;case"optional":return this.internalType.value.shouldWriteInLine();case"builder":case"class":case"list":case"map":case"reference":case"set":return!1;default:S(this.internalType)}}writeBigInteger({writer:r,bigInteger:n}){r.write("new "),r.writeNode(d.instantiateClass({classReference:ev,arguments_:[t.string(n.value)]}))}writeBuilder({writer:r,builder:n}){r.writeNode(n.classReference),r.writeNewLineIfLastLineNot(),r.indent(),this.writeBuilderParameters({writer:r,parameters:this.orderBuilderParameters(ov({parameters:n.parameters}))}),r.dedent()}writeBuilderParameters({writer:r,parameters:n}){r.writeLine(".builder()");for(let i of n)r.write(`.${i.name}(`),i.value.shouldWriteInLine()||r.newLine(),r.indent(),r.writeNode(i.value),r.dedent(),i.value.shouldWriteInLine()||r.newLine(),r.writeLine(")");r.writeNewLineIfLastLineNot(),r.write(".build()")}orderBuilderParameters(r){return r.sort((n,i)=>n.value.isOptional()&&!i.value.isOptional()?1:!n.value.isOptional()&&i.value.isOptional()?-1:0)}writeClass({writer:r,class_:n}){let i=iv({parameters:n.parameters});r.writeNode(d.instantiateClass({classReference:n.reference,arguments_:i.map(o=>o.value)}))}writeDateTime({writer:r,dateTime:n}){r.writeNode(d.invokeMethod({on:tv,method:"parse",arguments_:[t.string(n.value)]}))}writeEnum({writer:r,enum_:n}){r.writeNode(n.classReference),r.write("."+n.value)}writeList({writer:r,list:n}){this.writeIterable({writer:r,iterable:n})}writeMap({writer:r,map:n}){let i=av({entries:n.entries});if(i.length===0){r.write("new "),r.writeNode(wt),r.write("<"),r.writeNode(n.keyType),r.write(", "),r.writeNode(n.valueType),r.write(">()");return}r.write("new "),r.writeNode(wt),r.write("<"),r.writeNode(n.keyType),r.write(", "),r.writeNode(n.valueType),r.writeLine(">() {{"),r.indent();for(let o of i)r.write("put("),r.writeNode(o.key),r.write(", "),r.writeNode(o.value),r.writeLine(");");r.dedent(),r.write("}}")}writeOptional({writer:r,optional:n}){if(!n.useOf){r.writeNode(n.value);return}r.writeNode(d.invokeMethod({on:li,method:"of",arguments_:[n.value]}))}writeSet({writer:r,set:n}){this.writeIterable({writer:r,iterable:n})}writeIterable({writer:r,iterable:n}){let i=n.type==="list"?pi:rv,o=sv({values:n.values});if(o.length===0){r.write(`new ${i.name}<`),r.writeNode(n.valueType),r.write(">()");return}r.write("new "),r.writeNode(i),r.write("<"),r.writeNode(n.valueType),r.writeLine(">("),r.indent(),r.writeNode(d.invokeMethod({on:ui,method:"asList",arguments_:o})),r.writeNewLineIfLastLineNot(),r.dedent(),r.write(")")}writeUnknown({writer:r,value:n}){switch(typeof n){case"boolean":r.write(n.toString());return;case"string":r.write(`"${this.escapeString(n)}"`);return;case"number":r.write(n.toString());return;case"object":if(n==null){r.write("null");return}if(Array.isArray(n)){this.writeUnknownArray({writer:r,value:n});return}this.writeUnknownMap({writer:r,value:n});return;default:throw new Error(`Internal error; unsupported unknown type: ${typeof n}`)}}writeUnknownArray({writer:r,value:n}){if(n.length===0){r.write("new"),r.writeNode(pi),r.write("<Object>()");return}r.writeLine("new"),r.writeNode(pi),r.write("<Object>() {"),r.indent(),r.writeNode(d.invokeMethod({on:ui,method:"asList",arguments_:n.map(i=>t.unknown(i))})),r.writeNewLineIfLastLineNot(),r.dedent(),r.write("}")}writeUnknownMap({writer:r,value:n}){let i=Object.entries(n);if(i.length===0){r.write("new "),r.writeNode(wt),r.write("<String, Object>()");return}r.writeLine("new "),r.writeNode(wt),r.write("<String, Object>() {{"),r.indent();for(let[o,u]of i)r.write(`put("${o}", `),r.writeNode(t.unknown(u)),r.writeLine(");");r.dedent(),r.write("}}")}writeUUID({writer:r,uuid:n}){r.writeNode(d.invokeMethod({on:nv,method:"fromString",arguments_:[t.string(n.value)]}))}escapeString(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}static isAlreadyOptional(r){return r.internalType.type==="optional"}},pi=new E({name:"ArrayList",packageName:"java.util"}),ev=new E({name:"BigInteger",packageName:"java.math"}),wt=new E({name:"HashMap",packageName:"java.util"}),rv=new E({name:"HashSet",packageName:"java.util"}),y1=new E({name:"List",packageName:"java.util"}),m1=new E({name:"Map",packageName:"java.util"}),tv=new E({name:"OffsetDateTime",packageName:"java.time"}),h1=new E({name:"Set",packageName:"java.util"}),nv=new E({name:"UUID",packageName:"java.util"});function iv({parameters:t}){return t.filter(e=>!B.isNop(e.value))}function ov({parameters:t}){return t.filter(e=>!B.isNop(e.value))}function av({entries:t}){return t.filter(e=>!B.isNop(e.key)&&!B.isNop(e.value))}function sv({values:t}){return t.filter(e=>!B.isNop(e))}function bt({writer:t,arguments_:e}){let r=lv(e);if(r.length===0){t.write("()");return}if(r.some(i=>i instanceof B&&!i.shouldWriteInLine())){uv({writer:t,arguments_:r});return}t.write("("),r.forEach((i,o)=>{o>0&&t.write(", "),fp({writer:t,argument:i})}),t.write(")")}function uv({writer:t,arguments_:e}){t.writeLine("("),t.indent(),e.forEach((r,n)=>{n>0&&t.writeLine(","),fp({writer:t,argument:r})}),t.dedent(),e.length>0&&t.newLine(),t.write(")")}function fp({writer:t,argument:e}){ai(e)?t.writeNodeOrString(e.assignment):e.write(t)}function lv(t){return t.filter(e=>!(e instanceof B&&B.isNop(e)))}var Re=class extends N{constructor({classReference:r,arguments_:n}){super();v(this,"classReference");v(this,"arguments_");this.classReference=r,this.arguments_=n}write(r){r.writeNode(this.classReference),bt({writer:r,arguments_:this.arguments_})}};a();s();var Ee=class extends N{constructor(r){super();v(this,"arg");this.arg=r}write(r){return new z(this.arg).write(r)}};a();s();var Ie=class extends N{constructor({name:r,access:n,parameters:i,body:o,static_:u,return_:p}){super();v(this,"name");v(this,"access");v(this,"parameters");v(this,"body");v(this,"return_");v(this,"static_");this.name=r,this.access=n,this.parameters=i,this.body=o,this.return_=p,this.static_=u!=null?u:!1}write(r){if(r.write(`${this.access} `),this.static_&&r.write("static "),this.return_!=null?r.writeNode(this.return_):r.write("void"),r.write(` ${this.name}`),this.parameters.length===0?r.write("()"):(r.writeLine("("),r.indent(),this.parameters.forEach((n,i)=>{i>0&&r.writeLine(", "),r.writeNode(n)}),r.dedent(),r.write(")")),this.body==null){r.write(";");return}r.writeLine(" {"),r.indent(),r.writeNode(this.body),r.writeNewLineIfLastLineNot(),r.dedent(),r.write("}")}};a();s();var Ne=class extends N{constructor({method:r,arguments_:n,on:i}){super();v(this,"on");v(this,"method");v(this,"arguments_");this.on=i,this.method=r,this.arguments_=n}write(r){this.on.write(r),r.write("."),r.write(this.method),bt({writer:r,arguments_:this.arguments_})}};a();s();var Pe=class extends N{constructor({name:r,type:n}){super();v(this,"name");v(this,"type");this.name=r,this.type=n}write(r){r.writeNode(this.type),r.write(` ${this.name}`)}};function pv(t){return new Ee(t)}function fv(t){return new Te(t)}function cv(t){return new E(t)}function dv(t){return new Re(t)}function yv(t){return new Ne(t)}function mv(t){return new Ie(t)}function hv(t){return new Pe(t)}var cp="com.example.usage",gv="Example",vv="run",dp="client",xv={type:"primitive",value:"STRING"},At=class{constructor({context:e,formatter:r}){v(this,"context");v(this,"formatter");this.context=e,this.formatter=r}async generateSnippet({endpoint:e,request:r,options:n}){var u,p;let i=this.getConfig(n);return await this.buildCodeBlock({endpoint:e,snippet:r,options:n}).toStringAsync({packageName:(u=i.fullStylePackageName)!=null?u:cp,customConfig:(p=this.context.customConfig)!=null?p:{},formatter:this.formatter})}generateSnippetSync({endpoint:e,request:r,options:n}){var u,p;let i=this.getConfig(n);return this.buildCodeBlock({endpoint:e,snippet:r,options:n}).toString({packageName:(u=i.fullStylePackageName)!=null?u:cp,customConfig:(p=this.context.customConfig)!=null?p:{},formatter:this.formatter})}buildCodeBlock({endpoint:e,snippet:r,options:n}){let i=d.codeblock(u=>{u.writeNodeStatement(this.constructClient({endpoint:e,snippet:r})),u.newLine(),u.writeNodeStatement(this.callMethod({endpoint:e,snippet:r}))}),o=this.getStyle(n);switch(o){case Ae.Concise:return i;case Ae.Full:return this.buildFullCodeBlock({body:i,options:n});default:S(o)}}constructClient({endpoint:e,snippet:r}){return d.codeblock(n=>{n.writeNode(this.context.getRootClientClassReference()),n.write(` ${dp} = `),n.writeNode(d.TypeLiteral.builder({classReference:this.context.getRootClientClassReference(),parameters:this.getRootClientBuilderArgs({endpoint:e,snippet:r})}))})}buildFullCodeBlock({body:e,options:r}){var o;let n=this.getConfig(r),i=d.class_({name:(o=n.fullStyleClassName)!=null?o:gv,access:d.Access.Public});return i.addMethod(d.method({name:vv,access:d.Access.Public,static_:!0,parameters:[],body:e})),i}getRootClientBuilderArgs({endpoint:e,snippet:r}){let n=[];e.auth!=null&&(r.auth!=null?n.push(...this.getRootClientAuthArgs({auth:e.auth,values:r.auth})):this.context.errors.add({severity:T.Warning,message:`Auth with ${e.auth.type} configuration is required for this endpoint`}));let i=this.getRootClientBaseUrlArg({baseUrl:r.baseURL,environment:r.environment});return i!=null&&n.push(i),this.context.errors.scope(Y.Headers),this.context.ir.headers!=null&&r.headers!=null&&n.push(...this.getRootClientHeaderArgs({headers:this.context.ir.headers,values:r.headers})),this.context.errors.unscope(),n}getRootClientBaseUrlArg({baseUrl:e,environment:r}){var n;if(e!=null&&r!=null){this.context.errors.add({severity:T.Critical,message:"Cannot specify both baseUrl and environment options"});return}if(e!=null){if(((n=this.context.ir.environments)==null?void 0:n.environments.type)==="multipleBaseUrls"){this.context.errors.add({severity:T.Critical,message:"The Java SDK doesn't support a baseUrl when multiple URL environments are configured"});return}return{name:"url",value:d.TypeLiteral.string(e)}}if(r!=null){if(this.context.isSingleEnvironmentID(r)){let i=this.context.getEnvironmentTypeReferenceFromID(r);if(i==null){this.context.errors.add({severity:T.Warning,message:`Environment ${JSON.stringify(r)} was not found`});return}return{name:"environment",value:d.TypeLiteral.reference(i)}}if(this.context.isMultiEnvironmentValues(r))return this.context.validateMultiEnvironmentUrlValues(r)?{name:"environment",value:d.TypeLiteral.reference(d.instantiateClass({classReference:this.context.getEnvironmentClassReference(),arguments_:Object.values(r).map(i=>this.context.dynamicTypeLiteralMapper.convert({typeReference:xv,value:i}))}))}:void 0}}getRootClientAuthArgs({auth:e,values:r}){switch(e.type){case"basic":return r.type!=="basic"?(this.context.errors.add({severity:T.Critical,message:this.context.newAuthMismatchError({auth:e,values:r}).message}),[]):this.getRootClientBasicAuthArgs({auth:e,values:r});case"bearer":return r.type!=="bearer"?(this.context.errors.add({severity:T.Critical,message:this.context.newAuthMismatchError({auth:e,values:r}).message}),[]):this.getRootClientBearerAuthArgs({auth:e,values:r});case"header":return r.type!=="header"?(this.context.errors.add({severity:T.Critical,message:this.context.newAuthMismatchError({auth:e,values:r}).message}),[]):this.getRootClientHeaderAuthArgs({auth:e,values:r});case"oauth":return r.type!=="oauth"?(this.context.errors.add({severity:T.Critical,message:this.context.newAuthMismatchError({auth:e,values:r}).message}),[]):this.getRootClientOAuthArgs({auth:e,values:r});default:S(e)}}getRootClientBasicAuthArgs({auth:e,values:r}){return[{name:"credentials",value:d.TypeLiteral.raw(`"${r.username}", "${r.password}"`)}]}getRootClientBearerAuthArgs({auth:e,values:r}){return[{name:this.context.getMethodName(e.token),value:d.TypeLiteral.string(r.token)}]}getRootClientHeaderAuthArgs({auth:e,values:r}){return[{name:this.context.getMethodName(e.header.name.name),value:this.context.dynamicTypeLiteralMapper.convert({typeReference:e.header.typeReference,value:r.value})}]}getRootClientOAuthArgs({auth:e,values:r}){return[{name:this.context.getMethodName(e.clientId),value:d.TypeLiteral.string(r.clientId)},{name:this.context.getMethodName(e.clientSecret),value:d.TypeLiteral.string(r.clientSecret)}]}getRootClientHeaderArgs({headers:e,values:r}){let n=[];for(let i of e){let o=this.getRootClientHeaderArg({header:i,value:r.value});o!=null&&n.push({name:this.context.getMethodName(i.name.name),value:o})}return n}getRootClientHeaderArg({header:e,value:r}){let n=this.context.dynamicTypeLiteralMapper.convert({typeReference:e.typeReference,value:r});if(!d.TypeLiteral.isNop(n))return n}callMethod({endpoint:e,snippet:r}){return d.invokeMethod({on:d.codeblock(dp),method:this.getMethod({endpoint:e}),arguments_:this.getMethodArgs({endpoint:e,snippet:r})})}getMethodArgs({endpoint:e,snippet:r}){switch(e.request.type){case"inlined":return this.getMethodArgsForInlinedRequest({request:e.request,snippet:r});case"body":return this.getMethodArgsForBodyRequest({request:e.request,snippet:r});default:S(e.request)}}getMethodArgsForBodyRequest({request:e,snippet:r}){var o,u;let n=[];this.context.errors.scope(Y.PathParameters);let i=[...(o=this.context.ir.pathParameters)!=null?o:[],...(u=e.pathParameters)!=null?u:[]];return i.length>0&&n.push(...this.getPathParameters({namedParameters:i,snippet:r}).map(p=>p.value)),this.context.errors.unscope(),this.context.errors.scope(Y.RequestBody),e.body!=null&&n.push(this.getBodyRequestArg({body:e.body,value:r.requestBody})),this.context.errors.unscope(),n}getBodyRequestArg({body:e,value:r}){switch(e.type){case"bytes":return this.getBytesBodyRequestArg({value:r});case"typeReference":return e.value.type==="optional"?d.TypeLiteral.optional({value:this.context.dynamicTypeLiteralMapper.convert({typeReference:e.value.value,value:r}),useOf:!0}):this.context.dynamicTypeLiteralMapper.convert({typeReference:e.value,value:r});default:S(e)}}getBytesBodyRequestArg({value:e}){return typeof e!="string"?(this.context.errors.add({severity:T.Critical,message:`Expected bytes value to be a string, got ${typeof e}`}),d.TypeLiteral.nop()):d.TypeLiteral.bytes(e)}getMethodArgsForInlinedRequest({request:e,snippet:r}){var p,c;let n=[],i=(c=(p=this.context.customConfig)==null?void 0:p["inline-path-parameters"])!=null?c:!1;this.context.errors.scope(Y.PathParameters);let o=[];e.pathParameters!=null&&o.push(...this.getPathParameters({namedParameters:e.pathParameters,snippet:r})),this.context.errors.unscope(),this.context.errors.scope(Y.RequestBody);let u=this.getFilePropertyInfo({request:e,snippet:r});return this.context.errors.unscope(),this.context.includePathParametersInWrappedRequest({request:e,inlinePathParameters:i})||n.push(...o.map(h=>h.value)),n.push(...u.fileFields.map(h=>h.value)),n.push(this.getInlinedRequestArg({request:e,snippet:r,pathParameterFields:this.context.includePathParametersInWrappedRequest({request:e,inlinePathParameters:i})?o:[],filePropertyInfo:u})),n}getFilePropertyInfo({request:e,snippet:r}){return e.body==null||!this.context.isFileUploadRequestBody(e.body)?{fileFields:[],bodyPropertyFields:[]}:this.context.filePropertyMapper.getFilePropertyInfo({body:e.body,value:r.requestBody})}getInlinedRequestArg({request:e,snippet:r,pathParameterFields:n,filePropertyInfo:i}){var g,m,x,w;this.context.errors.scope(Y.QueryParameters);let u=this.context.associateQueryParametersByWireValue({parameters:(g=e.queryParameters)!=null?g:[],values:(m=r.queryParameters)!=null?m:{}}).map(R=>({name:this.context.getMethodName(R.name.name),value:this.context.dynamicTypeLiteralMapper.convert(R)}));this.context.errors.unscope(),this.context.errors.scope(Y.Headers);let c=this.context.associateByWireValue({parameters:(x=e.headers)!=null?x:[],values:(w=r.headers)!=null?w:{}}).map(R=>({name:this.context.getMethodName(R.name.name),value:this.context.dynamicTypeLiteralMapper.convert(R)}));this.context.errors.unscope(),this.context.errors.scope(Y.RequestBody);let h=e.body!=null?this.getInlinedRequestBodyBuilderParameters({body:e.body,value:r.requestBody,filePropertyInfo:i}):[];return this.context.errors.unscope(),d.TypeLiteral.builder({classReference:d.classReference({name:this.context.getClassName(e.declaration.name),packageName:this.context.getRequestsPackageName(e.declaration.fernFilepath)}),parameters:[...n,...c,...u,...h]})}getInlinedRequestBodyBuilderParameters({body:e,value:r,filePropertyInfo:n}){switch(e.type){case"properties":return this.getInlinedRequestBodyPropertyBuilderParameters({parameters:e.value,value:r});case"referenced":return[this.getReferencedRequestBodyPropertyBuilderParameter({body:e,value:r})];case"fileUpload":return this.getFileUploadRequestBodyBuilderParameters({filePropertyInfo:n});default:S(e)}}getFileUploadRequestBodyBuilderParameters({filePropertyInfo:e}){return e.bodyPropertyFields}getReferencedRequestBodyPropertyBuilderParameter({body:e,value:r}){return{name:this.context.getMethodName(e.bodyKey),value:this.getReferencedRequestBodyPropertyTypeLiteral({body:e.bodyType,value:r})}}getReferencedRequestBodyPropertyTypeLiteral({body:e,value:r}){switch(e.type){case"bytes":return this.getBytesBodyRequestArg({value:r});case"typeReference":return this.context.dynamicTypeLiteralMapper.convert({typeReference:e.value,value:r});default:S(e)}}getInlinedRequestBodyPropertyBuilderParameters({parameters:e,value:r}){var o;let n=[],i=this.context.associateByWireValue({parameters:e,values:(o=this.context.getRecord(r))!=null?o:{}});for(let u of i)n.push({name:this.context.getMethodName(u.name.name),value:this.context.dynamicTypeLiteralMapper.convert(u)});return n}getPathParameters({namedParameters:e,snippet:r}){var o;let n=[],i=this.context.associateByWireValue({parameters:e,values:(o=r.pathParameters)!=null?o:{}});for(let u of i)n.push({name:this.context.getMethodName(u.name.name),value:this.context.dynamicTypeLiteralMapper.convert(u)});return n}getMethod({endpoint:e}){return e.declaration.fernFilepath.allParts.length>0?`${e.declaration.fernFilepath.allParts.map(r=>`${this.context.getMethodName(r)}()`).join(".")}.${this.context.getMethodName(e.declaration.name)}`:this.context.getMethodName(e.declaration.name)}getStyle(e){var r,n;return(n=(r=e.style)!=null?r:this.context.options.style)!=null?n:Ae.Full}getConfig(e){var r,n;return(n=(r=e.config)!=null?r:this.context.options.config)!=null?n:{}}};a();s();a();s();var St=class{constructor({context:e}){v(this,"context");this.context=e}convert(e){if(e.value===null)return this.context.isNullable(e.typeReference)?this.context.getNullableOfNull():(this.context.errors.add({severity:T.Critical,message:"Expected non-null value, but got null"}),d.TypeLiteral.nop());if(e.value===void 0)return d.TypeLiteral.nop();switch(e.typeReference.type){case"list":return this.convertList({list:e.typeReference.value,value:e.value});case"literal":return this.convertLiteral({literal:e.typeReference.value,value:e.value});case"map":return this.convertMap({map:e.typeReference,value:e.value});case"named":{let r=this.context.resolveNamedType({typeId:e.typeReference.value});return r==null?d.TypeLiteral.nop():this.convertNamed({named:r,value:e.value,as:e.as})}case"nullable":case"optional":return d.TypeLiteral.optional({value:this.convert({typeReference:e.typeReference.value,value:e.value,as:e.as}),useOf:e.as==="mapValue"});case"primitive":return this.convertPrimitive({primitive:e.typeReference.value,value:e.value,as:e.as});case"set":return this.convertSet({set:e.typeReference.value,value:e.value});case"unknown":return this.convertUnknown({value:e.value});default:S(e.typeReference)}}convertList({list:e,value:r}){return Array.isArray(r)?d.TypeLiteral.list({valueType:this.context.dynamicTypeMapper.convert({typeReference:e}),values:r.map((n,i)=>{this.context.errors.scope({index:i});try{return this.convert({typeReference:e,value:n})}finally{this.context.errors.unscope()}})}):(this.context.errors.add({severity:T.Critical,message:`Expected array but got: ${typeof r}`}),d.TypeLiteral.nop())}convertLiteral({literal:e,value:r}){switch(e.type){case"boolean":{let n=this.context.getValueAsBoolean({value:r});return n==null?d.TypeLiteral.nop():d.TypeLiteral.boolean(n)}case"string":{let n=this.context.getValueAsString({value:r});return n==null?d.TypeLiteral.nop():d.TypeLiteral.string(n)}default:S(e)}}convertSet({set:e,value:r}){return Array.isArray(r)?d.TypeLiteral.set({valueType:this.context.dynamicTypeMapper.convert({typeReference:e}),values:r.map((n,i)=>{this.context.errors.scope({index:i});try{return this.convert({typeReference:e,value:n})}finally{this.context.errors.unscope()}})}):(this.context.errors.add({severity:T.Critical,message:`Expected array but got: ${typeof r}`}),d.TypeLiteral.nop())}convertMap({map:e,value:r}){return typeof r!="object"||r==null?(this.context.errors.add({severity:T.Critical,message:`Expected object but got: ${r==null?"null":typeof r}`}),d.TypeLiteral.nop()):d.TypeLiteral.map({keyType:this.context.dynamicTypeMapper.convert({typeReference:e.key}),valueType:this.context.dynamicTypeMapper.convert({typeReference:e.value}),entries:Object.entries(r).map(([n,i])=>{this.context.errors.scope(n);try{return{key:this.convert({typeReference:e.key,value:n,as:"mapKey"}),value:this.convert({typeReference:e.value,value:i,as:"mapValue"})}}finally{this.context.errors.unscope()}})})}convertNamed({named:e,value:r,as:n}){switch(e.type){case"alias":return this.convert({typeReference:e.typeReference,value:r,as:n});case"discriminatedUnion":return this.convertDiscriminatedUnion({discriminatedUnion:e,value:r});case"enum":return this.convertEnum({enum_:e,value:r});case"object":return this.convertObject({object_:e,value:r,as:n});case"undiscriminatedUnion":return this.convertUndiscriminatedUnion({undiscriminatedUnion:e,value:r});default:S(e)}}convertDiscriminatedUnion({discriminatedUnion:e,value:r}){let n=this.context.getJavaClassReferenceFromDeclaration({declaration:e.declaration}),i=this.context.resolveDiscriminatedUnionTypeInstance({discriminatedUnion:e,value:r});if(i==null)return d.TypeLiteral.nop();let o=i.singleDiscriminatedUnionType;switch(o.type){case"samePropertiesAsObject":{let u=this.context.resolveNamedType({typeId:o.typeId});return u==null?d.TypeLiteral.nop():d.TypeLiteral.reference(d.invokeMethod({on:n,method:this.context.getPropertyName(o.discriminantValue.name),arguments_:[this.convertNamed({named:u,value:i.value})]}))}case"singleProperty":{let u=this.context.getRecord(i.value);if(u==null)return d.TypeLiteral.nop();try{return this.context.errors.scope(o.discriminantValue.wireValue),d.TypeLiteral.reference(d.invokeMethod({on:n,method:this.context.getPropertyName(o.discriminantValue.name),arguments_:[this.convert({typeReference:o.typeReference,value:u[o.discriminantValue.wireValue]})]}))}finally{this.context.errors.unscope()}}case"noProperties":return d.TypeLiteral.reference(d.invokeMethod({on:n,method:this.context.getPropertyName(o.discriminantValue.name),arguments_:[]}));default:S(o)}}convertObject({object_:e,value:r,as:n}){var o;let i=this.context.associateByWireValue({parameters:e.properties,values:(o=this.context.getRecord(r))!=null?o:{}});return d.TypeLiteral.builder({classReference:this.context.getJavaClassReferenceFromDeclaration({declaration:e.declaration}),parameters:i.map(u=>{this.context.errors.scope(u.name.wireValue);try{return{name:this.context.getMethodName(u.name.name),value:this.convert({typeReference:u.typeReference,value:u.value,as:n})}}finally{this.context.errors.unscope()}})})}convertEnum({enum_:e,value:r}){let n=this.getEnumValueName({enum_:e,value:r});return n==null?d.TypeLiteral.nop():d.TypeLiteral.enum_({classReference:this.context.getJavaClassReferenceFromDeclaration({declaration:e.declaration}),value:n})}getEnumValueName({enum_:e,value:r}){if(typeof r!="string"){this.context.errors.add({severity:T.Critical,message:`Expected enum value string, got: ${typeof r}`});return}let n=e.values.find(i=>i.wireValue===r);if(n==null){this.context.errors.add({severity:T.Critical,message:`An enum value named "${r}" does not exist in this context`});return}return this.context.getEnumName(n.name)}convertUndiscriminatedUnion({undiscriminatedUnion:e,value:r}){let n=this.findMatchingUndiscriminatedUnionType({undiscriminatedUnion:e,value:r});if(n==null)return d.TypeLiteral.nop();if(this.context.isPrimitive(n.valueTypeReference))return d.TypeLiteral.reference(d.invokeMethod({on:this.context.getJavaClassReferenceFromDeclaration({declaration:e.declaration}),method:"of",arguments_:[n.typeInstantiation]}));let i=this.getUndiscriminatedUnionFieldName({typeReference:n.valueTypeReference});return i==null?d.TypeLiteral.nop():d.TypeLiteral.reference(d.invokeMethod({on:this.context.getJavaClassReferenceFromDeclaration({declaration:e.declaration}),method:`of${i}`,arguments_:[n.typeInstantiation]}))}findMatchingUndiscriminatedUnionType({undiscriminatedUnion:e,value:r}){for(let n of e.types)try{let i=this.convert({typeReference:n,value:r});return{valueTypeReference:n,typeInstantiation:i}}catch(i){continue}this.context.errors.add({severity:T.Critical,message:`None of the types in the undiscriminated union matched the given "${typeof r}" value`})}getUndiscriminatedUnionFieldName({typeReference:e}){switch(e.type){case"list":return this.getUndiscriminatedUnionFieldNameForList({list:e});case"literal":return this.getUndiscriminatedUnionFieldNameForLiteral({literal:e.value});case"map":return this.getUndiscriminatedUnionFieldNameForMap({map:e});case"named":{let r=this.context.resolveNamedType({typeId:e.value});return r==null?void 0:this.context.getClassName(r.declaration.name)}case"optional":return this.getUndiscriminatedUnionFieldNameForOptional({typeReference:e});case"nullable":return this.getUndiscriminatedUnionFieldNameForNullable({typeReference:e});case"primitive":return this.getUndiscriminatedUnionFieldNameForPrimitive({primitive:e.value});case"set":return this.getUndiscriminatedUnionFieldNameForSet({set:e});case"unknown":return"Unknown";default:S(e)}}getUndiscriminatedUnionFieldNameForList({list:e}){let r=this.getUndiscriminatedUnionFieldName({typeReference:e});if(r!=null)return`ListOf${r}`}getUndiscriminatedUnionFieldNameForMap({map:e}){let r=this.getUndiscriminatedUnionFieldName({typeReference:e.key});if(r==null)return;let n=this.getUndiscriminatedUnionFieldName({typeReference:e.value});if(n!=null)return`MapOf${r}To${n}`}getUndiscriminatedUnionFieldNameForOptional({typeReference:e}){let r=this.getUndiscriminatedUnionFieldName({typeReference:e});if(r!=null)return`Optional${r}`}getUndiscriminatedUnionFieldNameForNullable({typeReference:e}){let r=this.getUndiscriminatedUnionFieldName({typeReference:e});if(r!=null)return`Nullable${r}`}getUndiscriminatedUnionFieldNameForSet({set:e}){let r=this.getUndiscriminatedUnionFieldName({typeReference:e});if(r!=null)return`SetOf${r}`}getUndiscriminatedUnionFieldNameForLiteral({literal:e}){}getUndiscriminatedUnionFieldNameForPrimitive({primitive:e}){switch(e){case"INTEGER":case"UINT":return"Integer";case"LONG":case"UINT_64":return"Long";case"FLOAT":return"Float";case"DOUBLE":return"Double";case"BOOLEAN":return"Boolean";case"BIG_INTEGER":return"BigInteger";case"STRING":return"String";case"UUID":return"Uuid";case"DATE":return"Date";case"DATE_TIME":return"DateTime";case"BASE_64":return"Base64";default:S(e)}}convertUnknown({value:e}){return d.TypeLiteral.unknown(e)}convertPrimitive({primitive:e,value:r,as:n}){switch(e){case"INTEGER":case"UINT":{let i=this.getValueAsNumber({value:r,as:n});return i==null?d.TypeLiteral.nop():d.TypeLiteral.integer(i)}case"LONG":case"UINT_64":{let i=this.getValueAsNumber({value:r,as:n});return i==null?d.TypeLiteral.nop():d.TypeLiteral.long(i)}case"FLOAT":{let i=this.getValueAsNumber({value:r,as:n});return i==null?d.TypeLiteral.nop():d.TypeLiteral.float(i)}case"DOUBLE":{let i=this.getValueAsNumber({value:r,as:n});return i==null?d.TypeLiteral.nop():d.TypeLiteral.double(i)}case"BOOLEAN":{let i=this.getValueAsBoolean({value:r,as:n});return i==null?d.TypeLiteral.nop():d.TypeLiteral.boolean(i)}case"STRING":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.string(i)}case"DATE":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.string(i)}case"DATE_TIME":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.dateTime(i)}case"UUID":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.uuid(i)}case"BASE_64":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.bytes(i)}case"BIG_INTEGER":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.bigInteger(i)}default:S(e)}}getValueAsNumber({value:e,as:r}){let n=r==="mapKey"&&typeof e=="string"?Number(e):e;return this.context.getValueAsNumber({value:n})}getValueAsBoolean({value:e,as:r}){let n=r==="mapKey"?typeof e=="string"?e==="true":e==="false"?!1:e:e;return this.context.getValueAsBoolean({value:n})}};a();s();var Tt=class{constructor({context:e}){v(this,"context");this.context=e}convert(e){switch(e.typeReference.type){case"list":return d.Type.list(this.convert({typeReference:e.typeReference}));case"literal":return this.convertLiteral({literal:e.typeReference.value});case"map":return d.Type.map(this.convert({typeReference:e.typeReference.key}),this.convert({typeReference:e.typeReference.value}));case"named":{let r=this.context.resolveNamedType({typeId:e.typeReference.value});return r==null?this.convertUnknown():this.convertNamed({named:r})}case"optional":case"nullable":return d.Type.optional(this.convert({typeReference:e.typeReference.value}));case"primitive":return this.convertPrimitive({primitive:e.typeReference.value});case"set":return d.Type.set(this.convert({typeReference:e.typeReference}));case"unknown":return this.convertUnknown();default:S(e.typeReference)}}convertNamed({named:e}){switch(e.type){case"alias":return this.convert({typeReference:e.typeReference});case"enum":case"discriminatedUnion":case"object":case"undiscriminatedUnion":return d.Type.reference(d.classReference({name:this.context.getClassName(e.declaration.name),packageName:this.context.getTypesPackageName(e.declaration.fernFilepath)}));default:S(e)}}convertLiteral({literal:e}){switch(e.type){case"boolean":return d.Type.boolean();case"string":return d.Type.string()}}convertUnknown(){return d.Type.object()}convertPrimitive({primitive:e}){switch(e){case"INTEGER":return d.Type.integer();case"UINT":return d.Type.integer();case"LONG":return d.Type.long();case"UINT_64":return d.Type.long();case"FLOAT":return d.Type.float();case"DOUBLE":return d.Type.double();case"BOOLEAN":return d.Type.boolean();case"STRING":return d.Type.string();case"DATE":return d.Type.date();case"DATE_TIME":return d.Type.dateTime();case"UUID":return d.Type.uuid();case"BASE_64":return d.Type.bytes();case"BIG_INTEGER":return d.Type.bigInteger();default:S(e)}}};a();s();var Rt=class{constructor({context:e}){v(this,"context");this.context=e}getFilePropertyInfo({body:e,value:r}){var o;let n={fileFields:[],bodyPropertyFields:[]},i=(o=this.context.getRecord(r))!=null?o:{};for(let u of e.properties)switch(u.type){case"file":n.fileFields.push({name:this.context.getMethodName(u.name),value:this.getSingleFileProperty({property:u,record:i})});break;case"fileArray":n.fileFields.push({name:this.context.getMethodName(u.name),value:this.getArrayFileProperty({property:u,record:i})});break;case"bodyProperty":n.bodyPropertyFields.push({name:this.context.getMethodName(u.name.name),value:this.getBodyProperty({property:u,record:i})});break;default:S(u)}return n}getSingleFileProperty({property:e,record:r}){let n=this.context.getSingleFileValue({property:e,record:r});return n==null?d.TypeLiteral.nop():d.TypeLiteral.reference(this.context.getFileStreamFromString(n))}getArrayFileProperty({property:e,record:r}){let n=this.context.getFileArrayValues({property:e,record:r});if(n==null)return d.TypeLiteral.nop();for(let i of n)return d.TypeLiteral.reference(this.context.getFileStreamFromString(i));return d.TypeLiteral.nop()}getBodyProperty({property:e,record:r}){let n=r[e.name.wireValue];return n==null?d.TypeLiteral.nop():this.context.dynamicTypeLiteralMapper.convert({typeReference:e.typeReference,value:n})}};var wv=new Set(["enum","extends","package","void","short","class","abstract","return","import","for","assert","switch","getClass"]),Et=class t extends Tr{constructor({ir:r,config:n,options:i}){super({ir:r,config:n,options:i});v(this,"ir");v(this,"customConfig");v(this,"dynamicTypeMapper");v(this,"dynamicTypeLiteralMapper");v(this,"filePropertyMapper");this.ir=r,this.customConfig=n.customConfig!=null?n.customConfig:void 0,this.dynamicTypeMapper=new Tt({context:this}),this.dynamicTypeLiteralMapper=new St({context:this}),this.filePropertyMapper=new Rt({context:this})}clone(){return new t({ir:this.ir,config:this.config,options:this.options})}getClassName(r){return this.getName(r.pascalCase.safeName)}getEnumName(r){return this.getName(r.screamingSnakeCase.safeName)}getPropertyName(r){return this.getName(r.camelCase.safeName)}getMethodName(r){return this.getName(r.camelCase.safeName)}getRootClientClassReference(){return d.classReference({name:this.getRootClientClassName(),packageName:this.getRootPackageName()})}getRootClientClassName(){var r,n;return(n=(r=this.customConfig)==null?void 0:r["client-class-name"])!=null?n:`${this.getBaseNamePrefix()}Client`}getEnvironmentClassName(){return"Environment"}getEnvironmentTypeReferenceFromID(r){let n=this.resolveEnvironmentName(r);if(n!=null)return this.getEnvironmentClassReferenceForEnumName(n)}getEnvironmentClassReference(){return d.classReference({name:this.getEnvironmentClassName(),packageName:this.getCorePackageName()})}getEnvironmentClassReferenceForEnumName(r){return d.classReference({name:`${this.getEnvironmentClassName()}.${this.getEnumName(r)}`,packageName:this.getCorePackageName()})}getJavaClassReferenceFromDeclaration({declaration:r}){return d.classReference({name:r.name.pascalCase.unsafeName,packageName:this.getTypesPackageName(r.fernFilepath)})}getNullableClassReference(){return d.classReference({name:"Nullable",packageName:this.getCorePackageName()})}getNullableOfNull(){return d.TypeLiteral.reference(d.invokeMethod({on:this.getNullableClassReference(),method:"ofNull",arguments_:[]}))}getFileStreamFromString(r){return d.TypeLiteral.reference(d.codeblock(n=>{n.write("new "),n.writeNode(this.getFileStreamClassReference()),n.write("("),n.writeNode(this.getByteArrayInputStreamClassReference()),n.write("("),n.writeNode(d.TypeLiteral.string(r)),n.write(".getBytes("),n.writeNode(this.getStandardCharsetsClassReference()),n.write(".UTF_8)))")}))}getFileStreamClassReference(){return d.classReference({name:"FileStream",packageName:this.getCorePackageName()})}getByteArrayInputStreamClassReference(){return d.classReference({name:"ByteArrayInputStream",packageName:"java.io"})}getStandardCharsetsClassReference(){return d.classReference({name:"StandardCharsets",packageName:"java.nio.charset"})}isPrimitive(r){switch(r.type){case"primitive":return!0;case"optional":case"nullable":return this.isPrimitive(r.value);case"named":{let n=this.resolveNamedType({typeId:r.value});if(n==null)return!1;switch(n.type){case"alias":return this.isPrimitive(n.typeReference);case"discriminatedUnion":case"undiscriminatedUnion":case"object":case"enum":return!1;default:S(n)}break}case"list":case"set":case"map":case"literal":case"unknown":return!1;default:S(r)}}getRootPackageName(){let r=this.getPackagePrefixTokens();return this.joinPackageTokens(r)}getCorePackageName(){let r=this.getPackagePrefixTokens();return r.push("core"),this.joinPackageTokens(r)}getTypesPackageName(r){return this.getResourcesPackage(r,"types")}getRequestsPackageName(r){return this.getPackageLayout()==="flat"?this.getTypesPackageName(r):this.getResourcesPackage(r,"requests")}getResourcesPackage(r,n){let i=this.getPackagePrefixTokens();switch(this.getPackageLayout()){case"flat":r!=null&&i.push(...r.packagePath.map(o=>this.getPackageNameSegment(o)));break;case"nested":default:r!=null&&r.allParts.length>0&&i.push("resources"),r!=null&&i.push(...r.allParts.map(o=>this.getPackageNameSegment(o)))}return n!=null&&i.push(n),this.joinPackageTokens(i)}getPackageName(r,n){let i=this.getPackageNameSegments(r);return i=n!=null?[...i,n]:i,[...this.getPackagePrefixTokens(),...i].join(".")}getPackageLayout(){var r,n;return(n=(r=this.customConfig)==null?void 0:r["package-layout"])!=null?n:"nested"}getPackageNameSegments(r){return r.packagePath.map(n=>this.getPackageNameSegment(n))}getPackageNameSegment(r){return r.camelCase.safeName.toLowerCase()}getPackagePrefixTokens(){var n;if(((n=this.customConfig)==null?void 0:n["package-prefix"])!=null)return this.customConfig["package-prefix"].split(".");let r=[];return r.push("com"),r.push(...this.splitOnNonAlphaNumericChar(this.config.organization)),r.push(...this.splitOnNonAlphaNumericChar(this.getApiName())),r}getBaseNamePrefix(){return this.convertKebabCaseToUpperCamelCase(this.config.organization)+this.convertKebabCaseToUpperCamelCase(this.getApiName())}getApiName(){return oi(this.config.workspaceName)}startsWithNumber(r){return/^\d/.test(r)}splitOnNonAlphaNumericChar(r){return r.split(/[^a-zA-Z0-9]/)}convertKebabCaseToUpperCamelCase(r){return r.replace(/-([a-z])/g,(n,i)=>i.toUpperCase()).replace(/^[a-z]/,n=>n.toUpperCase())}joinPackageTokens(r){return r.map(i=>this.startsWithNumber(i)?"_"+i:i).join(".")}getName(r){return this.isReservedName(r)?"_"+r:r}isReservedName(r){return wv.has(r)}};var It=class extends br{constructor({ir:r,config:n,options:i={}}){super(new Et({ir:r,config:n,options:i}));v(this,"formatter")}async generate(r,n={}){return super.generate(r,n)}generateSync(r,n={}){return super.generateSync(r,n)}createSnippetGenerator(r){return new At({context:r})}};0&&(module.exports={DynamicSnippetsGenerator});
|
|
27
|
+
`)}};var P=class extends be{async toStringAsync({packageName:e,customConfig:r,formatter:n}){let i=new Rr({packageName:e,customConfig:r,formatter:n});return this.write(i),i.toStringAsync()}toString({packageName:e,customConfig:r,formatter:n}){let i=new Rr({packageName:e,customConfig:r,formatter:n});return this.write(i),i.toString()}};a();s();var Te=class extends P{constructor({name:r,access:n}){super();g(this,"name");g(this,"access");g(this,"methods",[]);this.name=r,this.access=n}write(r){if(r.write(`${this.access} class ${this.name}`),this.isEmpty()){r.writeLine(" {}");return}r.writeLine(" {"),r.indent();for(let n of this.methods)r.writeNode(n),r.newLine();r.dedent(),r.write("}")}addMethod(r){this.methods.push(r)}isEmpty(){return this.methods.length===0}};a();s();var E=class extends P{constructor({name:r,packageName:n,fullyQualified:i}){super();g(this,"name");g(this,"packageName");g(this,"fullyQualified");this.name=r,this.packageName=n,this.fullyQualified=i!=null?i:!1}write(r){if(r.addImport(`${this.packageName}.${this.name}`),this.fullyQualified){r.write(`${this.packageName}.${this.name}`);return}r.write(this.name)}};a();s();a();s();a();s();a();s();var Er=class extends P{constructor(r){super();g(this,"internalType");this.internalType=r}write(r){switch(this.internalType.type){case"bigInteger":r.writeNode(Hg);break;case"boolean":r.write("Boolean");break;case"bytes":r.write("byte[]");break;case"float":r.write("Float");break;case"date":r.write("String");break;case"dateTime":r.writeNode(Zg);break;case"double":r.write("Double");break;case"integer":r.write("Integer");break;case"list":{this.writeList({writer:r,list:this.internalType});break}case"long":{r.write("Long");break}case"map":{this.writeMap({writer:r,map:this.internalType});break}case"object":{r.write("Object");break}case"optional":{this.writeOptional({writer:r,optional:this.internalType});break}case"reference":r.writeNode(this.internalType.value);break;case"set":{this.writeSet({writer:r,set:this.internalType});break}case"string":r.write("String");break;case"uuid":r.writeNode(Qg);break;default:S(this.internalType)}}isOptional(){return this.internalType.type==="optional"}static bigInteger(){return new this({type:"bigInteger"})}static boolean(){return new this({type:"boolean"})}static bytes(){return new this({type:"bytes"})}static date(){return new this({type:"date"})}static dateTime(){return new this({type:"dateTime"})}static double(){return new this({type:"double"})}static float(){return new this({type:"float"})}static integer(){return new this({type:"integer"})}static list(r){return new this({type:"list",value:r})}static long(){return new this({type:"long"})}static map(r,n){return new this({type:"map",keyType:r,valueType:n})}static object(){return new this({type:"object"})}static optional(r){return this.isAlreadyOptional(r)?r:new this({type:"optional",value:r})}static reference(r){return new this({type:"reference",value:r})}static set(r){return new this({type:"set",value:r})}static string(){return new this({type:"string"})}static uuid(){return new this({type:"uuid"})}writeList({writer:r,list:n}){r.writeNode(Jg),r.write("<"),n.value.write(r),r.write(">")}writeMap({writer:r,map:n}){r.writeNode(Kg),r.write("<"),n.keyType.write(r),r.write(", "),n.valueType.write(r),r.write(">")}writeOptional({writer:r,optional:n}){r.writeNode(li),r.write("<"),n.value.write(r),r.write(">")}writeSet({writer:r,set:n}){r.writeNode(Xg),r.write("<"),n.value.write(r),r.write(">")}static isAlreadyOptional(r){return r.internalType.type==="optional"}},ui=new E({name:"Arrays",packageName:"java.util"}),Hg=new E({name:"BigInteger",packageName:"java.math"}),i1=new E({name:"HashMap",packageName:"java.util"}),Jg=new E({name:"List",packageName:"java.util"}),Kg=new E({name:"Map",packageName:"java.util"}),Zg=new E({name:"OffsetDateTime",packageName:"java.time"}),li=new E({name:"Optional",packageName:"java.util"}),Xg=new E({name:"Set",packageName:"java.util"}),Qg=new E({name:"UUID",packageName:"java.util"});var B=class t extends P{constructor(r){super();g(this,"internalType");this.internalType=r}write(r){switch(this.internalType.type){case"bigInteger":this.writeBigInteger({writer:r,bigInteger:this.internalType});break;case"boolean":r.write(this.internalType.value.toString());break;case"builder":this.writeBuilder({writer:r,builder:this.internalType});break;case"bytes":r.write(`"${this.internalType.value}".getBytes()`);break;case"class":{this.writeClass({writer:r,class_:this.internalType});break}case"date":r.write(`"${this.internalType.value}"`);break;case"dateTime":this.writeDateTime({writer:r,dateTime:this.internalType});break;case"double":r.write(this.internalType.value.toString());break;case"enum":this.writeEnum({writer:r,enum_:this.internalType});break;case"float":r.write(`${this.internalType.value}f`);break;case"integer":r.write(this.internalType.value.toString());break;case"list":{this.writeList({writer:r,list:this.internalType});break}case"long":{r.write(`${this.internalType.value}L`);break}case"map":{this.writeMap({writer:r,map:this.internalType});break}case"optional":{this.writeOptional({writer:r,optional:this.internalType});break}case"raw":{r.write(this.internalType.value);break}case"reference":r.writeNode(this.internalType.value);break;case"set":{this.writeSet({writer:r,set:this.internalType});break}case"string":r.write(`"${this.escapeString(this.internalType.value)}"`);break;case"unknown":this.writeUnknown({writer:r,value:this.internalType.value});break;case"uuid":this.writeUUID({writer:r,uuid:this.internalType});break;case"nop":break;default:S(this.internalType)}}isOptional(){return this.internalType.type==="optional"}static bigInteger(r){return new this({type:"bigInteger",value:r})}static boolean(r){return new this({type:"boolean",value:r})}static builder({classReference:r,parameters:n}){return new this({type:"builder",classReference:r,parameters:n})}static bytes(r){return new this({type:"bytes",value:r})}static class_({reference:r,parameters:n}){return new this({type:"class",reference:r,parameters:n})}static date(r){return new this({type:"date",value:r})}static dateTime(r){return new this({type:"dateTime",value:r})}static double(r){return new this({type:"double",value:r})}static enum_({classReference:r,value:n}){return new this({type:"enum",classReference:r,value:n})}static float(r){return new this({type:"float",value:r})}static integer(r){return new this({type:"integer",value:r})}static list({valueType:r,values:n}){return new this({type:"list",valueType:r,values:n})}static long(r){return new this({type:"long",value:r})}static map({keyType:r,valueType:n,entries:i}){return new this({type:"map",keyType:r,valueType:n,entries:i})}static optional({value:r,useOf:n}){return this.isAlreadyOptional(r)?r:new this({type:"optional",value:r,useOf:n})}static raw(r){return new this({type:"raw",value:r})}static reference(r){return new this({type:"reference",value:r})}static set({valueType:r,values:n}){return new this({type:"set",valueType:r,values:n})}static string(r){return new this({type:"string",value:r})}static unknown(r){return new this({type:"unknown",value:r})}static uuid(r){return new this({type:"uuid",value:r})}static nop(){return new this({type:"nop"})}static isNop(r){return r.internalType.type==="nop"}shouldWriteInLine(){switch(this.internalType.type){case"bigInteger":case"boolean":case"bytes":case"date":case"dateTime":case"double":case"enum":case"float":case"integer":case"long":case"nop":case"raw":case"string":case"unknown":case"uuid":return!0;case"optional":return this.internalType.value.shouldWriteInLine();case"builder":case"class":case"list":case"map":case"reference":case"set":return!1;default:S(this.internalType)}}writeBigInteger({writer:r,bigInteger:n}){r.write("new "),r.writeNode(d.instantiateClass({classReference:ev,arguments_:[t.string(n.value)]}))}writeBuilder({writer:r,builder:n}){r.writeNode(n.classReference),r.writeNewLineIfLastLineNot(),r.indent(),this.writeBuilderParameters({writer:r,parameters:this.orderBuilderParameters(ov({parameters:n.parameters}))}),r.dedent()}writeBuilderParameters({writer:r,parameters:n}){r.writeLine(".builder()");for(let i of n)r.write(`.${i.name}(`),i.value.shouldWriteInLine()||r.newLine(),r.indent(),r.writeNode(i.value),r.dedent(),i.value.shouldWriteInLine()||r.newLine(),r.writeLine(")");r.writeNewLineIfLastLineNot(),r.write(".build()")}orderBuilderParameters(r){return r.sort((n,i)=>n.value.isOptional()&&!i.value.isOptional()?1:!n.value.isOptional()&&i.value.isOptional()?-1:0)}writeClass({writer:r,class_:n}){let i=iv({parameters:n.parameters});r.writeNode(d.instantiateClass({classReference:n.reference,arguments_:i.map(o=>o.value)}))}writeDateTime({writer:r,dateTime:n}){r.writeNode(d.invokeMethod({on:tv,method:"parse",arguments_:[t.string(n.value)]}))}writeEnum({writer:r,enum_:n}){r.writeNode(n.classReference),r.write("."+n.value)}writeList({writer:r,list:n}){this.writeIterable({writer:r,iterable:n})}writeMap({writer:r,map:n}){let i=av({entries:n.entries});if(i.length===0){r.write("new "),r.writeNode(wt),r.write("<"),r.writeNode(n.keyType),r.write(", "),r.writeNode(n.valueType),r.write(">()");return}r.write("new "),r.writeNode(wt),r.write("<"),r.writeNode(n.keyType),r.write(", "),r.writeNode(n.valueType),r.writeLine(">() {{"),r.indent();for(let o of i)r.write("put("),r.writeNode(o.key),r.write(", "),r.writeNode(o.value),r.writeLine(");");r.dedent(),r.write("}}")}writeOptional({writer:r,optional:n}){if(!n.useOf){r.writeNode(n.value);return}r.writeNode(d.invokeMethod({on:li,method:"of",arguments_:[n.value]}))}writeSet({writer:r,set:n}){this.writeIterable({writer:r,iterable:n})}writeIterable({writer:r,iterable:n}){let i=n.type==="list"?pi:rv,o=sv({values:n.values});if(o.length===0){r.write(`new ${i.name}<`),r.writeNode(n.valueType),r.write(">()");return}r.write("new "),r.writeNode(i),r.write("<"),r.writeNode(n.valueType),r.writeLine(">("),r.indent(),r.writeNode(d.invokeMethod({on:ui,method:"asList",arguments_:o})),r.writeNewLineIfLastLineNot(),r.dedent(),r.write(")")}writeUnknown({writer:r,value:n}){switch(typeof n){case"boolean":r.write(n.toString());return;case"string":r.write(`"${this.escapeString(n)}"`);return;case"number":r.write(n.toString());return;case"object":if(n==null){r.write("null");return}if(Array.isArray(n)){this.writeUnknownArray({writer:r,value:n});return}this.writeUnknownMap({writer:r,value:n});return;default:throw new Error(`Internal error; unsupported unknown type: ${typeof n}`)}}writeUnknownArray({writer:r,value:n}){if(n.length===0){r.write("new"),r.writeNode(pi),r.write("<Object>()");return}r.writeLine("new"),r.writeNode(pi),r.write("<Object>() {"),r.indent(),r.writeNode(d.invokeMethod({on:ui,method:"asList",arguments_:n.map(i=>t.unknown(i))})),r.writeNewLineIfLastLineNot(),r.dedent(),r.write("}")}writeUnknownMap({writer:r,value:n}){let i=Object.entries(n);if(i.length===0){r.write("new "),r.writeNode(wt),r.write("<String, Object>()");return}r.writeLine("new "),r.writeNode(wt),r.write("<String, Object>() {{"),r.indent();for(let[o,u]of i)r.write(`put("${o}", `),r.writeNode(t.unknown(u)),r.writeLine(");");r.dedent(),r.write("}}")}writeUUID({writer:r,uuid:n}){r.writeNode(d.invokeMethod({on:nv,method:"fromString",arguments_:[t.string(n.value)]}))}escapeString(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}static isAlreadyOptional(r){return r.internalType.type==="optional"}},pi=new E({name:"ArrayList",packageName:"java.util"}),ev=new E({name:"BigInteger",packageName:"java.math"}),wt=new E({name:"HashMap",packageName:"java.util"}),rv=new E({name:"HashSet",packageName:"java.util"}),y1=new E({name:"List",packageName:"java.util"}),m1=new E({name:"Map",packageName:"java.util"}),tv=new E({name:"OffsetDateTime",packageName:"java.time"}),h1=new E({name:"Set",packageName:"java.util"}),nv=new E({name:"UUID",packageName:"java.util"});function iv({parameters:t}){return t.filter(e=>!B.isNop(e.value))}function ov({parameters:t}){return t.filter(e=>!B.isNop(e.value))}function av({entries:t}){return t.filter(e=>!B.isNop(e.key)&&!B.isNop(e.value))}function sv({values:t}){return t.filter(e=>!B.isNop(e))}function bt({writer:t,arguments_:e}){let r=lv(e);if(r.length===0){t.write("()");return}if(r.some(i=>i instanceof B&&!i.shouldWriteInLine())){uv({writer:t,arguments_:r});return}t.write("("),r.forEach((i,o)=>{o>0&&t.write(", "),fp({writer:t,argument:i})}),t.write(")")}function uv({writer:t,arguments_:e}){t.writeLine("("),t.indent(),e.forEach((r,n)=>{n>0&&t.writeLine(","),fp({writer:t,argument:r})}),t.dedent(),e.length>0&&t.newLine(),t.write(")")}function fp({writer:t,argument:e}){ai(e)?t.writeNodeOrString(e.assignment):e.write(t)}function lv(t){return t.filter(e=>!(e instanceof B&&B.isNop(e)))}var Re=class extends P{constructor({classReference:r,arguments_:n}){super();g(this,"classReference");g(this,"arguments_");this.classReference=r,this.arguments_=n}write(r){r.writeNode(this.classReference),bt({writer:r,arguments_:this.arguments_})}};a();s();var Ee=class extends P{constructor(r){super();g(this,"arg");this.arg=r}write(r){return new z(this.arg).write(r)}};a();s();var Ie=class extends P{constructor({name:r,access:n,parameters:i,body:o,static_:u,return_:p}){super();g(this,"name");g(this,"access");g(this,"parameters");g(this,"body");g(this,"return_");g(this,"static_");this.name=r,this.access=n,this.parameters=i,this.body=o,this.return_=p,this.static_=u!=null?u:!1}write(r){if(r.write(`${this.access} `),this.static_&&r.write("static "),this.return_!=null?r.writeNode(this.return_):r.write("void"),r.write(` ${this.name}`),this.parameters.length===0?r.write("()"):(r.writeLine("("),r.indent(),this.parameters.forEach((n,i)=>{i>0&&r.writeLine(", "),r.writeNode(n)}),r.dedent(),r.write(")")),this.body==null){r.write(";");return}r.writeLine(" {"),r.indent(),r.writeNode(this.body),r.writeNewLineIfLastLineNot(),r.dedent(),r.write("}")}};a();s();var Pe=class extends P{constructor({method:r,arguments_:n,on:i}){super();g(this,"on");g(this,"method");g(this,"arguments_");this.on=i,this.method=r,this.arguments_=n}write(r){this.on.write(r),r.write("."),r.write(this.method),bt({writer:r,arguments_:this.arguments_})}};a();s();var Ne=class extends P{constructor({name:r,type:n}){super();g(this,"name");g(this,"type");this.name=r,this.type=n}write(r){r.writeNode(this.type),r.write(` ${this.name}`)}};function pv(t){return new Ee(t)}function fv(t){return new Te(t)}function cv(t){return new E(t)}function dv(t){return new Re(t)}function yv(t){return new Pe(t)}function mv(t){return new Ie(t)}function hv(t){return new Ne(t)}var cp="com.example.usage",gv="Example",vv="run",dp="client",xv={type:"primitive",value:"STRING"},At=class{constructor({context:e,formatter:r}){g(this,"context");g(this,"formatter");this.context=e,this.formatter=r}async generateSnippet({endpoint:e,request:r,options:n}){var u,p;let i=this.getConfig(n);return await this.buildCodeBlock({endpoint:e,snippet:r,options:n}).toStringAsync({packageName:(u=i.fullStylePackageName)!=null?u:cp,customConfig:(p=this.context.customConfig)!=null?p:{},formatter:this.formatter})}generateSnippetSync({endpoint:e,request:r,options:n}){var u,p;let i=this.getConfig(n);return this.buildCodeBlock({endpoint:e,snippet:r,options:n}).toString({packageName:(u=i.fullStylePackageName)!=null?u:cp,customConfig:(p=this.context.customConfig)!=null?p:{},formatter:this.formatter})}buildCodeBlock({endpoint:e,snippet:r,options:n}){let i=d.codeblock(u=>{u.writeNodeStatement(this.constructClient({endpoint:e,snippet:r})),u.newLine(),u.writeNodeStatement(this.callMethod({endpoint:e,snippet:r}))}),o=this.getStyle(n);switch(o){case Ae.Concise:return i;case Ae.Full:return this.buildFullCodeBlock({body:i,options:n});default:S(o)}}constructClient({endpoint:e,snippet:r}){return d.codeblock(n=>{n.writeNode(this.context.getRootClientClassReference()),n.write(` ${dp} = `),n.writeNode(d.TypeLiteral.builder({classReference:this.context.getRootClientClassReference(),parameters:this.getRootClientBuilderArgs({endpoint:e,snippet:r})}))})}buildFullCodeBlock({body:e,options:r}){var o;let n=this.getConfig(r),i=d.class_({name:(o=n.fullStyleClassName)!=null?o:gv,access:d.Access.Public});return i.addMethod(d.method({name:vv,access:d.Access.Public,static_:!0,parameters:[],body:e})),i}getRootClientBuilderArgs({endpoint:e,snippet:r}){let n=[];e.auth!=null&&(r.auth!=null?n.push(...this.getRootClientAuthArgs({auth:e.auth,values:r.auth})):this.context.errors.add({severity:T.Warning,message:`Auth with ${e.auth.type} configuration is required for this endpoint`}));let i=this.getRootClientBaseUrlArg({baseUrl:r.baseURL,environment:r.environment});return i!=null&&n.push(i),this.context.errors.scope(Y.Headers),this.context.ir.headers!=null&&r.headers!=null&&n.push(...this.getRootClientHeaderArgs({headers:this.context.ir.headers,values:r.headers})),this.context.errors.unscope(),n}getRootClientBaseUrlArg({baseUrl:e,environment:r}){var n;if(e!=null&&r!=null){this.context.errors.add({severity:T.Critical,message:"Cannot specify both baseUrl and environment options"});return}if(e!=null){if(((n=this.context.ir.environments)==null?void 0:n.environments.type)==="multipleBaseUrls"){this.context.errors.add({severity:T.Critical,message:"The Java SDK doesn't support a baseUrl when multiple URL environments are configured"});return}return{name:"url",value:d.TypeLiteral.string(e)}}if(r!=null){if(this.context.isSingleEnvironmentID(r)){let i=this.context.getEnvironmentTypeReferenceFromID(r);if(i==null){this.context.errors.add({severity:T.Warning,message:`Environment ${JSON.stringify(r)} was not found`});return}return{name:"environment",value:d.TypeLiteral.reference(i)}}if(this.context.isMultiEnvironmentValues(r))return this.context.validateMultiEnvironmentUrlValues(r)?{name:"environment",value:d.TypeLiteral.reference(d.instantiateClass({classReference:this.context.getEnvironmentClassReference(),arguments_:Object.values(r).map(i=>this.context.dynamicTypeLiteralMapper.convert({typeReference:xv,value:i}))}))}:void 0}}getRootClientAuthArgs({auth:e,values:r}){switch(e.type){case"basic":return r.type!=="basic"?(this.context.errors.add({severity:T.Critical,message:this.context.newAuthMismatchError({auth:e,values:r}).message}),[]):this.getRootClientBasicAuthArgs({auth:e,values:r});case"bearer":return r.type!=="bearer"?(this.context.errors.add({severity:T.Critical,message:this.context.newAuthMismatchError({auth:e,values:r}).message}),[]):this.getRootClientBearerAuthArgs({auth:e,values:r});case"header":return r.type!=="header"?(this.context.errors.add({severity:T.Critical,message:this.context.newAuthMismatchError({auth:e,values:r}).message}),[]):this.getRootClientHeaderAuthArgs({auth:e,values:r});case"oauth":return r.type!=="oauth"?(this.context.errors.add({severity:T.Critical,message:this.context.newAuthMismatchError({auth:e,values:r}).message}),[]):this.getRootClientOAuthArgs({auth:e,values:r});default:S(e)}}getRootClientBasicAuthArgs({auth:e,values:r}){return[{name:"credentials",value:d.TypeLiteral.raw(`"${r.username}", "${r.password}"`)}]}getRootClientBearerAuthArgs({auth:e,values:r}){return[{name:this.context.getMethodName(e.token),value:d.TypeLiteral.string(r.token)}]}getRootClientHeaderAuthArgs({auth:e,values:r}){return[{name:this.context.getMethodName(e.header.name.name),value:this.context.dynamicTypeLiteralMapper.convert({typeReference:e.header.typeReference,value:r.value})}]}getRootClientOAuthArgs({auth:e,values:r}){return[{name:this.context.getMethodName(e.clientId),value:d.TypeLiteral.string(r.clientId)},{name:this.context.getMethodName(e.clientSecret),value:d.TypeLiteral.string(r.clientSecret)}]}getRootClientHeaderArgs({headers:e,values:r}){let n=[];for(let i of e){let o=this.getRootClientHeaderArg({header:i,value:r.value});o!=null&&n.push({name:this.context.getMethodName(i.name.name),value:o})}return n}getRootClientHeaderArg({header:e,value:r}){let n=this.context.dynamicTypeLiteralMapper.convert({typeReference:e.typeReference,value:r});if(!d.TypeLiteral.isNop(n))return n}callMethod({endpoint:e,snippet:r}){return d.invokeMethod({on:d.codeblock(dp),method:this.getMethod({endpoint:e}),arguments_:this.getMethodArgs({endpoint:e,snippet:r})})}getMethodArgs({endpoint:e,snippet:r}){switch(e.request.type){case"inlined":return this.getMethodArgsForInlinedRequest({request:e.request,snippet:r});case"body":return this.getMethodArgsForBodyRequest({request:e.request,snippet:r});default:S(e.request)}}getMethodArgsForBodyRequest({request:e,snippet:r}){var o,u;let n=[];this.context.errors.scope(Y.PathParameters);let i=[...(o=this.context.ir.pathParameters)!=null?o:[],...(u=e.pathParameters)!=null?u:[]];return i.length>0&&n.push(...this.getPathParameters({namedParameters:i,snippet:r}).map(p=>p.value)),this.context.errors.unscope(),this.context.errors.scope(Y.RequestBody),e.body!=null&&n.push(this.getBodyRequestArg({body:e.body,value:r.requestBody})),this.context.errors.unscope(),n}getBodyRequestArg({body:e,value:r}){switch(e.type){case"bytes":return this.getBytesBodyRequestArg({value:r});case"typeReference":return e.value.type==="optional"?d.TypeLiteral.optional({value:this.context.dynamicTypeLiteralMapper.convert({typeReference:e.value.value,value:r}),useOf:!0}):this.context.dynamicTypeLiteralMapper.convert({typeReference:e.value,value:r});default:S(e)}}getBytesBodyRequestArg({value:e}){return typeof e!="string"?(this.context.errors.add({severity:T.Critical,message:`Expected bytes value to be a string, got ${typeof e}`}),d.TypeLiteral.nop()):d.TypeLiteral.bytes(e)}getMethodArgsForInlinedRequest({request:e,snippet:r}){let n=[],{inlinePathParameters:i,inlineFileProperties:o}={inlinePathParameters:this.context.shouldInlinePathParameters(),inlineFileProperties:this.context.shouldInlineFileProperties()};this.context.errors.scope(Y.PathParameters);let u=[];e.pathParameters!=null&&u.push(...this.getPathParameters({namedParameters:e.pathParameters,snippet:r})),this.context.errors.unscope(),this.context.errors.scope(Y.RequestBody);let p=this.getFilePropertyInfo({request:e,snippet:r});return this.context.errors.unscope(),this.context.includePathParametersInWrappedRequest({request:e,inlinePathParameters:i})||n.push(...u.map(c=>c.value)),o||n.push(...p.fileFields.map(c=>c.value)),n.push(this.getInlinedRequestArg({request:e,snippet:r,pathParameterFields:this.context.includePathParametersInWrappedRequest({request:e,inlinePathParameters:i})?u:[],filePropertyInfo:p})),n}getFilePropertyInfo({request:e,snippet:r}){return e.body==null||!this.context.isFileUploadRequestBody(e.body)?{fileFields:[],bodyPropertyFields:[]}:this.context.filePropertyMapper.getFilePropertyInfo({body:e.body,value:r.requestBody})}getInlinedRequestArg({request:e,snippet:r,pathParameterFields:n,filePropertyInfo:i}){var h,m,x,w;this.context.errors.scope(Y.QueryParameters);let u=this.context.associateQueryParametersByWireValue({parameters:(h=e.queryParameters)!=null?h:[],values:(m=r.queryParameters)!=null?m:{}}).map(R=>({name:this.context.getMethodName(R.name.name),value:this.context.dynamicTypeLiteralMapper.convert(R)}));this.context.errors.unscope(),this.context.errors.scope(Y.Headers);let c=this.context.associateByWireValue({parameters:(x=e.headers)!=null?x:[],values:(w=r.headers)!=null?w:{}}).map(R=>({name:this.context.getMethodName(R.name.name),value:this.context.dynamicTypeLiteralMapper.convert(R)}));this.context.errors.unscope(),this.context.errors.scope(Y.RequestBody);let v=e.body!=null?this.getInlinedRequestBodyBuilderParameters({body:e.body,value:r.requestBody,filePropertyInfo:i}):[];return this.context.errors.unscope(),d.TypeLiteral.builder({classReference:d.classReference({name:this.context.getClassName(e.declaration.name),packageName:this.context.getRequestsPackageName(e.declaration.fernFilepath)}),parameters:[...n,...c,...u,...v]})}getInlinedRequestBodyBuilderParameters({body:e,value:r,filePropertyInfo:n}){switch(e.type){case"properties":return this.getInlinedRequestBodyPropertyBuilderParameters({parameters:e.value,value:r});case"referenced":return[this.getReferencedRequestBodyPropertyBuilderParameter({body:e,value:r})];case"fileUpload":return this.getFileUploadRequestBodyBuilderParameters({filePropertyInfo:n});default:S(e)}}getFileUploadRequestBodyBuilderParameters({filePropertyInfo:e}){return this.context.shouldInlineFileProperties()?[...e.fileFields,...e.bodyPropertyFields]:e.bodyPropertyFields}getReferencedRequestBodyPropertyBuilderParameter({body:e,value:r}){return{name:this.context.getMethodName(e.bodyKey),value:this.getReferencedRequestBodyPropertyTypeLiteral({body:e.bodyType,value:r})}}getReferencedRequestBodyPropertyTypeLiteral({body:e,value:r}){switch(e.type){case"bytes":return this.getBytesBodyRequestArg({value:r});case"typeReference":return this.context.dynamicTypeLiteralMapper.convert({typeReference:e.value,value:r});default:S(e)}}getInlinedRequestBodyPropertyBuilderParameters({parameters:e,value:r}){var o;let n=[],i=this.context.associateByWireValue({parameters:e,values:(o=this.context.getRecord(r))!=null?o:{}});for(let u of i)n.push({name:this.context.getMethodName(u.name.name),value:this.context.dynamicTypeLiteralMapper.convert(u)});return n}getPathParameters({namedParameters:e,snippet:r}){var o;let n=[],i=this.context.associateByWireValue({parameters:e,values:(o=r.pathParameters)!=null?o:{}});for(let u of i)n.push({name:this.context.getMethodName(u.name.name),value:this.context.dynamicTypeLiteralMapper.convert(u)});return n}getMethod({endpoint:e}){return e.declaration.fernFilepath.allParts.length>0?`${e.declaration.fernFilepath.allParts.map(r=>`${this.context.getMethodName(r)}()`).join(".")}.${this.context.getMethodName(e.declaration.name)}`:this.context.getMethodName(e.declaration.name)}getStyle(e){var r,n;return(n=(r=e.style)!=null?r:this.context.options.style)!=null?n:Ae.Full}getConfig(e){var r,n;return(n=(r=e.config)!=null?r:this.context.options.config)!=null?n:{}}};a();s();a();s();var St=class{constructor({context:e}){g(this,"context");this.context=e}convert(e){if(e.value===null)return this.context.isNullable(e.typeReference)?this.context.getNullableOfNull():(this.context.errors.add({severity:T.Critical,message:"Expected non-null value, but got null"}),d.TypeLiteral.nop());if(e.value===void 0)return d.TypeLiteral.nop();switch(e.typeReference.type){case"list":return this.convertList({list:e.typeReference.value,value:e.value});case"literal":return this.convertLiteral({literal:e.typeReference.value,value:e.value});case"map":return this.convertMap({map:e.typeReference,value:e.value});case"named":{let r=this.context.resolveNamedType({typeId:e.typeReference.value});return r==null?d.TypeLiteral.nop():this.convertNamed({named:r,value:e.value,as:e.as})}case"nullable":case"optional":return d.TypeLiteral.optional({value:this.convert({typeReference:e.typeReference.value,value:e.value,as:e.as}),useOf:e.as==="mapValue"});case"primitive":return this.convertPrimitive({primitive:e.typeReference.value,value:e.value,as:e.as});case"set":return this.convertSet({set:e.typeReference.value,value:e.value});case"unknown":return this.convertUnknown({value:e.value});default:S(e.typeReference)}}convertList({list:e,value:r}){return Array.isArray(r)?d.TypeLiteral.list({valueType:this.context.dynamicTypeMapper.convert({typeReference:e}),values:r.map((n,i)=>{this.context.errors.scope({index:i});try{return this.convert({typeReference:e,value:n})}finally{this.context.errors.unscope()}})}):(this.context.errors.add({severity:T.Critical,message:`Expected array but got: ${typeof r}`}),d.TypeLiteral.nop())}convertLiteral({literal:e,value:r}){switch(e.type){case"boolean":{let n=this.context.getValueAsBoolean({value:r});return n==null?d.TypeLiteral.nop():d.TypeLiteral.boolean(n)}case"string":{let n=this.context.getValueAsString({value:r});return n==null?d.TypeLiteral.nop():d.TypeLiteral.string(n)}default:S(e)}}convertSet({set:e,value:r}){return Array.isArray(r)?d.TypeLiteral.set({valueType:this.context.dynamicTypeMapper.convert({typeReference:e}),values:r.map((n,i)=>{this.context.errors.scope({index:i});try{return this.convert({typeReference:e,value:n})}finally{this.context.errors.unscope()}})}):(this.context.errors.add({severity:T.Critical,message:`Expected array but got: ${typeof r}`}),d.TypeLiteral.nop())}convertMap({map:e,value:r}){return typeof r!="object"||r==null?(this.context.errors.add({severity:T.Critical,message:`Expected object but got: ${r==null?"null":typeof r}`}),d.TypeLiteral.nop()):d.TypeLiteral.map({keyType:this.context.dynamicTypeMapper.convert({typeReference:e.key}),valueType:this.context.dynamicTypeMapper.convert({typeReference:e.value}),entries:Object.entries(r).map(([n,i])=>{this.context.errors.scope(n);try{return{key:this.convert({typeReference:e.key,value:n,as:"mapKey"}),value:this.convert({typeReference:e.value,value:i,as:"mapValue"})}}finally{this.context.errors.unscope()}})})}convertNamed({named:e,value:r,as:n}){switch(e.type){case"alias":return this.convert({typeReference:e.typeReference,value:r,as:n});case"discriminatedUnion":return this.convertDiscriminatedUnion({discriminatedUnion:e,value:r});case"enum":return this.convertEnum({enum_:e,value:r});case"object":return this.convertObject({object_:e,value:r,as:n});case"undiscriminatedUnion":return this.convertUndiscriminatedUnion({undiscriminatedUnion:e,value:r});default:S(e)}}convertDiscriminatedUnion({discriminatedUnion:e,value:r}){let n=this.context.getJavaClassReferenceFromDeclaration({declaration:e.declaration}),i=this.context.resolveDiscriminatedUnionTypeInstance({discriminatedUnion:e,value:r});if(i==null)return d.TypeLiteral.nop();let o=i.singleDiscriminatedUnionType;switch(o.type){case"samePropertiesAsObject":{let u=this.context.resolveNamedType({typeId:o.typeId});return u==null?d.TypeLiteral.nop():d.TypeLiteral.reference(d.invokeMethod({on:n,method:this.context.getPropertyName(o.discriminantValue.name),arguments_:[this.convertNamed({named:u,value:i.value})]}))}case"singleProperty":{let u=this.context.getRecord(i.value);if(u==null)return d.TypeLiteral.nop();try{return this.context.errors.scope(o.discriminantValue.wireValue),d.TypeLiteral.reference(d.invokeMethod({on:n,method:this.context.getPropertyName(o.discriminantValue.name),arguments_:[this.convert({typeReference:o.typeReference,value:u[o.discriminantValue.wireValue]})]}))}finally{this.context.errors.unscope()}}case"noProperties":return d.TypeLiteral.reference(d.invokeMethod({on:n,method:this.context.getPropertyName(o.discriminantValue.name),arguments_:[]}));default:S(o)}}convertObject({object_:e,value:r,as:n}){var o;let i=this.context.associateByWireValue({parameters:e.properties,values:(o=this.context.getRecord(r))!=null?o:{}});return d.TypeLiteral.builder({classReference:this.context.getJavaClassReferenceFromDeclaration({declaration:e.declaration}),parameters:i.map(u=>{this.context.errors.scope(u.name.wireValue);try{return{name:this.context.getMethodName(u.name.name),value:this.convert({typeReference:u.typeReference,value:u.value,as:n})}}finally{this.context.errors.unscope()}})})}convertEnum({enum_:e,value:r}){let n=this.getEnumValueName({enum_:e,value:r});return n==null?d.TypeLiteral.nop():d.TypeLiteral.enum_({classReference:this.context.getJavaClassReferenceFromDeclaration({declaration:e.declaration}),value:n})}getEnumValueName({enum_:e,value:r}){if(typeof r!="string"){this.context.errors.add({severity:T.Critical,message:`Expected enum value string, got: ${typeof r}`});return}let n=e.values.find(i=>i.wireValue===r);if(n==null){this.context.errors.add({severity:T.Critical,message:`An enum value named "${r}" does not exist in this context`});return}return this.context.getEnumName(n.name)}convertUndiscriminatedUnion({undiscriminatedUnion:e,value:r}){let n=this.findMatchingUndiscriminatedUnionType({undiscriminatedUnion:e,value:r});if(n==null)return d.TypeLiteral.nop();if(this.context.isPrimitive(n.valueTypeReference))return d.TypeLiteral.reference(d.invokeMethod({on:this.context.getJavaClassReferenceFromDeclaration({declaration:e.declaration}),method:"of",arguments_:[n.typeInstantiation]}));let i=this.getUndiscriminatedUnionFieldName({typeReference:n.valueTypeReference});return i==null?d.TypeLiteral.nop():d.TypeLiteral.reference(d.invokeMethod({on:this.context.getJavaClassReferenceFromDeclaration({declaration:e.declaration}),method:`of${i}`,arguments_:[n.typeInstantiation]}))}findMatchingUndiscriminatedUnionType({undiscriminatedUnion:e,value:r}){for(let n of e.types)try{let i=this.convert({typeReference:n,value:r});return{valueTypeReference:n,typeInstantiation:i}}catch(i){continue}this.context.errors.add({severity:T.Critical,message:`None of the types in the undiscriminated union matched the given "${typeof r}" value`})}getUndiscriminatedUnionFieldName({typeReference:e}){switch(e.type){case"list":return this.getUndiscriminatedUnionFieldNameForList({list:e});case"literal":return this.getUndiscriminatedUnionFieldNameForLiteral({literal:e.value});case"map":return this.getUndiscriminatedUnionFieldNameForMap({map:e});case"named":{let r=this.context.resolveNamedType({typeId:e.value});return r==null?void 0:this.context.getClassName(r.declaration.name)}case"optional":return this.getUndiscriminatedUnionFieldNameForOptional({typeReference:e});case"nullable":return this.getUndiscriminatedUnionFieldNameForNullable({typeReference:e});case"primitive":return this.getUndiscriminatedUnionFieldNameForPrimitive({primitive:e.value});case"set":return this.getUndiscriminatedUnionFieldNameForSet({set:e});case"unknown":return"Unknown";default:S(e)}}getUndiscriminatedUnionFieldNameForList({list:e}){let r=this.getUndiscriminatedUnionFieldName({typeReference:e});if(r!=null)return`ListOf${r}`}getUndiscriminatedUnionFieldNameForMap({map:e}){let r=this.getUndiscriminatedUnionFieldName({typeReference:e.key});if(r==null)return;let n=this.getUndiscriminatedUnionFieldName({typeReference:e.value});if(n!=null)return`MapOf${r}To${n}`}getUndiscriminatedUnionFieldNameForOptional({typeReference:e}){let r=this.getUndiscriminatedUnionFieldName({typeReference:e});if(r!=null)return`Optional${r}`}getUndiscriminatedUnionFieldNameForNullable({typeReference:e}){let r=this.getUndiscriminatedUnionFieldName({typeReference:e});if(r!=null)return`Nullable${r}`}getUndiscriminatedUnionFieldNameForSet({set:e}){let r=this.getUndiscriminatedUnionFieldName({typeReference:e});if(r!=null)return`SetOf${r}`}getUndiscriminatedUnionFieldNameForLiteral({literal:e}){}getUndiscriminatedUnionFieldNameForPrimitive({primitive:e}){switch(e){case"INTEGER":case"UINT":return"Integer";case"LONG":case"UINT_64":return"Long";case"FLOAT":return"Float";case"DOUBLE":return"Double";case"BOOLEAN":return"Boolean";case"BIG_INTEGER":return"BigInteger";case"STRING":return"String";case"UUID":return"Uuid";case"DATE":return"Date";case"DATE_TIME":return"DateTime";case"BASE_64":return"Base64";default:S(e)}}convertUnknown({value:e}){return d.TypeLiteral.unknown(e)}convertPrimitive({primitive:e,value:r,as:n}){switch(e){case"INTEGER":case"UINT":{let i=this.getValueAsNumber({value:r,as:n});return i==null?d.TypeLiteral.nop():d.TypeLiteral.integer(i)}case"LONG":case"UINT_64":{let i=this.getValueAsNumber({value:r,as:n});return i==null?d.TypeLiteral.nop():d.TypeLiteral.long(i)}case"FLOAT":{let i=this.getValueAsNumber({value:r,as:n});return i==null?d.TypeLiteral.nop():d.TypeLiteral.float(i)}case"DOUBLE":{let i=this.getValueAsNumber({value:r,as:n});return i==null?d.TypeLiteral.nop():d.TypeLiteral.double(i)}case"BOOLEAN":{let i=this.getValueAsBoolean({value:r,as:n});return i==null?d.TypeLiteral.nop():d.TypeLiteral.boolean(i)}case"STRING":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.string(i)}case"DATE":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.string(i)}case"DATE_TIME":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.dateTime(i)}case"UUID":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.uuid(i)}case"BASE_64":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.bytes(i)}case"BIG_INTEGER":{let i=this.context.getValueAsString({value:r});return i==null?d.TypeLiteral.nop():d.TypeLiteral.bigInteger(i)}default:S(e)}}getValueAsNumber({value:e,as:r}){let n=r==="mapKey"&&typeof e=="string"?Number(e):e;return this.context.getValueAsNumber({value:n})}getValueAsBoolean({value:e,as:r}){let n=r==="mapKey"?typeof e=="string"?e==="true":e==="false"?!1:e:e;return this.context.getValueAsBoolean({value:n})}};a();s();var Tt=class{constructor({context:e}){g(this,"context");this.context=e}convert(e){switch(e.typeReference.type){case"list":return d.Type.list(this.convert({typeReference:e.typeReference}));case"literal":return this.convertLiteral({literal:e.typeReference.value});case"map":return d.Type.map(this.convert({typeReference:e.typeReference.key}),this.convert({typeReference:e.typeReference.value}));case"named":{let r=this.context.resolveNamedType({typeId:e.typeReference.value});return r==null?this.convertUnknown():this.convertNamed({named:r})}case"optional":case"nullable":return d.Type.optional(this.convert({typeReference:e.typeReference.value}));case"primitive":return this.convertPrimitive({primitive:e.typeReference.value});case"set":return d.Type.set(this.convert({typeReference:e.typeReference}));case"unknown":return this.convertUnknown();default:S(e.typeReference)}}convertNamed({named:e}){switch(e.type){case"alias":return this.convert({typeReference:e.typeReference});case"enum":case"discriminatedUnion":case"object":case"undiscriminatedUnion":return d.Type.reference(d.classReference({name:this.context.getClassName(e.declaration.name),packageName:this.context.getTypesPackageName(e.declaration.fernFilepath)}));default:S(e)}}convertLiteral({literal:e}){switch(e.type){case"boolean":return d.Type.boolean();case"string":return d.Type.string()}}convertUnknown(){return d.Type.object()}convertPrimitive({primitive:e}){switch(e){case"INTEGER":return d.Type.integer();case"UINT":return d.Type.integer();case"LONG":return d.Type.long();case"UINT_64":return d.Type.long();case"FLOAT":return d.Type.float();case"DOUBLE":return d.Type.double();case"BOOLEAN":return d.Type.boolean();case"STRING":return d.Type.string();case"DATE":return d.Type.date();case"DATE_TIME":return d.Type.dateTime();case"UUID":return d.Type.uuid();case"BASE_64":return d.Type.bytes();case"BIG_INTEGER":return d.Type.bigInteger();default:S(e)}}};a();s();var Rt=class{constructor({context:e}){g(this,"context");this.context=e}getFilePropertyInfo({body:e,value:r}){var o;let n={fileFields:[],bodyPropertyFields:[]},i=(o=this.context.getRecord(r))!=null?o:{};for(let u of e.properties)switch(u.type){case"file":n.fileFields.push({name:this.context.getMethodName(u.name),value:this.getSingleFileProperty({property:u,record:i})});break;case"fileArray":n.fileFields.push({name:this.context.getMethodName(u.name),value:this.getArrayFileProperty({property:u,record:i})});break;case"bodyProperty":n.bodyPropertyFields.push({name:this.context.getMethodName(u.name.name),value:this.getBodyProperty({property:u,record:i})});break;default:S(u)}return n}getSingleFileProperty({property:e,record:r}){let n=this.context.getSingleFileValue({property:e,record:r});return n==null?d.TypeLiteral.nop():d.TypeLiteral.reference(this.context.getFileStreamFromString(n))}getArrayFileProperty({property:e,record:r}){let n=this.context.getFileArrayValues({property:e,record:r});if(n==null)return d.TypeLiteral.nop();for(let i of n)return d.TypeLiteral.reference(this.context.getFileStreamFromString(i));return d.TypeLiteral.nop()}getBodyProperty({property:e,record:r}){let n=r[e.name.wireValue];return n==null?d.TypeLiteral.nop():this.context.dynamicTypeLiteralMapper.convert({typeReference:e.typeReference,value:n})}};var wv=new Set(["enum","extends","package","void","short","class","abstract","return","import","for","assert","switch","getClass"]),Et=class t extends Tr{constructor({ir:r,config:n,options:i}){super({ir:r,config:n,options:i});g(this,"ir");g(this,"customConfig");g(this,"dynamicTypeMapper");g(this,"dynamicTypeLiteralMapper");g(this,"filePropertyMapper");this.ir=r,this.customConfig=n.customConfig!=null?n.customConfig:void 0,this.dynamicTypeMapper=new Tt({context:this}),this.dynamicTypeLiteralMapper=new St({context:this}),this.filePropertyMapper=new Rt({context:this})}clone(){return new t({ir:this.ir,config:this.config,options:this.options})}getClassName(r){return this.getName(r.pascalCase.safeName)}getEnumName(r){return this.getName(r.screamingSnakeCase.safeName)}getPropertyName(r){return this.getName(r.camelCase.safeName)}getMethodName(r){return this.getName(r.camelCase.safeName)}getRootClientClassReference(){return d.classReference({name:this.getRootClientClassName(),packageName:this.getRootPackageName()})}getRootClientClassName(){var r,n;return(n=(r=this.customConfig)==null?void 0:r["client-class-name"])!=null?n:`${this.getBaseNamePrefix()}Client`}getEnvironmentClassName(){return"Environment"}getEnvironmentTypeReferenceFromID(r){let n=this.resolveEnvironmentName(r);if(n!=null)return d.codeblock(i=>{i.writeNode(this.getEnvironmentClassReference()),i.write("."),i.write(this.getEnumName(n))})}getEnvironmentClassReference(){return d.classReference({name:this.getEnvironmentClassName(),packageName:this.getCorePackageName()})}getJavaClassReferenceFromDeclaration({declaration:r}){return d.classReference({name:r.name.pascalCase.unsafeName,packageName:this.getTypesPackageName(r.fernFilepath)})}getNullableClassReference(){return d.classReference({name:"Nullable",packageName:this.getCorePackageName()})}getNullableOfNull(){return d.TypeLiteral.reference(d.invokeMethod({on:this.getNullableClassReference(),method:"ofNull",arguments_:[]}))}getFileStreamFromString(r){return d.TypeLiteral.reference(d.codeblock(n=>{n.write("new "),n.writeNode(this.getFileStreamClassReference()),n.write("("),n.writeNode(this.getByteArrayInputStreamClassReference()),n.write("("),n.writeNode(d.TypeLiteral.string(r)),n.write(".getBytes("),n.writeNode(this.getStandardCharsetsClassReference()),n.write(".UTF_8)))")}))}getFileStreamClassReference(){return d.classReference({name:"FileStream",packageName:this.getCorePackageName()})}getByteArrayInputStreamClassReference(){return d.classReference({name:"ByteArrayInputStream",packageName:"java.io"})}getStandardCharsetsClassReference(){return d.classReference({name:"StandardCharsets",packageName:"java.nio.charset"})}isPrimitive(r){switch(r.type){case"primitive":return!0;case"optional":case"nullable":return this.isPrimitive(r.value);case"named":{let n=this.resolveNamedType({typeId:r.value});if(n==null)return!1;switch(n.type){case"alias":return this.isPrimitive(n.typeReference);case"discriminatedUnion":case"undiscriminatedUnion":case"object":case"enum":return!1;default:S(n)}break}case"list":case"set":case"map":case"literal":case"unknown":return!1;default:S(r)}}getRootPackageName(){let r=this.getPackagePrefixTokens();return this.joinPackageTokens(r)}getCorePackageName(){let r=this.getPackagePrefixTokens();return r.push("core"),this.joinPackageTokens(r)}getTypesPackageName(r){return this.getResourcesPackage(r,"types")}getRequestsPackageName(r){return this.getPackageLayout()==="flat"?this.getTypesPackageName(r):this.getResourcesPackage(r,"requests")}getResourcesPackage(r,n){let i=this.getPackagePrefixTokens();switch(this.getPackageLayout()){case"flat":r!=null&&i.push(...r.packagePath.map(o=>this.getPackageNameSegment(o)));break;case"nested":default:r!=null&&r.allParts.length>0&&i.push("resources"),r!=null&&i.push(...r.allParts.map(o=>this.getPackageNameSegment(o)))}return n!=null&&i.push(n),this.joinPackageTokens(i)}getPackageName(r,n){let i=this.getPackageNameSegments(r);return i=n!=null?[...i,n]:i,[...this.getPackagePrefixTokens(),...i].join(".")}getPackageLayout(){var r,n;return(n=(r=this.customConfig)==null?void 0:r["package-layout"])!=null?n:"nested"}shouldInlinePathParameters(){var r,n;return(n=(r=this.customConfig)==null?void 0:r["inline-path-parameters"])!=null?n:!1}shouldInlineFileProperties(){var r,n;return(n=(r=this.customConfig)==null?void 0:r["inline-file-properties"])!=null?n:!1}getPackageNameSegments(r){return r.packagePath.map(n=>this.getPackageNameSegment(n))}getPackageNameSegment(r){return r.camelCase.safeName.toLowerCase()}getPackagePrefixTokens(){var n;if(((n=this.customConfig)==null?void 0:n["package-prefix"])!=null)return this.customConfig["package-prefix"].split(".");let r=[];return r.push("com"),r.push(...this.splitOnNonAlphaNumericChar(this.config.organization)),r.push(...this.splitOnNonAlphaNumericChar(this.getApiName())),r}getBaseNamePrefix(){return this.convertKebabCaseToUpperCamelCase(this.config.organization)+this.convertKebabCaseToUpperCamelCase(this.getApiName())}getApiName(){return oi(this.config.workspaceName)}startsWithNumber(r){return/^\d/.test(r)}splitOnNonAlphaNumericChar(r){return r.split(/[^a-zA-Z0-9]/)}convertKebabCaseToUpperCamelCase(r){return r.replace(/-([a-z])/g,(n,i)=>i.toUpperCase()).replace(/^[a-z]/,n=>n.toUpperCase())}joinPackageTokens(r){return r.map(i=>this.startsWithNumber(i)?"_"+i:i).join(".")}getName(r){return this.isReservedName(r)?"_"+r:r}isReservedName(r){return wv.has(r)}};var It=class extends br{constructor({ir:r,config:n,options:i={}}){super(new Et({ir:r,config:n,options:i}));g(this,"formatter")}async generate(r,n={}){return super.generate(r,n)}generateSync(r,n={}){return super.generateSync(r,n)}createSnippetGenerator(r){return new At({context:r})}};0&&(module.exports={DynamicSnippetsGenerator});
|
|
28
28
|
/*! Bundled license information:
|
|
29
29
|
|
|
30
30
|
@esbuild-plugins/node-globals-polyfill/Buffer.js:
|