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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/cjs/DiscriminatedUnionTypeInstance.cjs +11 -1
  2. package/cjs/DynamicSnippetsGenerator.cjs +18 -8
  3. package/cjs/EndpointSnippetGenerator.cjs +19 -9
  4. package/cjs/Result.cjs +11 -1
  5. package/cjs/Scope.cjs +11 -1
  6. package/cjs/TypeInstance.cjs +11 -1
  7. package/cjs/context/DynamicSnippetsGeneratorContext.cjs +18 -8
  8. package/cjs/context/DynamicTypeInstantiationMapper.cjs +25 -15
  9. package/cjs/context/DynamicTypeMapper.cjs +18 -8
  10. package/cjs/context/ErrorReporter.cjs +11 -1
  11. package/cjs/context/FilePropertyMapper.cjs +25 -15
  12. package/cjs/index.cjs +30 -8
  13. package/esm/DiscriminatedUnionTypeInstance.js +1 -0
  14. package/esm/DynamicSnippetsGenerator.js +1 -1
  15. package/esm/EndpointSnippetGenerator.js +1 -1
  16. package/esm/Result.js +1 -1
  17. package/esm/Scope.js +1 -1
  18. package/esm/TypeInstance.js +1 -0
  19. package/esm/chunk-2AZXIWKY.js +11 -0
  20. package/esm/chunk-5TA7XQOD.js +1 -0
  21. package/esm/chunk-775WBLQ5.js +1 -0
  22. package/esm/chunk-E5FOYV6P.js +19 -0
  23. package/esm/chunk-I3J7ADQS.js +1 -0
  24. package/esm/chunk-IIKN6XQS.js +1 -0
  25. package/esm/chunk-LLE63BZO.js +1 -0
  26. package/esm/chunk-SUV3YIZ5.js +1 -0
  27. package/esm/chunk-VLNKANS2.js +1 -0
  28. package/esm/chunk-ZI6CAI2V.js +1 -0
  29. package/esm/chunk-ZXKMRXFM.js +1 -0
  30. package/esm/context/DynamicSnippetsGeneratorContext.js +1 -1
  31. package/esm/context/DynamicTypeInstantiationMapper.js +1 -1
  32. package/esm/context/DynamicTypeMapper.js +1 -1
  33. package/esm/context/ErrorReporter.js +1 -1
  34. package/esm/context/FilePropertyMapper.js +1 -1
  35. package/esm/index.js +13 -1
  36. package/package.json +2 -5
@@ -0,0 +1 @@
1
+ import{a as c,c as r}from"./chunk-E5FOYV6P.js";import{a as s}from"./chunk-ZI6CAI2V.js";import{j as p,k as y,m as l}from"./chunk-2AZXIWKY.js";y();l();var d=class{constructor({context:t}){p(this,"context");this.context=t}getFilePropertyInfo({body:t,value:i}){var n;let e={fileFields:[],bodyPropertyFields:[]},a=(n=this.context.getRecord(i))!=null?n:{};for(let o of t.properties)switch(o.type){case"file":e.fileFields.push({name:this.context.getTypeName(o.name),value:this.getSingleFileProperty({property:o,record:a})});break;case"fileArray":e.fileFields.push({name:this.context.getTypeName(o.name),value:this.getArrayFileProperty({property:o,record:a})});break;case"bodyProperty":e.bodyPropertyFields.push({name:this.context.getTypeName(o.name.name),value:this.getBodyProperty({property:o,record:a})});break;default:c(o)}return e}getSingleFileProperty({property:t,record:i}){let e=i[t.wireValue];return e==null?r.TypeInstantiation.nop():typeof e!="string"?(this.context.errors.add({severity:s.Critical,message:`Expected file value to be a string, got ${typeof e}`}),r.TypeInstantiation.nop()):r.TypeInstantiation.reference(this.context.getNewStringsReaderFunctionInvocation(e))}getArrayFileProperty({property:t,record:i}){let e=i[t.wireValue];if(e==null)return r.TypeInstantiation.nop();if(!Array.isArray(e))return this.context.errors.add({severity:s.Critical,message:`Expected file array value to be an array of strings, got ${typeof e}`}),r.TypeInstantiation.nop();let a=[];for(let n of e)typeof n!="string"&&this.context.errors.add({severity:s.Critical,message:`Expected file array value to be an array of strings, got ${typeof n}`}),a.push(n);return r.TypeInstantiation.slice({valueType:r.Type.reference(this.context.getIoReaderTypeReference()),values:a.map(n=>r.TypeInstantiation.reference(this.context.getNewStringsReaderFunctionInvocation(n)))})}getBodyProperty({property:t,record:i}){let e=i[t.name.wireValue];return e==null?r.TypeInstantiation.nop():this.context.dynamicTypeInstantiationMapper.convert({typeReference:t.typeReference,value:e})}};export{d as a};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-IIKN6XQS.js";import{c as r}from"./chunk-E5FOYV6P.js";import{a as p}from"./chunk-ZI6CAI2V.js";import{j as d,k as g,m as f}from"./chunk-2AZXIWKY.js";g();f();var P="example",S="fern",I="do",v="client",R=class{constructor({context:e,formatter:t}){d(this,"context");d(this,"formatter");this.context=e,this.formatter=t}async generateSnippet({endpoint:e,request:t}){var o;return await this.buildCodeBlock({endpoint:e,snippet:t}).toString({packageName:P,importPath:S,rootImportPath:this.context.rootImportPath,customConfig:(o=this.context.customConfig)!=null?o:{},formatter:this.formatter})}generateSnippetSync({endpoint:e,request:t}){var o;return this.buildCodeBlock({endpoint:e,snippet:t}).toStringSync({packageName:P,importPath:S,rootImportPath:this.context.rootImportPath,customConfig:(o=this.context.customConfig)!=null?o:{},formatter:this.formatter})}buildCodeBlock({endpoint:e,snippet:t}){return r.func({name:I,parameters:[],return_:[],body:r.codeblock(n=>{n.writeNode(this.constructClient({endpoint:e,snippet:t})),n.writeLine(),n.writeNode(this.callMethod({endpoint:e,snippet:t}))})})}constructClient({endpoint:e,snippet:t}){return r.codeblock(n=>{n.write(`${v} := `),n.writeNode(this.getRootClientFuncInvocation(this.getConstructorArgs({endpoint:e,snippet:t})))})}callMethod({endpoint:e,snippet:t}){return r.invokeMethod({on:r.codeblock(v),method:this.getMethod({endpoint:e}),arguments_:[this.context.getContextTodoFunctionInvocation(),...this.getMethodArgs({endpoint:e,snippet:t})]})}getConstructorArgs({endpoint:e,snippet:t}){let n=[];return e.auth!=null&&(t.auth!=null?n.push(this.getConstructorAuthArg({auth:e.auth,values:t.auth})):this.context.errors.add({severity:p.Warning,message:`Auth with ${e.auth.type} configuration is required for this endpoint`})),this.context.errors.scope(a.Headers),this.context.ir.headers!=null&&t.headers!=null&&n.push(...this.getConstructorHeaderArgs({headers:this.context.ir.headers,values:t.headers})),this.context.errors.unscope(),n}getConstructorAuthArg({auth:e,values:t}){switch(e.type){case"basic":return t.type!=="basic"?(this.context.errors.add({severity:p.Critical,message:this.newAuthMismatchError({auth:e,values:t}).message}),r.TypeInstantiation.nop()):this.getConstructorBasicAuthArg({auth:e,values:t});case"bearer":return t.type!=="bearer"?(this.context.errors.add({severity:p.Critical,message:this.newAuthMismatchError({auth:e,values:t}).message}),r.TypeInstantiation.nop()):this.getConstructorBearerAuthArg({auth:e,values:t});case"header":return t.type!=="header"?(this.context.errors.add({severity:p.Critical,message:this.newAuthMismatchError({auth:e,values:t}).message}),r.TypeInstantiation.nop()):this.getConstructorHeaderAuthArg({auth:e,values:t})}}getConstructorBasicAuthArg({auth:e,values:t}){return r.codeblock(n=>{n.writeNode(r.invokeFunc({func:r.typeReference({name:"WithBasicAuth",importPath:this.context.getOptionImportPath()}),arguments_:[r.TypeInstantiation.string(t.username),r.TypeInstantiation.string(t.password)]}))})}getConstructorBearerAuthArg({auth:e,values:t}){return r.codeblock(n=>{n.writeNode(r.invokeFunc({func:r.typeReference({name:`With${e.token.pascalCase.unsafeName}`,importPath:this.context.getOptionImportPath()}),arguments_:[r.TypeInstantiation.string(t.token)]}))})}getConstructorHeaderAuthArg({auth:e,values:t}){return r.codeblock(n=>{n.writeNode(r.invokeFunc({func:r.typeReference({name:`With${e.header.name.name.pascalCase.unsafeName}`,importPath:this.context.getOptionImportPath()}),arguments_:[this.context.dynamicTypeInstantiationMapper.convert({typeReference:e.header.typeReference,value:t.value})]}))})}getConstructorHeaderArgs({headers:e,values:t}){let n=[];for(let o of e){let i=this.getConstructorHeaderArg({header:o,value:t.value});i!=null&&n.push(i)}return n}getConstructorHeaderArg({header:e,value:t}){let n=this.context.dynamicTypeInstantiationMapper.convert({typeReference:e.typeReference,value:t});if(!r.TypeInstantiation.isNop(n))return r.codeblock(o=>{o.writeNode(r.invokeFunc({func:r.typeReference({name:`With${e.name.name.pascalCase.unsafeName}`,importPath:this.context.getOptionImportPath()}),arguments_:[n]}))})}getMethodArgs({endpoint:e,snippet:t}){switch(e.request.type){case"inlined":return this.getMethodArgsForInlinedRequest({request:e.request,snippet:t});case"body":return this.getMethodArgsForBodyRequest({request:e.request,snippet:t})}}getMethodArgsForBodyRequest({request:e,snippet:t}){let n=[];if(this.context.errors.scope(a.PathParameters),e.pathParameters!=null){let o=this.getPathParameters({namedParameters:e.pathParameters,snippet:t});n.push(...o.map(i=>i.value))}return this.context.errors.unscope(),this.context.errors.scope(a.RequestBody),e.body!=null&&n.push(this.getBodyRequestArg({body:e.body,value:t.requestBody})),this.context.errors.unscope(),n}getBodyRequestArg({body:e,value:t}){switch(e.type){case"bytes":return this.getBytesBodyRequestArg({value:t});case"typeReference":return this.context.dynamicTypeInstantiationMapper.convert({typeReference:e.value,value:t})}}getBytesBodyRequestArg({value:e}){return typeof e!="string"?(this.context.errors.add({severity:p.Critical,message:`Expected bytes value to be a string, got ${typeof e}`}),r.TypeInstantiation.nop()):r.TypeInstantiation.bytes(e)}getMethodArgsForInlinedRequest({request:e,snippet:t}){var s;let n=[];this.context.errors.scope(a.PathParameters);let o=[];e.pathParameters!=null&&o.push(...this.getPathParameters({namedParameters:e.pathParameters,snippet:t})),this.context.errors.unscope(),this.context.errors.scope(a.RequestBody);let i=this.getFilePropertyInfo({request:e,snippet:t});return this.context.errors.unscope(),this.context.includePathParametersInWrappedRequest({request:e})||n.push(...o.map(u=>u.value)),(s=this.context.customConfig)!=null&&s.inlineFileProperties||n.push(...i.fileFields.map(u=>u.value)),this.context.needsRequestParameter({request:e})&&n.push(this.getInlinedRequestArg({request:e,snippet:t,pathParameterFields:this.context.includePathParametersInWrappedRequest({request:e})?o:[],filePropertyInfo:i})),n}getFilePropertyInfo({request:e,snippet:t}){return e.body==null||!this.context.isFileUploadRequestBody(e.body)?{fileFields:[],bodyPropertyFields:[]}:this.context.filePropertyMapper.getFilePropertyInfo({body:e.body,value:t.requestBody})}getInlinedRequestArg({request:e,snippet:t,pathParameterFields:n,filePropertyInfo:o}){var h,m,y,l;this.context.errors.scope(a.QueryParameters);let s=this.context.associateQueryParametersByWireValue({parameters:(h=e.queryParameters)!=null?h:[],values:(m=t.queryParameters)!=null?m:{}}).map(c=>({name:c.name.name.pascalCase.unsafeName,value:this.context.dynamicTypeInstantiationMapper.convert(c)}));this.context.errors.unscope(),this.context.errors.scope(a.Headers);let x=this.context.associateByWireValue({parameters:(y=e.headers)!=null?y:[],values:(l=t.headers)!=null?l:{}}).map(c=>({name:c.name.name.pascalCase.unsafeName,value:this.context.dynamicTypeInstantiationMapper.convert(c)}));this.context.errors.unscope(),this.context.errors.scope(a.RequestBody);let A=e.body!=null?this.getInlinedRequestBodyStructFields({body:e.body,value:t.requestBody,filePropertyInfo:o}):[];return this.context.errors.unscope(),r.TypeInstantiation.structPointer({typeReference:r.typeReference({name:this.context.getMethodName(e.declaration.name),importPath:this.context.getImportPath(e.declaration.fernFilepath)}),fields:[...n,...s,...x,...A]})}getInlinedRequestBodyStructFields({body:e,value:t,filePropertyInfo:n}){switch(e.type){case"properties":return this.getInlinedRequestBodyPropertyStructFields({parameters:e.value,value:t});case"referenced":return[this.getReferencedRequestBodyPropertyStructField({body:e,value:t})];case"fileUpload":return this.getFileUploadRequestBodyStructFields({filePropertyInfo:n})}}getFileUploadRequestBodyStructFields({filePropertyInfo:e}){var t;return(t=this.context.customConfig)!=null&&t.inlineFileProperties?[...e.fileFields,...e.bodyPropertyFields]:e.bodyPropertyFields}getReferencedRequestBodyPropertyStructField({body:e,value:t}){return{name:this.context.getTypeName(e.bodyKey),value:this.getReferencedRequestBodyPropertyTypeInstantiation({body:e.bodyType,value:t})}}getReferencedRequestBodyPropertyTypeInstantiation({body:e,value:t}){switch(e.type){case"bytes":return this.getBytesBodyRequestArg({value:t});case"typeReference":return this.context.dynamicTypeInstantiationMapper.convert({typeReference:e.value,value:t})}}getInlinedRequestBodyPropertyStructFields({parameters:e,value:t}){var i;let n=[],o=this.context.associateByWireValue({parameters:e,values:(i=this.context.getRecord(t))!=null?i:{}});for(let s of o)n.push({name:this.context.getTypeName(s.name.name),value:this.context.dynamicTypeInstantiationMapper.convert(s)});return n}getPathParameters({namedParameters:e,snippet:t}){var i;let n=[],o=this.context.associateByWireValue({parameters:e,values:(i=t.pathParameters)!=null?i:{}});for(let s of o)n.push({name:this.context.getTypeName(s.name.name),value:this.context.dynamicTypeInstantiationMapper.convert(s)});return n}getMethod({endpoint:e}){return e.declaration.fernFilepath.allParts.length>0?`${e.declaration.fernFilepath.allParts.map(t=>this.context.getMethodName(t)).join(".")}.${this.context.getMethodName(e.declaration.name)}`:this.context.getMethodName(e.declaration.name)}getRootClientFuncInvocation(e){return r.invokeFunc({func:r.typeReference({name:this.context.getClientConstructorName(),importPath:this.context.getClientImportPath()}),arguments_:e})}newAuthMismatchError({auth:e,values:t}){return new Error(`Expected auth type ${e.type}, got ${t.type}`)}};export{R as a};
@@ -0,0 +1 @@
1
+ import{a as n,c as e}from"./chunk-E5FOYV6P.js";import{j as c,k as i,m as p}from"./chunk-2AZXIWKY.js";i();p();var a=class{constructor({context:t}){c(this,"context");this.context=t}convert(t){switch(t.typeReference.type){case"list":return e.Type.slice(this.convert({typeReference:t.typeReference}));case"literal":return this.convertLiteral({literal:t.typeReference.value});case"map":return e.Type.map(this.convert({typeReference:t.typeReference.key}),this.convert({typeReference:t.typeReference.value}));case"named":{let r=this.context.resolveNamedType({typeId:t.typeReference.value});return r==null?this.convertUnknown():this.convertNamed({named:r})}case"optional":return e.Type.optional(this.convert({typeReference:t.typeReference.value}));case"primitive":return this.convertPrimitive({primitive:t.typeReference.value});case"set":return e.Type.slice(this.convert({typeReference:t.typeReference}));case"unknown":return this.convertUnknown();default:n(t.typeReference)}}convertLiteral({literal:t}){switch(t.type){case"boolean":return e.Type.bool();case"string":return e.Type.string()}}convertNamed({named:t}){let r=e.Type.reference(e.typeReference({name:this.context.getTypeName(t.declaration.name),importPath:this.context.getImportPath(t.declaration.fernFilepath)}));switch(t.type){case"alias":case"enum":return r;case"discriminatedUnion":case"object":case"undiscriminatedUnion":return e.Type.pointer(r);default:n(t)}}convertUnknown(){return e.Type.any()}convertPrimitive({primitive:t}){switch(t){case"INTEGER":return e.Type.int();case"UINT":return e.Type.int();case"LONG":return e.Type.int64();case"UINT_64":return e.Type.int64();case"FLOAT":return e.Type.float64();case"DOUBLE":return e.Type.float64();case"BOOLEAN":return e.Type.bool();case"STRING":return e.Type.string();case"DATE":return e.Type.date();case"DATE_TIME":return e.Type.dateTime();case"UUID":return e.Type.uuid();case"BASE_64":return e.Type.bytes();case"BIG_INTEGER":return e.Type.string();default:n(t)}}};export{a};
@@ -0,0 +1 @@
1
+ import{a as o,b as s,j as i,k as p,m as a}from"./chunk-2AZXIWKY.js";p();a();var y={Critical:"CRITICAL",Warning:"WARNING"},n=class h{constructor(){i(this,"errors");i(this,"path");this.errors=[],this.path=[]}add(r){this.errors.push(s(o({},r),{path:[...this.path]}))}scope(r){this.path.push(r)}unscope(){this.path.pop()}getBySeverity(r){return this.errors.filter(e=>e.severity===r)}empty(){return this.errors.length===0}size(){return this.errors.length}clone(){let r=new h;return r.errors=[...this.errors],r.path=[...this.path],r}reset(){this.errors=[],this.path=[]}toDynamicSnippetErrors(){return this.errors.map(r=>({severity:r.severity,path:r.path!=null?this.pathToStringArray(r.path):void 0,message:r.message}))}pathToStringArray(r){let e=[];for(let t of r){if(typeof t=="string"){e.push(t);continue}e[e.length-1]+=`[${t.index}]`}return e}};export{y as a,n as b};
@@ -0,0 +1 @@
1
+ import{a as C}from"./chunk-I3J7ADQS.js";import{a as x}from"./chunk-VLNKANS2.js";import{a as F}from"./chunk-LLE63BZO.js";import{a as f,b as T,c as d}from"./chunk-E5FOYV6P.js";import{a as l,b as I}from"./chunk-ZI6CAI2V.js";import{c as v,d as w,j as i,k as o,m as s}from"./chunk-2AZXIWKY.js";o();s();o();s();o();s();var P=class{constructor(c){i(this,"context");this.context=c}};o();s();var R=class{constructor(c,e){i(this,"ir");i(this,"config");this.ir=c,this.config=e}};o();s();o();s();var g=class{constructor(){i(this,"REFERENCE_REGEX",/^(GET|POST|PUT|DELETE|PATCH)\s(\/[a-zA-Z0-9\/{}_-]*)$/)}validate(c){return this.REFERENCE_REGEX.test(c)?{type:"valid"}:{type:"invalid"}}tryParse(c){if(this.validate(c).type==="invalid")return;let t=c.match(this.REFERENCE_REGEX);if(!(t==null||t[1]==null||t[2]==null))return{method:t[1],path:t[2]}}};var N=class E extends R{constructor({ir:e,config:t}){super(e,t);i(this,"customConfig");i(this,"errors");i(this,"dynamicTypeMapper");i(this,"dynamicTypeInstantiationMapper");i(this,"filePropertyMapper");i(this,"rootImportPath");i(this,"httpEndpointReferenceParser");this.customConfig=t.customConfig!=null?t.customConfig:void 0,this.errors=new I,this.dynamicTypeMapper=new x({context:this}),this.dynamicTypeInstantiationMapper=new C({context:this}),this.filePropertyMapper=new F({context:this}),this.rootImportPath=T({config:t,customConfig:this.customConfig}),this.httpEndpointReferenceParser=new g}clone(){return new E({ir:this.ir,config:this.config})}associateQueryParametersByWireValue({parameters:e,values:t}){let r=[];for(let[a,n]of Object.entries(t)){this.errors.scope(a);try{let p=e.find(m=>m.name.wireValue===a);if(p==null)throw this.newParameterNotRecognizedError(a);let u=this.isListTypeReference(p.typeReference)&&!Array.isArray(n)?[n]:n;r.push({name:p.name,typeReference:p.typeReference,value:u})}finally{this.errors.unscope()}}return r}associateByWireValue({parameters:e,values:t,ignoreMissingParameters:r}){let a=[];for(let[n,p]of Object.entries(t)){this.errors.scope(n);try{let u=e.find(m=>m.name.wireValue===n);if(u==null){if(r)continue;this.errors.add({severity:l.Critical,message:this.newParameterNotRecognizedError(n).message});continue}a.push({name:u.name,typeReference:u.typeReference,value:p})}finally{this.errors.unscope()}}return a}isFileUploadRequestBody(e){switch(e.type){case"fileUpload":return!0;case"properties":case"referenced":return!1;default:f(e)}}needsRequestParameter({request:e}){var t;return this.includePathParametersInWrappedRequest({request:e})||e.queryParameters!=null&&e.queryParameters.length>0||e.headers!=null&&e.headers.length>0?!0:e.body!=null?this.includeRequestBodyInWrappedRequest({body:e.body}):!((t=e.metadata)!=null&&t.onlyPathParameters)}includePathParametersInWrappedRequest({request:e}){var t,r,a,n;return((r=(t=this.customConfig)==null?void 0:t.inlinePathParameters)!=null?r:!1)&&((n=(a=e.metadata)==null?void 0:a.includePathParameters)!=null?n:!1)}includeRequestBodyInWrappedRequest({body:e}){switch(e.type){case"properties":case"referenced":return!0;case"fileUpload":return this.includeFileUploadBodyInWrappedRequest({fileUpload:e});default:f(e)}}includeFileUploadBodyInWrappedRequest({fileUpload:e}){var t,r;return this.fileUploadHasBodyProperties({fileUpload:e})||((r=(t=this.customConfig)==null?void 0:t.inlineFileProperties)!=null?r:!1)&&this.fileUploadHasFileProperties({fileUpload:e})}fileUploadHasBodyProperties({fileUpload:e}){return e.properties.some(t=>{switch(t.type){case"file":case"fileArray":return!1;case"bodyProperty":return!0;default:f(t)}})}fileUploadHasFileProperties({fileUpload:e}){return e.properties.some(t=>{switch(t.type){case"file":case"fileArray":return!0;case"bodyProperty":return!1;default:f(t)}})}getRecord(e){if(typeof e!="object"||Array.isArray(e)){this.errors.add({severity:l.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 t=this.ir.types[e];if(t==null){this.errors.add({severity:l.Critical,message:`Type identified by "${e}" could not be found`});return}return t}resolveDiscriminatedUnionTypeInstance({discriminatedUnion:e,value:t}){let r=this.getRecord(t);if(r==null)return;let a=e.discriminant.wireValue,n=r[a];if(n==null){this.errors.add({severity:l.Critical,message:this.newParameterNotRecognizedError(a).message});return}if(typeof n!="string"){this.errors.add({severity:l.Critical,message:`Expected discriminant value to be a string but got: ${typeof n}`});return}let p=e.types[n];if(p==null){this.errors.add({severity:l.Critical,message:`No type found for discriminant value "${n}"`});return}let b=r,{[a]:u}=b,m=w(b,[v(a)]);return{singleDiscriminatedUnionType:p,discriminantValue:p.discriminantValue,value:m}}getMethodName(e){return e.pascalCase.unsafeName}getTypeName(e){return e.pascalCase.unsafeName}getImportPath(e){let t=e.packagePath.map(r=>r.pascalCase.unsafeName.toLowerCase());return[this.rootImportPath,...t].join("/")}getContextTypeReference(){return d.typeReference({name:"Context",importPath:"context"})}getContextTodoFunctionInvocation(){return d.invokeFunc({func:d.typeReference({name:"TODO",importPath:"context"}),arguments_:[]})}getIoReaderTypeReference(){return d.typeReference({name:"Reader",importPath:"io"})}getNewStringsReaderFunctionInvocation(e){return d.invokeFunc({func:d.typeReference({name:"NewReader",importPath:"strings"}),arguments_:[d.TypeInstantiation.string(e)]})}getClientConstructorName(){var e;return((e=this.customConfig)==null?void 0:e.exportedClientName)!=null?`New${this.customConfig.exportedClientName}`:"NewClient"}getClientImportPath(){return`${this.rootImportPath}/client`}getOptionImportPath(){return`${this.rootImportPath}/option`}resolveEndpointOrThrow(e){let t=this.httpEndpointReferenceParser.tryParse(e);if(t==null)throw new Error(`Failed to parse endpoint reference "${e}"`);return this.resolveEndpointLocationOrThrow(t)}resolveEndpointLocationOrThrow(e){let t=[];for(let r of Object.values(this.ir.endpoints))this.parsedEndpointMatches({endpoint:r,parsedEndpoint:e})&&t.push(r);if(t.length===0)throw new Error(`Failed to find endpoint identified by "${e.method} ${e.path}"`);return t}getGoTypeReferenceFromDeclaration({declaration:e}){return d.typeReference({name:e.name.pascalCase.unsafeName,importPath:this.getImportPath(e.fernFilepath)})}newParameterNotRecognizedError(e){return new Error(`"${e}" is not a recognized parameter for this endpoint`)}isListTypeReference(e){return e.type==="optional"?this.isListTypeReference(e.value):e.type==="list"||e.type==="set"}parsedEndpointMatches({endpoint:e,parsedEndpoint:t}){return e.location.method===t.method&&e.location.path===t.path}};export{P as a,N as b};
@@ -1 +1 @@
1
- import{b as a}from"../chunk-UVYC4FWB.js";import"../chunk-IQODEXPX.js";import"../chunk-ZQRLKIRW.js";import"../chunk-BC35GX6S.js";import"../chunk-VAYOWHUI.js";import"../chunk-5XUC5IOB.js";import"../chunk-6JCPJA27.js";export{a as DynamicSnippetsGeneratorContext};
1
+ import{b as a}from"../chunk-ZXKMRXFM.js";import"../chunk-I3J7ADQS.js";import"../chunk-VLNKANS2.js";import"../chunk-LLE63BZO.js";import"../chunk-E5FOYV6P.js";import"../chunk-ZI6CAI2V.js";import"../chunk-2AZXIWKY.js";export{a as DynamicSnippetsGeneratorContext};
@@ -1 +1 @@
1
- import{a}from"../chunk-IQODEXPX.js";import"../chunk-VAYOWHUI.js";import"../chunk-5XUC5IOB.js";import"../chunk-6JCPJA27.js";export{a as DynamicTypeInstantiationMapper};
1
+ import{a}from"../chunk-I3J7ADQS.js";import"../chunk-E5FOYV6P.js";import"../chunk-ZI6CAI2V.js";import"../chunk-2AZXIWKY.js";export{a as DynamicTypeInstantiationMapper};
@@ -1 +1 @@
1
- import{a}from"../chunk-ZQRLKIRW.js";import"../chunk-VAYOWHUI.js";import"../chunk-6JCPJA27.js";export{a as DynamicTypeMapper};
1
+ import{a}from"../chunk-VLNKANS2.js";import"../chunk-E5FOYV6P.js";import"../chunk-2AZXIWKY.js";export{a as DynamicTypeMapper};
@@ -1 +1 @@
1
- import{a,b}from"../chunk-5XUC5IOB.js";import"../chunk-6JCPJA27.js";export{b as ErrorReporter,a as Severity};
1
+ import{a,b}from"../chunk-ZI6CAI2V.js";import"../chunk-2AZXIWKY.js";export{b as ErrorReporter,a as Severity};
@@ -1 +1 @@
1
- import{a}from"../chunk-BC35GX6S.js";import"../chunk-VAYOWHUI.js";import"../chunk-5XUC5IOB.js";import"../chunk-6JCPJA27.js";export{a as FilePropertyMapper};
1
+ import{a}from"../chunk-LLE63BZO.js";import"../chunk-E5FOYV6P.js";import"../chunk-ZI6CAI2V.js";import"../chunk-2AZXIWKY.js";export{a as FilePropertyMapper};
package/esm/index.js CHANGED
@@ -1 +1,13 @@
1
- import{a as Nn}from"./chunk-4PKXKUYU.js";import"./chunk-KJOW5AZT.js";import"./chunk-COBOWL3P.js";import"./chunk-ZYGZ4VN4.js";import"./chunk-UVYC4FWB.js";import"./chunk-IQODEXPX.js";import"./chunk-ZQRLKIRW.js";import"./chunk-BC35GX6S.js";import"./chunk-VAYOWHUI.js";import"./chunk-5XUC5IOB.js";import{c as M,f as i,h as Gn}from"./chunk-6JCPJA27.js";var Yr=i(($a,zr)=>{"use strict";var Un="Function.prototype.bind called on incompatible ",_n=Object.prototype.toString,Cn=Math.max,Mn="[object Function]",Jr=function(r,e){for(var t=[],o=0;o<r.length;o+=1)t[o]=r[o];for(var a=0;a<e.length;a+=1)t[a+r.length]=e[a];return t},Wn=function(r,e){for(var t=[],o=e||0,a=0;o<r.length;o+=1,a+=1)t[a]=r[o];return t},kn=function(n,r){for(var e="",t=0;t<n.length;t+=1)e+=n[t],t+1<n.length&&(e+=r);return e};zr.exports=function(r){var e=this;if(typeof e!="function"||_n.apply(e)!==Mn)throw new TypeError(Un+e);for(var t=Wn(arguments,1),o,a=function(){if(this instanceof o){var l=e.apply(this,Jr(t,arguments));return Object(l)===l?l:this}return e.apply(r,Jr(t,arguments))},u=Cn(0,e.length-t.length),f=[],s=0;s<u;s++)f[s]="$"+s;if(o=Function("binder","return function ("+kn(f,",")+"){ return binder.apply(this,arguments); }")(a),e.prototype){var g=function(){};g.prototype=e.prototype,o.prototype=new g,g.prototype=null}return o}});var W=i((Oa,Xr)=>{"use strict";var Ln=Yr();Xr.exports=Function.prototype.bind||Ln});var Zr=i((Ia,Qr)=>{"use strict";Qr.exports=Error});var re=i((Ea,Vr)=>{"use strict";Vr.exports=EvalError});var te=i((Fa,ee)=>{"use strict";ee.exports=RangeError});var oe=i((ja,ne)=>{"use strict";ne.exports=ReferenceError});var fr=i((Ta,ie)=>{"use strict";ie.exports=SyntaxError});var b=i((Ra,ae)=>{"use strict";ae.exports=TypeError});var se=i((Ba,ue)=>{"use strict";ue.exports=URIError});var lr=i((Da,pe)=>{"use strict";pe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},e=Symbol("test"),t=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var o=42;r[e]=o;for(e in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(r,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(r,e);if(u.value!==o||u.enumerable!==!0)return!1}return!0}});var yr=i((Ga,le)=>{"use strict";var fe=typeof Symbol!="undefined"&&Symbol,Kn=lr();le.exports=function(){return typeof fe!="function"||typeof Symbol!="function"||typeof fe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Kn()}});var ce=i((Na,ye)=>{"use strict";var cr={__proto__:null,foo:{}},Hn=Object;ye.exports=function(){return{__proto__:cr}.foo===cr.foo&&!(cr instanceof Hn)}});var ge=i((Ua,ve)=>{"use strict";var Jn=Function.prototype.call,zn=Object.prototype.hasOwnProperty,Yn=W();ve.exports=Yn.call(Jn,zn)});var h=i((_a,Se)=>{"use strict";var p,Xn=Zr(),Qn=re(),Zn=te(),Vn=oe(),j=fr(),F=b(),ro=se(),me=Function,vr=function(n){try{return me('"use strict"; return ('+n+").constructor;")()}catch(r){}},$=Object.getOwnPropertyDescriptor;if($)try{$({},"")}catch(n){$=null}var gr=function(){throw new F},eo=$?function(){try{return arguments.callee,gr}catch(n){try{return $(arguments,"callee").get}catch(r){return gr}}}():gr,I=yr()(),to=ce()(),v=Object.getPrototypeOf||(to?function(n){return n.__proto__}:null),E={},no=typeof Uint8Array=="undefined"||!v?p:v(Uint8Array),O={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?p:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?p:ArrayBuffer,"%ArrayIteratorPrototype%":I&&v?v([][Symbol.iterator]()):p,"%AsyncFromSyncIteratorPrototype%":p,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":typeof Atomics=="undefined"?p:Atomics,"%BigInt%":typeof BigInt=="undefined"?p:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?p:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?p:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?p:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Xn,"%eval%":eval,"%EvalError%":Qn,"%Float32Array%":typeof Float32Array=="undefined"?p:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?p:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?p:FinalizationRegistry,"%Function%":me,"%GeneratorFunction%":E,"%Int8Array%":typeof Int8Array=="undefined"?p:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?p:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?p:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":I&&v?v(v([][Symbol.iterator]())):p,"%JSON%":typeof JSON=="object"?JSON:p,"%Map%":typeof Map=="undefined"?p:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!I||!v?p:v(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?p:Promise,"%Proxy%":typeof Proxy=="undefined"?p:Proxy,"%RangeError%":Zn,"%ReferenceError%":Vn,"%Reflect%":typeof Reflect=="undefined"?p:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?p:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!I||!v?p:v(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?p:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":I&&v?v(""[Symbol.iterator]()):p,"%Symbol%":I?Symbol:p,"%SyntaxError%":j,"%ThrowTypeError%":eo,"%TypedArray%":no,"%TypeError%":F,"%Uint8Array%":typeof Uint8Array=="undefined"?p:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?p:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?p:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?p:Uint32Array,"%URIError%":ro,"%WeakMap%":typeof WeakMap=="undefined"?p:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?p:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?p:WeakSet};if(v)try{null.error}catch(n){be=v(v(n)),O["%Error.prototype%"]=be}var be,oo=function n(r){var e;if(r==="%AsyncFunction%")e=vr("async function () {}");else if(r==="%GeneratorFunction%")e=vr("function* () {}");else if(r==="%AsyncGeneratorFunction%")e=vr("async function* () {}");else if(r==="%AsyncGenerator%"){var t=n("%AsyncGeneratorFunction%");t&&(e=t.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=n("%AsyncGenerator%");o&&v&&(e=v(o.prototype))}return O[r]=e,e},de={__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"]},D=W(),k=ge(),io=D.call(Function.call,Array.prototype.concat),ao=D.call(Function.apply,Array.prototype.splice),he=D.call(Function.call,String.prototype.replace),L=D.call(Function.call,String.prototype.slice),uo=D.call(Function.call,RegExp.prototype.exec),so=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,po=/\\(\\)?/g,fo=function(r){var e=L(r,0,1),t=L(r,-1);if(e==="%"&&t!=="%")throw new j("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&e!=="%")throw new j("invalid intrinsic syntax, expected opening `%`");var o=[];return he(r,so,function(a,u,f,s){o[o.length]=f?he(s,po,"$1"):u||a}),o},lo=function(r,e){var t=r,o;if(k(de,t)&&(o=de[t],t="%"+o[0]+"%"),k(O,t)){var a=O[t];if(a===E&&(a=oo(t)),typeof a=="undefined"&&!e)throw new F("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:t,value:a}}throw new j("intrinsic "+r+" does not exist!")};Se.exports=function(r,e){if(typeof r!="string"||r.length===0)throw new F("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new F('"allowMissing" argument must be a boolean');if(uo(/^%?[^%]*%?$/,r)===null)throw new j("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=fo(r),o=t.length>0?t[0]:"",a=lo("%"+o+"%",e),u=a.name,f=a.value,s=!1,g=a.alias;g&&(o=g[0],ao(t,io([0,1],g)));for(var l=1,y=!0;l<t.length;l+=1){var c=t[l],m=L(c,0,1),A=L(c,-1);if((m==='"'||m==="'"||m==="`"||A==='"'||A==="'"||A==="`")&&m!==A)throw new j("property names with quotes must have matching quotes");if((c==="constructor"||!y)&&(s=!0),o+="."+c,u="%"+o+"%",k(O,u))f=O[u];else if(f!=null){if(!(c in f)){if(!e)throw new F("base intrinsic for "+r+" exists, but the property is not available.");return}if($&&l+1>=t.length){var d=$(f,c);y=!!d,y&&"get"in d&&!("originalValue"in d.get)?f=d.get:f=f[c]}else y=k(f,c),f=f[c];y&&!s&&(O[u]=f)}}return f}});var H=i((Ca,Ae)=>{"use strict";var yo=h(),K=yo("%Object.defineProperty%",!0)||!1;if(K)try{K({},"a",{value:1})}catch(n){K=!1}Ae.exports=K});var br=i((Ma,we)=>{"use strict";var co=h(),J=co("%Object.getOwnPropertyDescriptor%",!0);if(J)try{J([],"length")}catch(n){J=null}we.exports=J});var dr=i((Wa,Pe)=>{"use strict";var qe=H(),vo=fr(),T=b(),xe=br();Pe.exports=function(r,e,t){if(!r||typeof r!="object"&&typeof r!="function")throw new T("`obj` must be an object or a function`");if(typeof e!="string"&&typeof e!="symbol")throw new T("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new T("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new T("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new T("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new T("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,s=!!xe&&xe(r,e);if(qe)qe(r,e,{configurable:u===null&&s?s.configurable:!u,enumerable:o===null&&s?s.enumerable:!o,value:t,writable:a===null&&s?s.writable:!a});else if(f||!o&&!a&&!u)r[e]=t;else throw new vo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var mr=i((ka,Oe)=>{"use strict";var hr=H(),$e=function(){return!!hr};$e.hasArrayLengthDefineBug=function(){if(!hr)return null;try{return hr([],"length",{value:1}).length!==1}catch(r){return!0}};Oe.exports=$e});var Te=i((La,je)=>{"use strict";var go=h(),Ie=dr(),bo=mr()(),Ee=br(),Fe=b(),ho=go("%Math.floor%");je.exports=function(r,e){if(typeof r!="function")throw new Fe("`fn` is not a function");if(typeof e!="number"||e<0||e>4294967295||ho(e)!==e)throw new Fe("`length` must be a positive 32-bit integer");var t=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in r&&Ee){var u=Ee(r,"length");u&&!u.configurable&&(o=!1),u&&!u.writable&&(a=!1)}return(o||a||!t)&&(bo?Ie(r,"length",e,!0,!0):Ie(r,"length",e)),r}});var X=i((Ka,z)=>{"use strict";var Sr=W(),Y=h(),mo=Te(),So=b(),De=Y("%Function.prototype.apply%"),Ge=Y("%Function.prototype.call%"),Ne=Y("%Reflect.apply%",!0)||Sr.call(Ge,De),Re=H(),Ao=Y("%Math.max%");z.exports=function(r){if(typeof r!="function")throw new So("a function is required");var e=Ne(Sr,Ge,arguments);return mo(e,1+Ao(0,r.length-(arguments.length-1)),!0)};var Be=function(){return Ne(Sr,De,arguments)};Re?Re(z.exports,"apply",{value:Be}):z.exports.apply=Be});var Ar=i((Ha,_e)=>{"use strict";var Ue=Object.prototype.toString;_e.exports=function(r){var e=Ue.call(r),t=e==="[object Arguments]";return t||(t=e!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&Ue.call(r.callee)==="[object Function]"),t}});var ze=i((Ja,Je)=>{"use strict";var He;Object.keys||(G=Object.prototype.hasOwnProperty,wr=Object.prototype.toString,Ce=Ar(),qr=Object.prototype.propertyIsEnumerable,Me=!qr.call({toString:null},"toString"),We=qr.call(function(){},"prototype"),N=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Q=function(n){var r=n.constructor;return r&&r.prototype===n},ke={$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},Le=function(){if(typeof window=="undefined")return!1;for(var n in window)try{if(!ke["$"+n]&&G.call(window,n)&&window[n]!==null&&typeof window[n]=="object")try{Q(window[n])}catch(r){return!0}}catch(r){return!0}return!1}(),Ke=function(n){if(typeof window=="undefined"||!Le)return Q(n);try{return Q(n)}catch(r){return!1}},He=function(r){var e=r!==null&&typeof r=="object",t=wr.call(r)==="[object Function]",o=Ce(r),a=e&&wr.call(r)==="[object String]",u=[];if(!e&&!t&&!o)throw new TypeError("Object.keys called on a non-object");var f=We&&t;if(a&&r.length>0&&!G.call(r,0))for(var s=0;s<r.length;++s)u.push(String(s));if(o&&r.length>0)for(var g=0;g<r.length;++g)u.push(String(g));else for(var l in r)!(f&&l==="prototype")&&G.call(r,l)&&u.push(String(l));if(Me)for(var y=Ke(r),c=0;c<N.length;++c)!(y&&N[c]==="constructor")&&G.call(r,N[c])&&u.push(N[c]);return u});var G,wr,Ce,qr,Me,We,N,Q,ke,Le,Ke;Je.exports=He});var Ze=i((za,Qe)=>{"use strict";var wo=Array.prototype.slice,qo=Ar(),Ye=Object.keys,Z=Ye?function(r){return Ye(r)}:ze(),Xe=Object.keys;Z.shim=function(){if(Object.keys){var r=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);r||(Object.keys=function(t){return qo(t)?Xe(wo.call(t)):Xe(t)})}else Object.keys=Z;return Object.keys||Z};Qe.exports=Z});var U=i((Ya,tt)=>{"use strict";var xo=Ze(),Po=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",$o=Object.prototype.toString,Oo=Array.prototype.concat,Ve=dr(),Io=function(n){return typeof n=="function"&&$o.call(n)==="[object Function]"},rt=mr()(),Eo=function(n,r,e,t){if(r in n){if(t===!0){if(n[r]===e)return}else if(!Io(t)||!t())return}rt?Ve(n,r,e,!0):Ve(n,r,e)},et=function(n,r){var e=arguments.length>2?arguments[2]:{},t=xo(r);Po&&(t=Oo.call(t,Object.getOwnPropertySymbols(r)));for(var o=0;o<t.length;o+=1)Eo(n,t[o],r[t[o]],e[t[o]])};et.supportsDescriptors=!!rt;tt.exports=et});var S=i((Xa,it)=>{"use strict";var nt=h(),ot=X(),Fo=ot(nt("String.prototype.indexOf"));it.exports=function(r,e){var t=nt(r,!!e);return typeof t=="function"&&Fo(r,".prototype.")>-1?ot(t):t}});var st=i((Qa,ut)=>{"use strict";var jo=h(),at=jo("%Array%"),To=!at.isArray&&S()("Object.prototype.toString");ut.exports=at.isArray||function(r){return To(r)==="[object Array]"}});var xr=i((Za,pt)=>{"use strict";pt.exports=st()});var lt=i((Va,ft)=>{"use strict";var Ro=h(),Bo=S(),Do=b(),Go=xr(),No=Ro("%Reflect.apply%",!0)||Bo("Function.prototype.apply");ft.exports=function(r,e){var t=arguments.length>2?arguments[2]:[];if(!Go(t))throw new Do("Assertion failed: optional `argumentsList`, if provided, must be a List");return No(r,e,t)}});var V=i((ru,yt)=>{"use strict";yt.exports=function(r){return typeof r=="string"||typeof r=="symbol"}});var vt=i((eu,ct)=>{"use strict";var Uo=b(),_o=M("object-inspect"),Co=V();ct.exports=function(r,e){if(!Co(e))throw new Uo("Assertion failed: IsPropertyKey(P) is not true, got "+_o(e));return r[e]}});var ht=i((tu,dt)=>{"use strict";var bt=Function.prototype.toString,R=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,$r,rr;if(typeof R=="function"&&typeof Object.defineProperty=="function")try{$r=Object.defineProperty({},"length",{get:function(){throw rr}}),rr={},R(function(){throw 42},null,$r)}catch(n){n!==rr&&(R=null)}else R=null;var Mo=/^\s*class\b/,Or=function(r){try{var e=bt.call(r);return Mo.test(e)}catch(t){return!1}},Pr=function(r){try{return Or(r)?!1:(bt.call(r),!0)}catch(e){return!1}},er=Object.prototype.toString,Wo="[object Object]",ko="[object Function]",Lo="[object GeneratorFunction]",Ko="[object HTMLAllCollection]",Ho="[object HTML document.all class]",Jo="[object HTMLCollection]",zo=typeof Symbol=="function"&&!!Symbol.toStringTag,Yo=!(0 in[,]),Ir=function(){return!1};typeof document=="object"&&(gt=document.all,er.call(gt)===er.call(document.all)&&(Ir=function(r){if((Yo||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var e=er.call(r);return(e===Ko||e===Ho||e===Jo||e===Wo)&&r("")==null}catch(t){}return!1}));var gt;dt.exports=R?function(r){if(Ir(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{R(r,null,$r)}catch(e){if(e!==rr)return!1}return!Or(r)&&Pr(r)}:function(r){if(Ir(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(zo)return Pr(r);if(Or(r))return!1;var e=er.call(r);return e!==ko&&e!==Lo&&!/^\[object HTML/.test(e)?!1:Pr(r)}});var Er=i((nu,mt)=>{"use strict";mt.exports=ht()});var qt=i((ou,wt)=>{"use strict";var St=b(),Xo=vt(),Qo=Er(),Zo=V(),At=M("object-inspect");wt.exports=function(r,e){if(!Zo(e))throw new St("Assertion failed: IsPropertyKey(P) is not true");var t=Xo(r,e);if(t!=null){if(!Qo(t))throw new St(At(e)+" is not a function: "+At(t));return t}}});var Pt=i((iu,xt)=>{"use strict";var Vo=lr();xt.exports=function(){return Vo()&&!!Symbol.toStringTag}});var Rr=i((au,Et)=>{"use strict";var Fr=S(),$t=Pt()(),Ot,It,jr,Tr;$t&&(Ot=Fr("Object.prototype.hasOwnProperty"),It=Fr("RegExp.prototype.exec"),jr={},tr=function(){throw jr},Tr={toString:tr,valueOf:tr},typeof Symbol.toPrimitive=="symbol"&&(Tr[Symbol.toPrimitive]=tr));var tr,ri=Fr("Object.prototype.toString"),ei=Object.getOwnPropertyDescriptor,ti="[object RegExp]";Et.exports=$t?function(r){if(!r||typeof r!="object")return!1;var e=ei(r,"lastIndex"),t=e&&Ot(e,"value");if(!t)return!1;try{It(r,Tr)}catch(o){return o===jr}}:function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:ri(r)===ti}});var Br=i((uu,Ft)=>{"use strict";var ni=S(),oi=Rr(),ii=ni("RegExp.prototype.exec"),ai=b();Ft.exports=function(r){if(!oi(r))throw new ai("`regex` must be a RegExp");return function(t){return ii(r,t)!==null}}});var Tt=i((su,jt)=>{"use strict";jt.exports=function(r,e){for(var t=0;t<r.length;t+=1)if(!e(r[t],t,r))return!1;return!0}});var Bt=i((pu,Rt)=>{"use strict";Rt.exports=function(r){if(r===null)return"Null";if(typeof r=="undefined")return"Undefined";if(typeof r=="function"||typeof r=="object")return"Object";if(typeof r=="number")return"Number";if(typeof r=="boolean")return"Boolean";if(typeof r=="string")return"String"}});var Dr=i((fu,Dt)=>{"use strict";var ui=Bt();Dt.exports=function(r){return typeof r=="symbol"?"Symbol":typeof r=="bigint"?"BigInt":ui(r)}});var Ut=i((lu,Nt)=>{"use strict";var Gt=b(),si=M("object-inspect"),pi=V(),fi=Dr();Nt.exports=function(r,e){if(fi(r)!=="Object")throw new Gt("Assertion failed: Type(O) is not Object");if(!pi(e))throw new Gt("Assertion failed: IsPropertyKey(P) is not true, got "+si(e));return r[e]}});var Ct=i((yu,_t)=>{"use strict";var li=h();_t.exports=li("%Math.min%")});var Gr=i((cu,Mt)=>{"use strict";Mt.exports=Number.isNaN||function(r){return r!==r}});var kt=i((vu,Wt)=>{"use strict";var yi=Gr();Wt.exports=function(n){return(typeof n=="number"||typeof n=="bigint")&&!yi(n)&&n!==1/0&&n!==-1/0}});var nr=i((gu,Kt)=>{"use strict";var Lt=h(),ci=Lt("%Math.abs%"),vi=Lt("%Math.floor%"),gi=Gr(),bi=kt();Kt.exports=function(r){if(typeof r!="number"||gi(r)||!bi(r))return!1;var e=ci(r);return vi(e)===e}});var Ur=i((bu,Ht)=>{"use strict";var di=S(),Nr=b(),hi=nr(),mi=di("String.prototype.slice");Ht.exports=function(r,e,t){if(typeof r!="string")throw new Nr("Assertion failed: `string` must be a String");if(typeof e!="string")throw new Nr("Assertion failed: `searchValue` must be a String");if(!hi(t)||t<0)throw new Nr("Assertion failed: `fromIndex` must be a non-negative integer");var o=r.length;if(e===""&&t<=o)return t;for(var a=e.length,u=t;u<=o-a;u+=1){var f=mi(r,u,u+a);if(f===e)return u}return-1}});var or=i((du,Jt)=>{"use strict";var Si=b();Jt.exports=function(r){if(r==null)throw new Si(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r}});var ir=i((hu,zt)=>{"use strict";var Ai=h(),wi=Ai("%String%"),qi=b();zt.exports=function(r){if(typeof r=="symbol")throw new qi("Cannot convert a Symbol value to a string");return wi(r)}});var _r=i((mu,Qt)=>{"use strict";var xi=or(),Pi=ir(),$i=S(),Yt=$i("String.prototype.replace"),Xt=/^\s$/.test("\u180E"),Oi=Xt?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Ii=Xt?/[\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]+$/;Qt.exports=function(){var r=Pi(xi(this));return Yt(Yt(r,Oi,""),Ii,"")}});var Cr=i((Su,Vt)=>{"use strict";var Ei=_r(),Zt="\u200B",B="\u180E";Vt.exports=function(){return String.prototype.trim&&Zt.trim()===Zt&&B.trim()===B&&("_"+B).trim()==="_"+B&&(B+"_").trim()===B+"_"?String.prototype.trim:Ei}});var en=i((Au,rn)=>{"use strict";var Fi=U(),ji=Cr();rn.exports=function(){var r=ji();return Fi(String.prototype,{trim:r},{trim:function(){return String.prototype.trim!==r}}),r}});var an=i((wu,on)=>{"use strict";var Ti=X(),Ri=U(),Bi=or(),Di=_r(),tn=Cr(),Gi=en(),Ni=Ti(tn()),nn=function(r){return Bi(r),Ni(r)};Ri(nn,{getPolyfill:tn,implementation:Di,shim:Gi});on.exports=nn});var fn=i((qu,pn)=>{"use strict";var Wr=h(),Mr=Wr("%Number%"),Ui=Wr("%RegExp%"),_i=b(),un=Wr("%parseInt%"),Ci=S(),ar=Br(),sn=Ci("String.prototype.slice"),Mi=ar(/^0b[01]+$/i),Wi=ar(/^0o[0-7]+$/i),ki=ar(/^[-+]0x[0-9a-f]+$/i),Li=["\x85","\u200B","\uFFFE"].join(""),Ki=new Ui("["+Li+"]","g"),Hi=ar(Ki),Ji=an();pn.exports=function n(r){if(typeof r!="string")throw new _i("Assertion failed: `argument` is not a String");if(Mi(r))return Mr(un(sn(r,2),2));if(Wi(r))return Mr(un(sn(r,2),8));if(Hi(r)||ki(r))return NaN;var e=Ji(r);return e!==r?n(e):Mr(r)}});var cn=i((xu,yn)=>{"use strict";var zi=b(),ln=nr(),Yi=S(),Xi=Yi("String.prototype.slice");yn.exports=function(r,e,t){if(typeof r!="string"||!ln(e)||arguments.length>2&&!ln(t))throw new zi("`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers");return Xi(r,e,arguments.length>2?t:r.length)}});var gn=i((Pu,vn)=>{"use strict";vn.exports=function(r){return typeof r=="string"||typeof r=="undefined"}});var dn=i(($u,bn)=>{"use strict";var Qi=S()("String.prototype.slice");bn.exports=function(r,e){return r===e?!0:r.length>e.length?!1:Qi(e,0,r.length)===r}});var wn=i((Ou,An)=>{"use strict";var q=b(),Sn=Br(),Zi=Tt(),kr=M("object-inspect"),Vi=Ut(),ra=xr(),ea=Ct(),ta=Ur(),hn=fn(),x=cn(),na=ir(),mn=Dr(),oa=nr(),ia=gn(),_=dn(),aa=Sn(/^\$[0-9]/),ua=Sn(/^\$[0-9][0-9]/);An.exports=function(r,e,t,o,a,u){if(typeof r!="string")throw new q("Assertion failed: `matched` must be a String");if(typeof e!="string")throw new q("Assertion failed: `str` must be a String");if(!oa(t)||t<0)throw new q("Assertion failed: `position` must be a nonnegative integer, got "+kr(t));if(!ra(o)||!Zi(o,ia))throw new q("Assertion failed: `captures` must be a possibly-empty List of Strings or `undefined`, got "+kr(o));if(typeof a!="undefined"&&mn(a)!=="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 f=e.length;if(t>f)throw new q("Assertion failed: position > stringLength, got "+kr(t));for(var s=u,g="";s!=="";){var l,y,c;if(_("$$",s))l="$$",y="$";else if(_("$`",s))l="$`",y=x(e,0,t);else if(_("$&",s))l="$&",y=r;else if(_("$'",s)){l="$'";var m=r.length,A=t+m;y=x(e,ea(A,f))}else if(aa(s)){var d=ua(s)?2:1,P=x(s,1,1+d),w=hn(P);if(w<0||w>99)throw new q("Assertion failed: `index` must be >= 0 and <= 99");var C=o.length;w>C&&d===2&&(d=1,P=x(P,0,1),w=hn(P)),l=x(s,0,1+d),1<=w&&w<=C?(c=o[w-1],typeof c=="undefined"?y="":y=c):y=l}else if(_("$<",s)){var pr=ta(s,">",0);if(pr===-1||typeof a=="undefined")l="$<",y=l;else{l=x(s,0,pr+1);var Bn=x(s,2,pr);if(mn(a)!=="Object")throw new q("Assertion failed: Type(namedCaptures) is not Object");c=Vi(a,Bn),typeof c=="undefined"?y="":y=na(c)}}else l=x(s,0,1),y=l;var Dn=l.length;s=x(s,Dn),g+=y}return g}});var Kr=i((Iu,$n)=>{"use strict";var qn=lt(),sa=qt(),pa=wn(),fa=Er(),la=or(),ur=ir(),xn=Ur(),ya=h(),sr=S(),ca=yr()(),va=Rr(),ga=ya("%Math.max%"),Pn=b(),ba=sr("Array.prototype.push"),Lr=sr("String.prototype.slice"),da=sr("String.prototype.indexOf"),ha=sr("String.prototype.replace");$n.exports=function(r,e){var t=la(this),o=va(r);if(o&&da(Lr(r,r.source.length+2),"g")===-1)throw new Pn("use .replace for a non-global regex. NOTE: this may be allowed in the future.");if(ca&&Symbol.replace){if(r!=null){var a=sa(r,Symbol.replace);if(typeof a!="undefined")return qn(a,r,[t,e])}}else if(o)return ha(t,r,e);var u=ur(t),f=ur(r),s=fa(e);s||(e=ur(e));for(var g=f.length,l=ga(1,g),y=[],c=xn(u,f,0);c!==-1;)ba(y,c),c=xn(u,f,c+l);for(var m=0,A="",d=0;d<y.length;d+=1){var P;if(s)P=ur(qn(e,void 0,[f,y[d],u]));else{if(typeof e!="string")throw new Pn("Assertion failed: `replaceValue` should be a string at this point");var w=[];P=pa(f,u,y[d],w,void 0,e)}var C=Lr(u,m,y[d]);A+=C+P,m=y[d]+g}return m<u.length&&(A+=Lr(u,m)),A}});var Hr=i((Eu,On)=>{"use strict";var ma=Kr();On.exports=function(){return String.prototype.replaceAll||ma}});var En=i((Fu,In)=>{"use strict";var Sa=U(),Aa=Hr();In.exports=function(){var r=Aa();return Sa(String.prototype,{replaceAll:r},{replaceAll:function(){return String.prototype.replaceAll!==r}}),r}});var Rn=i((ju,Tn)=>{"use strict";var wa=X(),qa=U(),Fn=Kr(),xa=Hr(),Pa=En(),jn=wa(Fn);qa(jn,{getPolyfill:xa,implementation:Fn,shim:Pa});Tn.exports=jn});var Tu=Gn(Rn(),1);export{Nn as DynamicSnippetsGenerator};
1
+ import{a as ji}from"./chunk-775WBLQ5.js";import"./chunk-SUV3YIZ5.js";import"./chunk-5TA7XQOD.js";import"./chunk-IIKN6XQS.js";import"./chunk-ZXKMRXFM.js";import"./chunk-I3J7ADQS.js";import"./chunk-VLNKANS2.js";import"./chunk-LLE63BZO.js";import"./chunk-E5FOYV6P.js";import"./chunk-ZI6CAI2V.js";import{e as ne,f as y,g as Gi,h as ki,i as zi,k as o,l as s,m as i}from"./chunk-2AZXIWKY.js";var ht=y((jl,vt)=>{"use strict";o();i();var Hi="Function.prototype.bind called on incompatible ",Ji=Object.prototype.toString,Ki=Math.max,Qi="[object Function]",gt=function(r,t){for(var n=[],u=0;u<r.length;u+=1)n[u]=r[u];for(var a=0;a<t.length;a+=1)n[a+r.length]=t[a];return n},Yi=function(r,t){for(var n=[],u=t||0,a=0;u<r.length;u+=1,a+=1)n[a]=r[u];return n},Xi=function(e,r){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=r);return t};vt.exports=function(r){var t=this;if(typeof t!="function"||Ji.apply(t)!==Qi)throw new TypeError(Hi+t);for(var n=Yi(arguments,1),u,a=function(){if(this instanceof u){var v=t.apply(this,gt(n,arguments));return Object(v)===v?v:this}return t.apply(r,gt(n,arguments))},f=Ki(0,t.length-n.length),c=[],l=0;l<f;l++)c[l]="$"+l;if(u=Function("binder","return function ("+Xi(c,",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var m=function(){};m.prototype=t.prototype,u.prototype=new m,m.prototype=null}return u}});var Or=y((Kl,dt)=>{"use strict";o();i();var Zi=ht();dt.exports=Function.prototype.bind||Zi});var St=y((Xl,mt)=>{"use strict";o();i();mt.exports=Error});var wt=y((rs,bt)=>{"use strict";o();i();bt.exports=EvalError});var Ot=y((ns,At)=>{"use strict";o();i();At.exports=RangeError});var xt=y((as,qt)=>{"use strict";o();i();qt.exports=ReferenceError});var oe=y((ls,$t)=>{"use strict";o();i();$t.exports=SyntaxError});var w=y((cs,Et)=>{"use strict";o();i();Et.exports=TypeError});var It=y((vs,Pt)=>{"use strict";o();i();Pt.exports=URIError});var ie=y((ms,Tt)=>{"use strict";o();i();Tt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var u=42;r[t]=u;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(r,t);if(f.value!==u||f.enumerable!==!0)return!1}return!0}});var ae=y((ws,Rt)=>{"use strict";o();i();var Ft=typeof Symbol!="undefined"&&Symbol,Vi=ie();Rt.exports=function(){return typeof Ft!="function"||typeof Symbol!="function"||typeof Ft("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Vi()}});var Dt=y((qs,Nt)=>{"use strict";o();i();var ue={__proto__:null,foo:{}},ra=Object;Nt.exports=function(){return{__proto__:ue}.foo===ue.foo&&!(ue instanceof ra)}});var Bt=y((Es,_t)=>{"use strict";o();i();var ea=Function.prototype.call,ta=Object.prototype.hasOwnProperty,na=Or();_t.exports=na.call(ea,ta)});var E=y((Ts,Lt)=>{"use strict";o();i();var d,oa=St(),ia=wt(),aa=Ot(),ua=xt(),Z=oe(),X=w(),fa=It(),Wt=Function,fe=function(e){try{return Wt('"use strict"; return ('+e+").constructor;")()}catch(r){}},G=Object.getOwnPropertyDescriptor;if(G)try{G({},"")}catch(e){G=null}var le=function(){throw new X},la=G?function(){try{return arguments.callee,le}catch(e){try{return G(arguments,"callee").get}catch(r){return le}}}():le,Q=ae()(),sa=Dt()(),b=Object.getPrototypeOf||(sa?function(e){return e.__proto__}:null),Y={},pa=typeof Uint8Array=="undefined"||!b?d:b(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":Q&&b?b([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":oa,"%eval%":eval,"%EvalError%":ia,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":Wt,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Q&&b?b(b([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Q||!b?d:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":aa,"%ReferenceError%":ua,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Q||!b?d:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Q&&b?b(""[Symbol.iterator]()):d,"%Symbol%":Q?Symbol:d,"%SyntaxError%":Z,"%ThrowTypeError%":la,"%TypedArray%":pa,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":fa,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet};if(b)try{null.error}catch(e){Mt=b(b(e)),k["%Error.prototype%"]=Mt}var Mt,ca=function e(r){var t;if(r==="%AsyncFunction%")t=fe("async function () {}");else if(r==="%GeneratorFunction%")t=fe("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=fe("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var u=e("%AsyncGenerator%");u&&b&&(t=b(u.prototype))}return k[r]=t,t},Ct={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ar=Or(),qr=Bt(),ya=ar.call(Function.call,Array.prototype.concat),ga=ar.call(Function.apply,Array.prototype.splice),Ut=ar.call(Function.call,String.prototype.replace),xr=ar.call(Function.call,String.prototype.slice),va=ar.call(Function.call,RegExp.prototype.exec),ha=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,da=/\\(\\)?/g,ma=function(r){var t=xr(r,0,1),n=xr(r,-1);if(t==="%"&&n!=="%")throw new Z("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new Z("invalid intrinsic syntax, expected opening `%`");var u=[];return Ut(r,ha,function(a,f,c,l){u[u.length]=c?Ut(l,da,"$1"):f||a}),u},Sa=function(r,t){var n=r,u;if(qr(Ct,n)&&(u=Ct[n],n="%"+u[0]+"%"),qr(k,n)){var a=k[n];if(a===Y&&(a=ca(n)),typeof a=="undefined"&&!t)throw new X("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:u,name:n,value:a}}throw new Z("intrinsic "+r+" does not exist!")};Lt.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new X('"allowMissing" argument must be a boolean');if(va(/^%?[^%]*%?$/,r)===null)throw new Z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ma(r),u=n.length>0?n[0]:"",a=Sa("%"+u+"%",t),f=a.name,c=a.value,l=!1,m=a.alias;m&&(u=m[0],ga(n,ya([0,1],m)));for(var v=1,h=!0;v<n.length;v+=1){var g=n[v],A=xr(g,0,1),x=xr(g,-1);if((A==='"'||A==="'"||A==="`"||x==='"'||x==="'"||x==="`")&&A!==x)throw new Z("property names with quotes must have matching quotes");if((g==="constructor"||!h)&&(l=!0),u+="."+g,f="%"+u+"%",qr(k,f))c=k[f];else if(c!=null){if(!(g in c)){if(!t)throw new X("base intrinsic for "+r+" exists, but the property is not available.");return}if(G&&v+1>=n.length){var S=G(c,g);h=!!S,h&&"get"in S&&!("originalValue"in S.get)?c=S.get:c=c[g]}else h=qr(c,g),c=c[g];h&&!l&&(k[f]=c)}}return c}});var Er=y((Ns,Gt)=>{"use strict";o();i();var ba=E(),$r=ba("%Object.defineProperty%",!0)||!1;if($r)try{$r({},"a",{value:1})}catch(e){$r=!1}Gt.exports=$r});var se=y((Bs,kt)=>{"use strict";o();i();var wa=E(),Pr=wa("%Object.getOwnPropertyDescriptor%",!0);if(Pr)try{Pr([],"length")}catch(e){Pr=null}kt.exports=Pr});var pe=y((Us,Ht)=>{"use strict";o();i();var zt=Er(),Aa=oe(),V=w(),jt=se();Ht.exports=function(r,t,n){if(!r||typeof r!="object"&&typeof r!="function")throw new V("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new V("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new V("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new V("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new V("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new V("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!jt&&jt(r,t);if(zt)zt(r,t,{configurable:f===null&&l?l.configurable:!f,enumerable:u===null&&l?l.enumerable:!u,value:n,writable:a===null&&l?l.writable:!a});else if(c||!u&&!a&&!f)r[t]=n;else throw new Aa("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var ye=y((Gs,Kt)=>{"use strict";o();i();var ce=Er(),Jt=function(){return!!ce};Jt.hasArrayLengthDefineBug=function(){if(!ce)return null;try{return ce([],"length",{value:1}).length!==1}catch(r){return!0}};Kt.exports=Jt});var Vt=y((js,Zt)=>{"use strict";o();i();var Oa=E(),Qt=pe(),qa=ye()(),Yt=se(),Xt=w(),xa=Oa("%Math.floor%");Zt.exports=function(r,t){if(typeof r!="function")throw new Xt("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||xa(t)!==t)throw new Xt("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],u=!0,a=!0;if("length"in r&&Yt){var f=Yt(r,"length");f&&!f.configurable&&(u=!1),f&&!f.writable&&(a=!1)}return(u||a||!n)&&(qa?Qt(r,"length",t,!0,!0):Qt(r,"length",t)),r}});var Fr=y((Ks,Ir)=>{"use strict";o();i();var ge=Or(),Tr=E(),$a=Vt(),Ea=w(),tn=Tr("%Function.prototype.apply%"),nn=Tr("%Function.prototype.call%"),on=Tr("%Reflect.apply%",!0)||ge.call(nn,tn),rn=Er(),Pa=Tr("%Math.max%");Ir.exports=function(r){if(typeof r!="function")throw new Ea("a function is required");var t=on(ge,nn,arguments);return $a(t,1+Pa(0,r.length-(arguments.length-1)),!0)};var en=function(){return on(ge,tn,arguments)};rn?rn(Ir.exports,"apply",{value:en}):Ir.exports.apply=en});var ve=y((Xs,un)=>{"use strict";o();i();var an=Object.prototype.toString;un.exports=function(r){var t=an.call(r),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&an.call(r.callee)==="[object Function]"),n}});var hn=y((rp,vn)=>{"use strict";o();i();var gn;Object.keys||(ur=Object.prototype.hasOwnProperty,he=Object.prototype.toString,fn=ve(),de=Object.prototype.propertyIsEnumerable,ln=!de.call({toString:null},"toString"),sn=de.call(function(){},"prototype"),fr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Rr=function(e){var r=e.constructor;return r&&r.prototype===e},pn={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},cn=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!pn["$"+e]&&ur.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Rr(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),yn=function(e){if(typeof window=="undefined"||!cn)return Rr(e);try{return Rr(e)}catch(r){return!1}},gn=function(r){var t=r!==null&&typeof r=="object",n=he.call(r)==="[object Function]",u=fn(r),a=t&&he.call(r)==="[object String]",f=[];if(!t&&!n&&!u)throw new TypeError("Object.keys called on a non-object");var c=sn&&n;if(a&&r.length>0&&!ur.call(r,0))for(var l=0;l<r.length;++l)f.push(String(l));if(u&&r.length>0)for(var m=0;m<r.length;++m)f.push(String(m));else for(var v in r)!(c&&v==="prototype")&&ur.call(r,v)&&f.push(String(v));if(ln)for(var h=yn(r),g=0;g<fr.length;++g)!(h&&fr[g]==="constructor")&&ur.call(r,fr[g])&&f.push(fr[g]);return f});var ur,he,fn,de,ln,sn,fr,Rr,pn,cn,yn;vn.exports=gn});var bn=y((np,Sn)=>{"use strict";o();i();var Ia=Array.prototype.slice,Ta=ve(),dn=Object.keys,Nr=dn?function(r){return dn(r)}:hn(),mn=Object.keys;Nr.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(n){return Ta(n)?mn(Ia.call(n)):mn(n)})}else Object.keys=Nr;return Object.keys||Nr};Sn.exports=Nr});var lr=y((ap,qn)=>{"use strict";o();i();var Fa=bn(),Ra=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Na=Object.prototype.toString,Da=Array.prototype.concat,wn=pe(),_a=function(e){return typeof e=="function"&&Na.call(e)==="[object Function]"},An=ye()(),Ba=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!_a(n)||!n())return}An?wn(e,r,t,!0):wn(e,r,t)},On=function(e,r){var t=arguments.length>2?arguments[2]:{},n=Fa(r);Ra&&(n=Da.call(n,Object.getOwnPropertySymbols(r)));for(var u=0;u<n.length;u+=1)Ba(e,n[u],r[n[u]],t[n[u]])};On.supportsDescriptors=!!An;qn.exports=On});var P=y((lp,En)=>{"use strict";o();i();var xn=E(),$n=Fr(),Ma=$n(xn("String.prototype.indexOf"));En.exports=function(r,t){var n=xn(r,!!t);return typeof n=="function"&&Ma(r,".prototype.")>-1?$n(n):n}});var Tn=y((cp,In)=>{"use strict";o();i();var Ca=E(),Pn=Ca("%Array%"),Ua=!Pn.isArray&&P()("Object.prototype.toString");In.exports=Pn.isArray||function(r){return Ua(r)==="[object Array]"}});var me=y((vp,Fn)=>{"use strict";o();i();Fn.exports=Tn()});var Nn=y((mp,Rn)=>{"use strict";o();i();var Wa=E(),La=P(),Ga=w(),ka=me(),za=Wa("%Reflect.apply%",!0)||La("Function.prototype.apply");Rn.exports=function(r,t){var n=arguments.length>2?arguments[2]:[];if(!ka(n))throw new Ga("Assertion failed: optional `argumentsList`, if provided, must be a List");return za(r,t,n)}});function Dn(){throw new Error("setTimeout has not been defined")}function _n(){throw new Error("clearTimeout has not been defined")}function Bn(e){if(B===setTimeout)return setTimeout(e,0);if((B===Dn||!B)&&setTimeout)return B=setTimeout,setTimeout(e,0);try{return B(e,0)}catch(r){try{return B.call(null,e,0)}catch(t){return B.call(this,e,0)}}}function ja(e){if(M===clearTimeout)return clearTimeout(e);if((M===_n||!M)&&clearTimeout)return M=clearTimeout,clearTimeout(e);try{return M(e)}catch(r){try{return M.call(null,e)}catch(t){return M.call(this,e)}}}function Ha(){!er||!z||(er=!1,z.length?N=z.concat(N):Dr=-1,N.length&&Mn())}function Mn(){if(!er){var e=Bn(Ha);er=!0;for(var r=N.length;r;){for(z=N,N=[];++Dr<r;)z&&z[Dr].run();Dr=-1,r=N.length}z=null,er=!1,ja(e)}}function Ja(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];N.push(new Cn(e,r)),N.length===1&&!er&&Bn(Mn)}function Cn(e,r){this.fun=e,this.array=r}function j(){}function su(e){throw new Error("process.binding is not supported")}function pu(){return"/"}function cu(e){throw new Error("process.chdir is not supported")}function yu(){return 0}function vu(e){var r=gu.call(rr)*.001,t=Math.floor(r),n=Math.floor(r%1*1e9);return e&&(t=t-e[0],n=n-e[1],n<0&&(t--,n+=1e9)),[t,n]}function du(){var e=new Date,r=e-hu;return r/1e3}var B,M,N,er,z,Dr,Ka,Qa,Ya,Xa,Za,Va,ru,eu,tu,nu,ou,iu,au,uu,fu,lu,rr,gu,hu,mu,sr,Un=ne(()=>{"use strict";o();i();B=Dn,M=_n;typeof globalThis.setTimeout=="function"&&(B=setTimeout);typeof globalThis.clearTimeout=="function"&&(M=clearTimeout);N=[],er=!1,Dr=-1;Cn.prototype.run=function(){this.fun.apply(null,this.array)};Ka="browser",Qa="browser",Ya=!0,Xa={},Za=[],Va="",ru={},eu={},tu={};nu=j,ou=j,iu=j,au=j,uu=j,fu=j,lu=j;rr=globalThis.performance||{},gu=rr.now||rr.mozNow||rr.msNow||rr.oNow||rr.webkitNow||function(){return new Date().getTime()};hu=new Date;mu={nextTick:Ja,title:Ka,browser:Ya,env:Xa,argv:Za,version:Va,versions:ru,on:nu,addListener:ou,once:iu,off:au,removeListener:uu,removeAllListeners:fu,emit:lu,binding:su,cwd:pu,chdir:cu,umask:yu,hrtime:vu,platform:Qa,release:eu,config:tu,uptime:du},sr=mu});var Se,be,Wn=ne(()=>{"use strict";o();i();typeof Object.create=="function"?Se=function(r,t){r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:Se=function(r,t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r};be=Se});var Kn={};Gi(Kn,{_extend:()=>Ie,debuglog:()=>Ln,default:()=>Pu,deprecate:()=>xe,format:()=>Cr,inherits:()=>be,inspect:()=>T,isArray:()=>$e,isBoolean:()=>Ur,isBuffer:()=>jn,isDate:()=>Mr,isError:()=>cr,isFunction:()=>yr,isNull:()=>gr,isNullOrUndefined:()=>Gn,isNumber:()=>Ee,isObject:()=>H,isPrimitive:()=>zn,isRegExp:()=>pr,isString:()=>vr,isSymbol:()=>kn,isUndefined:()=>I,log:()=>Hn});function Cr(e){if(!vr(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(T(arguments[t]));return r.join(" ")}for(var t=1,n=arguments,u=n.length,a=String(e).replace(Su,function(c){if(c==="%%")return"%";if(t>=u)return c;switch(c){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(l){return"[Circular]"}default:return c}}),f=n[t];t<u;f=n[++t])gr(f)||!H(f)?a+=" "+f:a+=" "+T(f);return a}function xe(e,r){if(I(globalThis.process))return function(){return xe(e,r).apply(this,arguments)};if(sr.noDeprecation===!0)return e;var t=!1;function n(){if(!t){if(sr.throwDeprecation)throw new Error(r);sr.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return n}function Ln(e){if(I(we)&&(we=sr.env.NODE_DEBUG||""),e=e.toUpperCase(),!_r[e])if(new RegExp("\\b"+e+"\\b","i").test(we)){var r=0;_r[e]=function(){var t=Cr.apply(null,arguments);console.error("%s %d: %s",e,r,t)}}else _r[e]=function(){};return _r[e]}function T(e,r){var t={seen:[],stylize:wu};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Ur(r)?t.showHidden=r:r&&Ie(t,r),I(t.showHidden)&&(t.showHidden=!1),I(t.depth)&&(t.depth=2),I(t.colors)&&(t.colors=!1),I(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=bu),Br(t,e,t.depth)}function bu(e,r){var t=T.styles[r];return t?"\x1B["+T.colors[t][0]+"m"+e+"\x1B["+T.colors[t][1]+"m":e}function wu(e,r){return e}function Au(e){var r={};return e.forEach(function(t,n){r[t]=!0}),r}function Br(e,r,t){if(e.customInspect&&r&&yr(r.inspect)&&r.inspect!==T&&!(r.constructor&&r.constructor.prototype===r)){var n=r.inspect(t,e);return vr(n)||(n=Br(e,n,t)),n}var u=Ou(e,r);if(u)return u;var a=Object.keys(r),f=Au(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),cr(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ae(r);if(a.length===0){if(yr(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(pr(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Mr(r))return e.stylize(Date.prototype.toString.call(r),"date");if(cr(r))return Ae(r)}var l="",m=!1,v=["{","}"];if($e(r)&&(m=!0,v=["[","]"]),yr(r)){var h=r.name?": "+r.name:"";l=" [Function"+h+"]"}if(pr(r)&&(l=" "+RegExp.prototype.toString.call(r)),Mr(r)&&(l=" "+Date.prototype.toUTCString.call(r)),cr(r)&&(l=" "+Ae(r)),a.length===0&&(!m||r.length==0))return v[0]+l+v[1];if(t<0)return pr(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var g;return m?g=qu(e,r,t,f,a):g=a.map(function(A){return qe(e,r,t,f,A,m)}),e.seen.pop(),xu(g,l,v)}function Ou(e,r){if(I(r))return e.stylize("undefined","undefined");if(vr(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Ee(r))return e.stylize(""+r,"number");if(Ur(r))return e.stylize(""+r,"boolean");if(gr(r))return e.stylize("null","null")}function Ae(e){return"["+Error.prototype.toString.call(e)+"]"}function qu(e,r,t,n,u){for(var a=[],f=0,c=r.length;f<c;++f)Jn(r,String(f))?a.push(qe(e,r,t,n,String(f),!0)):a.push("");return u.forEach(function(l){l.match(/^\d+$/)||a.push(qe(e,r,t,n,l,!0))}),a}function qe(e,r,t,n,u,a){var f,c,l;if(l=Object.getOwnPropertyDescriptor(r,u)||{value:r[u]},l.get?l.set?c=e.stylize("[Getter/Setter]","special"):c=e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),Jn(n,u)||(f="["+u+"]"),c||(e.seen.indexOf(l.value)<0?(gr(t)?c=Br(e,l.value,null):c=Br(e,l.value,t-1),c.indexOf(`
2
+ `)>-1&&(a?c=c.split(`
3
+ `).map(function(m){return" "+m}).join(`
4
+ `).substr(2):c=`
5
+ `+c.split(`
6
+ `).map(function(m){return" "+m}).join(`
7
+ `))):c=e.stylize("[Circular]","special")),I(f)){if(a&&u.match(/^\d+$/))return c;f=JSON.stringify(""+u),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.substr(1,f.length-2),f=e.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=e.stylize(f,"string"))}return f+": "+c}function xu(e,r,t){var n=0,u=e.reduce(function(a,f){return n++,f.indexOf(`
8
+ `)>=0&&n++,a+f.replace(/\u001b\[\d\d?m/g,"").length+1},0);return u>60?t[0]+(r===""?"":r+`
9
+ `)+" "+e.join(`,
10
+ `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}function $e(e){return Array.isArray(e)}function Ur(e){return typeof e=="boolean"}function gr(e){return e===null}function Gn(e){return e==null}function Ee(e){return typeof e=="number"}function vr(e){return typeof e=="string"}function kn(e){return typeof e=="symbol"}function I(e){return e===void 0}function pr(e){return H(e)&&Pe(e)==="[object RegExp]"}function H(e){return typeof e=="object"&&e!==null}function Mr(e){return H(e)&&Pe(e)==="[object Date]"}function cr(e){return H(e)&&(Pe(e)==="[object Error]"||e instanceof Error)}function yr(e){return typeof e=="function"}function zn(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}function jn(e){return s.isBuffer(e)}function Pe(e){return Object.prototype.toString.call(e)}function Oe(e){return e<10?"0"+e.toString(10):e.toString(10)}function Eu(){var e=new Date,r=[Oe(e.getHours()),Oe(e.getMinutes()),Oe(e.getSeconds())].join(":");return[e.getDate(),$u[e.getMonth()],r].join(" ")}function Hn(){console.log("%s - %s",Eu(),Cr.apply(null,arguments))}function Ie(e,r){if(!r||!H(r))return e;for(var t=Object.keys(r),n=t.length;n--;)e[t[n]]=r[t[n]];return e}function Jn(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Su,_r,we,$u,Pu,Qn=ne(()=>{"use strict";o();i();Un();Wn();Su=/%[sdj%]/g;_r={};T.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};T.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};$u=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Pu={inherits:be,_extend:Ie,log:Hn,isBuffer:jn,isPrimitive:zn,isFunction:yr,isError:cr,isDate:Mr,isObject:H,isRegExp:pr,isUndefined:I,isSymbol:kn,isString:vr,isNumber:Ee,isNullOrUndefined:Gn,isNull:gr,isBoolean:Ur,isArray:$e,inspect:T,deprecate:xe,format:Cr,debuglog:Ln}});var Yn=y((Fp,Wr)=>{"use strict";o();i();var J=(Qn(),zi(Kn));if(J&&J.default){Wr.exports=J.default;for(let e in J)Wr.exports[e]=J[e]}else J&&(Wr.exports=J)});var Zn=y((Dp,Xn)=>{"use strict";o();i();Xn.exports=Yn().inspect});var Sr=y((Mp,mo)=>{"use strict";o();i();var Ue=typeof Map=="function"&&Map.prototype,Te=Object.getOwnPropertyDescriptor&&Ue?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gr=Ue&&Te&&typeof Te.get=="function"?Te.get:null,Vn=Ue&&Map.prototype.forEach,We=typeof Set=="function"&&Set.prototype,Fe=Object.getOwnPropertyDescriptor&&We?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,kr=We&&Fe&&typeof Fe.get=="function"?Fe.get:null,ro=We&&Set.prototype.forEach,Iu=typeof WeakMap=="function"&&WeakMap.prototype,dr=Iu?WeakMap.prototype.has:null,Tu=typeof WeakSet=="function"&&WeakSet.prototype,mr=Tu?WeakSet.prototype.has:null,Fu=typeof WeakRef=="function"&&WeakRef.prototype,eo=Fu?WeakRef.prototype.deref:null,Ru=Boolean.prototype.valueOf,Nu=Object.prototype.toString,Du=Function.prototype.toString,_u=String.prototype.match,Le=String.prototype.slice,U=String.prototype.replace,Bu=String.prototype.toUpperCase,to=String.prototype.toLowerCase,po=RegExp.prototype.test,no=Array.prototype.concat,F=Array.prototype.join,Mu=Array.prototype.slice,oo=Math.floor,De=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Re=Object.getOwnPropertySymbols,_e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,tr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===tr||!0)?Symbol.toStringTag:null,co=Object.prototype.propertyIsEnumerable,io=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ao(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||po.call(/e/,r))return r;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-oo(-e):oo(e);if(n!==e){var u=String(n),a=Le.call(r,u.length+1);return U.call(u,t,"$&_")+"."+U.call(U.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return U.call(r,t,"$&_")}var Be=Zn(),uo=Be.custom,fo=go(uo)?uo:null;mo.exports=function e(r,t,n,u){var a=t||{};if(C(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(C(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=C(a,"customInspect")?a.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(C(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(C(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=a.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return ho(r,a);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var l=String(r);return c?ao(r,l):l}if(typeof r=="bigint"){var m=String(r)+"n";return c?ao(r,m):m}var v=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=v&&v>0&&typeof r=="object")return Me(r)?"[Array]":"[Object]";var h=ef(a,n);if(typeof u=="undefined")u=[];else if(vo(u,r)>=0)return"[Circular]";function g(K,Ar,Li){if(Ar&&(u=Mu.call(u),u.push(Ar)),Li){var yt={depth:a.depth};return C(a,"quoteStyle")&&(yt.quoteStyle=a.quoteStyle),e(K,yt,n+1,u)}return e(K,a,n+1,u)}if(typeof r=="function"&&!lo(r)){var A=Hu(r),x=Lr(r,g);return"[Function"+(A?": "+A:" (anonymous)")+"]"+(x.length>0?" { "+F.call(x,", ")+" }":"")}if(go(r)){var S=tr?U.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):_e.call(r);return typeof r=="object"&&!tr?hr(S):S}if(Zu(r)){for(var q="<"+to.call(String(r.nodeName)),$=r.attributes||[],R=0;R<$.length;R++)q+=" "+$[R].name+"="+yo(Cu($[R].value),"double",a);return q+=">",r.childNodes&&r.childNodes.length&&(q+="..."),q+="</"+to.call(String(r.nodeName))+">",q}if(Me(r)){if(r.length===0)return"[]";var L=Lr(r,g);return h&&!rf(L)?"["+Ce(L,h)+"]":"[ "+F.call(L,", ")+" ]"}if(Wu(r)){var ir=Lr(r,g);return!("cause"in Error.prototype)&&"cause"in r&&!co.call(r,"cause")?"{ ["+String(r)+"] "+F.call(no.call("[cause]: "+g(r.cause),ir),", ")+" }":ir.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+F.call(ir,", ")+" }"}if(typeof r=="object"&&f){if(fo&&typeof r[fo]=="function"&&Be)return Be(r,{depth:v-n});if(f!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Ju(r)){var wr=[];return Vn&&Vn.call(r,function(K,Ar){wr.push(g(Ar,r,!0)+" => "+g(K,r))}),so("Map",Gr.call(r),wr,h)}if(Yu(r)){var st=[];return ro&&ro.call(r,function(K){st.push(g(K,r))}),so("Set",kr.call(r),st,h)}if(Ku(r))return Ne("WeakMap");if(Xu(r))return Ne("WeakSet");if(Qu(r))return Ne("WeakRef");if(Gu(r))return hr(g(Number(r)));if(zu(r))return hr(g(De.call(r)));if(ku(r))return hr(Ru.call(r));if(Lu(r))return hr(g(String(r)));if(typeof window!="undefined"&&r===window)return"{ [object Window] }";if(r===globalThis)return"{ [object globalThis] }";if(!Uu(r)&&!lo(r)){var re=Lr(r,g),pt=io?io(r)===Object.prototype:r instanceof Object||r.constructor===Object,ee=r instanceof Object?"":"null prototype",ct=!pt&&O&&Object(r)===r&&O in r?Le.call(W(r),8,-1):ee?"Object":"",Wi=pt||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",te=Wi+(ct||ee?"["+F.call(no.call([],ct||[],ee||[]),": ")+"] ":"");return re.length===0?te+"{}":h?te+"{"+Ce(re,h)+"}":te+"{ "+F.call(re,", ")+" }"}return String(r)};function yo(e,r,t){var n=(t.quoteStyle||r)==="double"?'"':"'";return n+e+n}function Cu(e){return U.call(String(e),/"/g,"&quot;")}function Me(e){return W(e)==="[object Array]"&&(!O||!(typeof e=="object"&&O in e))}function Uu(e){return W(e)==="[object Date]"&&(!O||!(typeof e=="object"&&O in e))}function lo(e){return W(e)==="[object RegExp]"&&(!O||!(typeof e=="object"&&O in e))}function Wu(e){return W(e)==="[object Error]"&&(!O||!(typeof e=="object"&&O in e))}function Lu(e){return W(e)==="[object String]"&&(!O||!(typeof e=="object"&&O in e))}function Gu(e){return W(e)==="[object Number]"&&(!O||!(typeof e=="object"&&O in e))}function ku(e){return W(e)==="[object Boolean]"&&(!O||!(typeof e=="object"&&O in e))}function go(e){if(tr)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!_e)return!1;try{return _e.call(e),!0}catch(r){}return!1}function zu(e){if(!e||typeof e!="object"||!De)return!1;try{return De.call(e),!0}catch(r){}return!1}var ju=Object.prototype.hasOwnProperty||function(e){return e in this};function C(e,r){return ju.call(e,r)}function W(e){return Nu.call(e)}function Hu(e){if(e.name)return e.name;var r=_u.call(Du.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function vo(e,r){if(e.indexOf)return e.indexOf(r);for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}function Ju(e){if(!Gr||!e||typeof e!="object")return!1;try{Gr.call(e);try{kr.call(e)}catch(r){return!0}return e instanceof Map}catch(r){}return!1}function Ku(e){if(!dr||!e||typeof e!="object")return!1;try{dr.call(e,dr);try{mr.call(e,mr)}catch(r){return!0}return e instanceof WeakMap}catch(r){}return!1}function Qu(e){if(!eo||!e||typeof e!="object")return!1;try{return eo.call(e),!0}catch(r){}return!1}function Yu(e){if(!kr||!e||typeof e!="object")return!1;try{kr.call(e);try{Gr.call(e)}catch(r){return!0}return e instanceof Set}catch(r){}return!1}function Xu(e){if(!mr||!e||typeof e!="object")return!1;try{mr.call(e,mr);try{dr.call(e,dr)}catch(r){return!0}return e instanceof WeakSet}catch(r){}return!1}function Zu(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function ho(e,r){if(e.length>r.maxStringLength){var t=e.length-r.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return ho(Le.call(e,0,r.maxStringLength),r)+n}var u=U.call(U.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Vu);return yo(u,"single",r)}function Vu(e){var r=e.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return t?"\\"+t:"\\x"+(r<16?"0":"")+Bu.call(r.toString(16))}function hr(e){return"Object("+e+")"}function Ne(e){return e+" { ? }"}function so(e,r,t,n){var u=n?Ce(t,n):F.call(t,", ");return e+" ("+r+") {"+u+"}"}function rf(e){for(var r=0;r<e.length;r++)if(vo(e[r],`
11
+ `)>=0)return!1;return!0}function ef(e,r){var t;if(e.indent===" ")t=" ";else if(typeof e.indent=="number"&&e.indent>0)t=F.call(Array(e.indent+1)," ");else return null;return{base:t,prev:F.call(Array(r+1),t)}}function Ce(e,r){if(e.length===0)return"";var t=`
12
+ `+r.prev+r.base;return t+F.call(e,","+t)+`
13
+ `+r.prev}function Lr(e,r){var t=Me(e),n=[];if(t){n.length=e.length;for(var u=0;u<e.length;u++)n[u]=C(e,u)?r(e[u],e):""}var a=typeof Re=="function"?Re(e):[],f;if(tr){f={};for(var c=0;c<a.length;c++)f["$"+a[c]]=a[c]}for(var l in e)C(e,l)&&(t&&String(Number(l))===l&&l<e.length||tr&&f["$"+l]instanceof Symbol||(po.call(/[^\w$]/,l)?n.push(r(l,e)+": "+r(e[l],e)):n.push(l+": "+r(e[l],e))));if(typeof Re=="function")for(var m=0;m<a.length;m++)co.call(e,a[m])&&n.push("["+r(a[m])+"]: "+r(e[a[m]],e));return n}});var zr=y((Wp,So)=>{"use strict";o();i();So.exports=function(r){return typeof r=="string"||typeof r=="symbol"}});var wo=y((kp,bo)=>{"use strict";o();i();var tf=w(),nf=Sr(),of=zr();bo.exports=function(r,t){if(!of(t))throw new tf("Assertion failed: IsPropertyKey(P) is not true, got "+nf(t));return r[t]}});var xo=y((Hp,qo)=>{"use strict";o();i();var Oo=Function.prototype.toString,nr=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ke,jr;if(typeof nr=="function"&&typeof Object.defineProperty=="function")try{ke=Object.defineProperty({},"length",{get:function(){throw jr}}),jr={},nr(function(){throw 42},null,ke)}catch(e){e!==jr&&(nr=null)}else nr=null;var af=/^\s*class\b/,ze=function(r){try{var t=Oo.call(r);return af.test(t)}catch(n){return!1}},Ge=function(r){try{return ze(r)?!1:(Oo.call(r),!0)}catch(t){return!1}},Hr=Object.prototype.toString,uf="[object Object]",ff="[object Function]",lf="[object GeneratorFunction]",sf="[object HTMLAllCollection]",pf="[object HTML document.all class]",cf="[object HTMLCollection]",yf=typeof Symbol=="function"&&!!Symbol.toStringTag,gf=!(0 in[,]),je=function(){return!1};typeof document=="object"&&(Ao=document.all,Hr.call(Ao)===Hr.call(document.all)&&(je=function(r){if((gf||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Hr.call(r);return(t===sf||t===pf||t===cf||t===uf)&&r("")==null}catch(n){}return!1}));var Ao;qo.exports=nr?function(r){if(je(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{nr(r,null,ke)}catch(t){if(t!==jr)return!1}return!ze(r)&&Ge(r)}:function(r){if(je(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(yf)return Ge(r);if(ze(r))return!1;var t=Hr.call(r);return t!==ff&&t!==lf&&!/^\[object HTML/.test(t)?!1:Ge(r)}});var He=y((Qp,$o)=>{"use strict";o();i();$o.exports=xo()});var To=y((Zp,Io)=>{"use strict";o();i();var Eo=w(),vf=wo(),hf=He(),df=zr(),Po=Sr();Io.exports=function(r,t){if(!df(t))throw new Eo("Assertion failed: IsPropertyKey(P) is not true");var n=vf(r,t);if(n!=null){if(!hf(n))throw new Eo(Po(t)+" is not a function: "+Po(n));return n}}});var Ro=y((ec,Fo)=>{"use strict";o();i();var mf=ie();Fo.exports=function(){return mf()&&!!Symbol.toStringTag}});var Ye=y((oc,Bo)=>{"use strict";o();i();var Je=P(),No=Ro()(),Do,_o,Ke,Qe;No&&(Do=Je("Object.prototype.hasOwnProperty"),_o=Je("RegExp.prototype.exec"),Ke={},Jr=function(){throw Ke},Qe={toString:Jr,valueOf:Jr},typeof Symbol.toPrimitive=="symbol"&&(Qe[Symbol.toPrimitive]=Jr));var Jr,Sf=Je("Object.prototype.toString"),bf=Object.getOwnPropertyDescriptor,wf="[object RegExp]";Bo.exports=No?function(r){if(!r||typeof r!="object")return!1;var t=bf(r,"lastIndex"),n=t&&Do(t,"value");if(!n)return!1;try{_o(r,Qe)}catch(u){return u===Ke}}:function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:Sf(r)===wf}});var Xe=y((uc,Mo)=>{"use strict";o();i();var Af=P(),Of=Ye(),qf=Af("RegExp.prototype.exec"),xf=w();Mo.exports=function(r){if(!Of(r))throw new xf("`regex` must be a RegExp");return function(n){return qf(r,n)!==null}}});var Uo=y((sc,Co)=>{"use strict";o();i();Co.exports=function(r,t){for(var n=0;n<r.length;n+=1)if(!t(r[n],n,r))return!1;return!0}});var Lo=y((yc,Wo)=>{"use strict";o();i();Wo.exports=function(r){if(r===null)return"Null";if(typeof r=="undefined")return"Undefined";if(typeof r=="function"||typeof r=="object")return"Object";if(typeof r=="number")return"Number";if(typeof r=="boolean")return"Boolean";if(typeof r=="string")return"String"}});var Ze=y((hc,Go)=>{"use strict";o();i();var $f=Lo();Go.exports=function(r){return typeof r=="symbol"?"Symbol":typeof r=="bigint"?"BigInt":$f(r)}});var jo=y((Sc,zo)=>{"use strict";o();i();var ko=w(),Ef=Sr(),Pf=zr(),If=Ze();zo.exports=function(r,t){if(If(r)!=="Object")throw new ko("Assertion failed: Type(O) is not Object");if(!Pf(t))throw new ko("Assertion failed: IsPropertyKey(P) is not true, got "+Ef(t));return r[t]}});var Jo=y((Ac,Ho)=>{"use strict";o();i();var Tf=E();Ho.exports=Tf("%Math.min%")});var Ve=y((xc,Ko)=>{"use strict";o();i();Ko.exports=Number.isNaN||function(r){return r!==r}});var Yo=y((Pc,Qo)=>{"use strict";o();i();var Ff=Ve();Qo.exports=function(e){return(typeof e=="number"||typeof e=="bigint")&&!Ff(e)&&e!==1/0&&e!==-1/0}});var Kr=y((Fc,Zo)=>{"use strict";o();i();var Xo=E(),Rf=Xo("%Math.abs%"),Nf=Xo("%Math.floor%"),Df=Ve(),_f=Yo();Zo.exports=function(r){if(typeof r!="number"||Df(r)||!_f(r))return!1;var t=Rf(r);return Nf(t)===t}});var et=y((Dc,Vo)=>{"use strict";o();i();var Bf=P(),rt=w(),Mf=Kr(),Cf=Bf("String.prototype.slice");Vo.exports=function(r,t,n){if(typeof r!="string")throw new rt("Assertion failed: `string` must be a String");if(typeof t!="string")throw new rt("Assertion failed: `searchValue` must be a String");if(!Mf(n)||n<0)throw new rt("Assertion failed: `fromIndex` must be a non-negative integer");var u=r.length;if(t===""&&n<=u)return n;for(var a=t.length,f=n;f<=u-a;f+=1){var c=Cf(r,f,f+a);if(c===t)return f}return-1}});var Qr=y((Mc,ri)=>{"use strict";o();i();var Uf=w();ri.exports=function(r){if(r==null)throw new Uf(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r}});var Yr=y((Wc,ei)=>{"use strict";o();i();var Wf=E(),Lf=Wf("%String%"),Gf=w();ei.exports=function(r){if(typeof r=="symbol")throw new Gf("Cannot convert a Symbol value to a string");return Lf(r)}});var tt=y((kc,oi)=>{"use strict";o();i();var kf=Qr(),zf=Yr(),jf=P(),ti=jf("String.prototype.replace"),ni=/^\s$/.test("\u180E"),Hf=ni?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Jf=ni?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;oi.exports=function(){var r=zf(kf(this));return ti(ti(r,Hf,""),Jf,"")}});var nt=y((Hc,ai)=>{"use strict";o();i();var Kf=tt(),ii="\u200B",or="\u180E";ai.exports=function(){return String.prototype.trim&&ii.trim()===ii&&or.trim()===or&&("_"+or).trim()==="_"+or&&(or+"_").trim()===or+"_"?String.prototype.trim:Kf}});var fi=y((Qc,ui)=>{"use strict";o();i();var Qf=lr(),Yf=nt();ui.exports=function(){var r=Yf();return Qf(String.prototype,{trim:r},{trim:function(){return String.prototype.trim!==r}}),r}});var ci=y((Zc,pi)=>{"use strict";o();i();var Xf=Fr(),Zf=lr(),Vf=Qr(),rl=tt(),li=nt(),el=fi(),tl=Xf(li()),si=function(r){return Vf(r),tl(r)};Zf(si,{getPolyfill:li,implementation:rl,shim:el});pi.exports=si});var hi=y((ey,vi)=>{"use strict";o();i();var it=E(),ot=it("%Number%"),nl=it("%RegExp%"),ol=w(),yi=it("%parseInt%"),il=P(),Xr=Xe(),gi=il("String.prototype.slice"),al=Xr(/^0b[01]+$/i),ul=Xr(/^0o[0-7]+$/i),fl=Xr(/^[-+]0x[0-9a-f]+$/i),ll=["\x85","\u200B","\uFFFE"].join(""),sl=new nl("["+ll+"]","g"),pl=Xr(sl),cl=ci();vi.exports=function e(r){if(typeof r!="string")throw new ol("Assertion failed: `argument` is not a String");if(al(r))return ot(yi(gi(r,2),2));if(ul(r))return ot(yi(gi(r,2),8));if(pl(r)||fl(r))return NaN;var t=cl(r);return t!==r?e(t):ot(r)}});var Si=y((oy,mi)=>{"use strict";o();i();var yl=w(),di=Kr(),gl=P(),vl=gl("String.prototype.slice");mi.exports=function(r,t,n){if(typeof r!="string"||!di(t)||arguments.length>2&&!di(n))throw new yl("`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers");return vl(r,t,arguments.length>2?n:r.length)}});var wi=y((uy,bi)=>{"use strict";o();i();bi.exports=function(r){return typeof r=="string"||typeof r=="undefined"}});var Oi=y((sy,Ai)=>{"use strict";o();i();var hl=P()("String.prototype.slice");Ai.exports=function(r,t){return r===t?!0:r.length>t.length?!1:hl(t,0,r.length)===r}});var Pi=y((yy,Ei)=>{"use strict";o();i();var D=w(),$i=Xe(),dl=Uo(),at=Sr(),ml=jo(),Sl=me(),bl=Jo(),wl=et(),qi=hi(),_=Si(),Al=Yr(),xi=Ze(),Ol=Kr(),ql=wi(),br=Oi(),xl=$i(/^\$[0-9]/),$l=$i(/^\$[0-9][0-9]/);Ei.exports=function(r,t,n,u,a,f){if(typeof r!="string")throw new D("Assertion failed: `matched` must be a String");if(typeof t!="string")throw new D("Assertion failed: `str` must be a String");if(!Ol(n)||n<0)throw new D("Assertion failed: `position` must be a nonnegative integer, got "+at(n));if(!Sl(u)||!dl(u,ql))throw new D("Assertion failed: `captures` must be a possibly-empty List of Strings or `undefined`, got "+at(u));if(typeof a!="undefined"&&xi(a)!=="Object")throw new D("Assertion failed: `namedCaptures` must be `undefined` or an Object");if(typeof f!="string")throw new D("Assertion failed: `replacementTemplate` must be a String");var c=t.length;if(n>c)throw new D("Assertion failed: position > stringLength, got "+at(n));for(var l=f,m="";l!=="";){var v,h,g;if(br("$$",l))v="$$",h="$";else if(br("$`",l))v="$`",h=_(t,0,n);else if(br("$&",l))v="$&",h=r;else if(br("$'",l)){v="$'";var A=r.length,x=n+A;h=_(t,bl(x,c))}else if(xl(l)){var S=$l(l)?2:1,q=_(l,1,1+S),$=qi(q);if($<0||$>99)throw new D("Assertion failed: `index` must be >= 0 and <= 99");var R=u.length;$>R&&S===2&&(S=1,q=_(q,0,1),$=qi(q)),v=_(l,0,1+S),1<=$&&$<=R?(g=u[$-1],typeof g=="undefined"?h="":h=g):h=v}else if(br("$<",l)){var L=wl(l,">",0);if(L===-1||typeof a=="undefined")v="$<",h=v;else{v=_(l,0,L+1);var ir=_(l,2,L);if(xi(a)!=="Object")throw new D("Assertion failed: Type(namedCaptures) is not Object");g=ml(a,ir),typeof g=="undefined"?h="":h=Al(g)}}else v=_(l,0,1),h=v;var wr=v.length;l=_(l,wr),m+=h}return m}});var ft=y((hy,Ri)=>{"use strict";o();i();var Ii=Nn(),El=To(),Pl=Pi(),Il=He(),Tl=Qr(),Zr=Yr(),Ti=et(),Fl=E(),Vr=P(),Rl=ae()(),Nl=Ye(),Dl=Fl("%Math.max%"),Fi=w(),_l=Vr("Array.prototype.push"),ut=Vr("String.prototype.slice"),Bl=Vr("String.prototype.indexOf"),Ml=Vr("String.prototype.replace");Ri.exports=function(r,t){var n=Tl(this),u=Nl(r);if(u&&Bl(ut(r,r.source.length+2),"g")===-1)throw new Fi("use .replace for a non-global regex. NOTE: this may be allowed in the future.");if(Rl&&Symbol.replace){if(r!=null){var a=El(r,Symbol.replace);if(typeof a!="undefined")return Ii(a,r,[n,t])}}else if(u)return Ml(n,r,t);var f=Zr(n),c=Zr(r),l=Il(t);l||(t=Zr(t));for(var m=c.length,v=Dl(1,m),h=[],g=Ti(f,c,0);g!==-1;)_l(h,g),g=Ti(f,c,g+v);for(var A=0,x="",S=0;S<h.length;S+=1){var q;if(l)q=Zr(Ii(t,void 0,[c,h[S],f]));else{if(typeof t!="string")throw new Fi("Assertion failed: `replaceValue` should be a string at this point");var $=[];q=Pl(c,f,h[S],$,void 0,t)}var R=ut(f,A,h[S]);x+=R+q,A=h[S]+m}return A<f.length&&(x+=ut(f,A)),x}});var lt=y((Sy,Ni)=>{"use strict";o();i();var Cl=ft();Ni.exports=function(){return String.prototype.replaceAll||Cl}});var _i=y((Ay,Di)=>{"use strict";o();i();var Ul=lr(),Wl=lt();Di.exports=function(){var r=Wl();return Ul(String.prototype,{replaceAll:r},{replaceAll:function(){return String.prototype.replaceAll!==r}}),r}});var Ui=y((xy,Ci)=>{"use strict";o();i();var Ll=Fr(),Gl=lr(),Bi=ft(),kl=lt(),zl=_i(),Mi=Ll(Bi);Gl(Mi,{getPolyfill:kl,implementation:Bi,shim:zl});Ci.exports=Mi});o();i();var Py=ki(Ui(),1);export{ji as DynamicSnippetsGenerator};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/go-dynamic-snippets",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",
@@ -23,8 +23,5 @@
23
23
  "files": [
24
24
  "cjs",
25
25
  "esm"
26
- ],
27
- "dependencies": {
28
- "object-inspect": "1.13.1"
29
- }
26
+ ]
30
27
  }