apiuikit 1.5.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -8
- package/dist/{CodeSamples-DmiNojAj.js → CodeSamples-C5u3VGKi.js} +895 -913
- package/dist/CodeSamples-CRObUKHj.cjs +50 -0
- package/dist/{LogoExtension-DZ8VtlAH.js → LogoExtension-BbOZyyI7.js} +1 -1
- package/dist/{LogoExtension-6P3B9CAh.cjs → LogoExtension-Bri3O9Zb.cjs} +1 -1
- package/dist/apiuikit.cjs.js +1 -1
- package/dist/apiuikit.css +1 -1
- package/dist/apiuikit.es.js +18 -18
- package/dist/{index-DggFmM--.js → index-C65x4n-2.js} +4522 -4537
- package/dist/{index-BDg1AYkE.js → index-Cm3BxV47.js} +630 -620
- package/dist/{index-Mbbr0TR2.js → index-DKGx9erP.js} +1 -1
- package/dist/{index-B_GqMwc6.cjs → index-DQqbljF-.cjs} +39 -39
- package/dist/index-Qg1sJSxE.cjs +139 -0
- package/dist/{index-BbfpKZY1.cjs → index-our7aldY.cjs} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{protoToJsonSchema-CuaV2JD7.js → protoToJsonSchema-CUW6qxgm.js} +1 -1
- package/dist/{protoToJsonSchema-BBQdrLOM.cjs → protoToJsonSchema-ihLMaBYf.cjs} +1 -1
- package/dist/{protobufSchemaParser-bHp3BKik.js → protobufSchemaParser-5O-3561f.js} +2 -2
- package/dist/{protobufSchemaParser-DBjKEuyJ.cjs → protobufSchemaParser-Br30FYfe.cjs} +1 -1
- package/dist/public/sections.d.ts +7 -7
- package/package.json +1 -1
- package/dist/CodeSamples-D5_WV4f3.cjs +0 -50
- package/dist/index-cEBLn6v9.cjs +0 -139
package/dist/index-cEBLn6v9.cjs
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";var fl=Object.defineProperty;var ll=(t,e,r)=>e in t?fl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var rt=(t,e,r)=>ll(t,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const kn=require("./index-B_GqMwc6.cjs");function In(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function bt(t,e,r=[]){const n={};for(const[s,i]of Object.entries(t)){const o=[...r,s];if(Array.isArray(i)){n[s]=i.map((a,c)=>typeof a=="object"&&!Array.isArray(a)&&a!==null?bt(a,e,[...o,c.toString()]):a);continue}if(typeof i=="object"&&i!==null){n[s]=bt(i,e,o);continue}n[s]=i}return e(n,r)}const nt="application/json";function _a(t){const e=t["x-example"],r=t["x-examples"];return delete t["x-example"],delete t["x-examples"],{xExample:e,xExamples:r}}function vt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length>0}function ul(t){return vt(t)&&Object.values(t).every(e=>typeof e=="object"&&e!==null&&!Array.isArray(e))}function dl(t){if(typeof t!="object"||t===null)return!0;const e=t,r=["enum","const","not","format","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","maxProperties","minProperties","required"];return!(e.allOf||e.oneOf||e.anyOf||e.items||e.$ref||"additionalProperties"in e||r.some(n=>n in e)||typeof e.properties=="object"&&e.properties!==null&&Object.keys(e.properties).length>0)}function wo(t){const e=Object.keys(t);if(e.some(n=>{const s=t[n];return(s==null?void 0:s.example)!==void 0||(s==null?void 0:s.examples)!==void 0}))for(const n of e){const s=t[n];if(!s)continue;const i=s.example!==void 0||s.examples!==void 0;s.schema!==void 0&&!i&&Object.keys(s).length===1&&dl(s.schema)&&delete t[n]}}const pl=new Set(["summary","description","value","externalValue"]);function Pa(t){if(typeof t!="object"||t===null)return!1;const e=t,r="value"in e||"externalValue"in e,n=Object.keys(e).every(s=>pl.has(s));return r&&n}function Vt(t){return Pa(t)?t:{value:t}}const ml=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function ws(t){return ml.test(t)}function hl(t){return Object.entries(t).reduce((e,[r,n])=>(e[r]={value:n},e),{})}const yl=t=>{switch(t){case"application":return"clientCredentials";case"accessCode":return"authorizationCode";case"implicit":return"implicit";case"password":return"password";default:return t}};function Ea(t){var r,n,s;let e=t;if(e!==null&&typeof e=="object"&&typeof e.swagger=="string"&&((r=e.swagger)!=null&&r.startsWith("2.0")))e.openapi="3.0.4",delete e.swagger;else return e;if(e.host){const i=Array.isArray(e.schemes)&&((n=e.schemes)!=null&&n.length)?e.schemes:["http"];e.servers=i.map(o=>({url:`${o}://${e.host}${e.basePath??""}`})),delete e.basePath,delete e.schemes,delete e.host}else e.basePath&&(e.servers=[{url:e.basePath}],delete e.basePath);if(e.definitions&&(e.components=Object.assign({},e.components,{schemas:e.definitions}),delete e.definitions,e=bt(e,i=>(typeof i.$ref=="string"&&i.$ref.startsWith("#/definitions/")&&(i.$ref=i.$ref.replace(/^#\/definitions\//,"#/components/schemas/")),i))),e=bt(e,i=>(i.type==="file"&&(i.type="string",i.format="binary"),i)),Object.hasOwn(e,"parameters")){e=bt(e,c=>{if(typeof c.$ref=="string"&&c.$ref.startsWith("#/parameters/")){const f=c.$ref.split("/")[2];if(!f)return c;const u=e.parameters&&typeof e.parameters=="object"&&f in e.parameters?e.parameters[f]:void 0;u&&typeof u=="object"&&"in"in u&&(u.in==="body"||u.in==="formData")?c.$ref=c.$ref.replace(/^#\/parameters\//,"#/components/requestBodies/"):c.$ref=c.$ref.replace(/^#\/parameters\//,"#/components/parameters/")}return c}),e.components??(e.components={});const i={},o={},a=e.parameters&&typeof e.parameters=="object"?e.parameters:{};for(const[c,f]of Object.entries(a))if(f&&typeof f=="object"){if("$ref"in f){const u=_s(f);i[c]=u}else if("in"in f)if(f.in==="body")o[c]=ja(f,e.consumes??[nt]);else if(f.in==="formData")o[c]=Oa([f],e.consumes);else{const u=_s(f);i[c]=u}}Object.keys(i).length>0&&(e.components.parameters=i),Object.keys(o).length>0&&(e.components.requestBodies=o),delete e.parameters}if(Object.hasOwn(e,"responses")&&typeof e.responses=="object"&&e.responses!==null){e=bt(e,a=>(typeof a.$ref=="string"&&a.$ref.startsWith("#/responses/")&&(a.$ref=a.$ref.replace(/^#\/responses\//,"#/components/responses/")),a)),e.components??(e.components={});const i={},o=e.responses;for(const[a,c]of Object.entries(o))if(c&&typeof c=="object")if("$ref"in c)i[a]=c;else{const f=c,u=e.produces??[nt];if(f.schema){typeof f.content!="object"&&(f.content={});for(const l of u)f.content[l]={schema:f.schema};delete f.schema}if(f.examples&&typeof f.examples=="object"){typeof f.content!="object"&&(f.content={});const l=u[0]??nt;for(const[d,p]of Object.entries(f.examples))if(ws(d))typeof f.content[d]!="object"&&(f.content[d]={}),f.content[d].example=p;else{typeof f.content[l]!="object"&&(f.content[l]={});const m=f.content[l];typeof m.examples!="object"&&(m.examples={}),m.examples[d]=Vt(p)}delete f.examples}f.content&&typeof f.content=="object"&&wo(f.content),f.headers&&typeof f.headers=="object"&&(f.headers=Object.entries(f.headers).reduce((l,[d,p])=>p&&typeof p=="object"?{[d]:_o(p),...l}:l,{})),i[a]=f}Object.keys(i).length>0&&(e.components.responses=i),delete e.responses}if(typeof e.paths=="object"){for(const i in e.paths)if(Object.hasOwn(e.paths,i)){const o=e.paths&&typeof e.paths=="object"&&i in e.paths?e.paths[i]:void 0;if(!o||typeof o!="object")continue;let a;for(const c in o)if(c==="parameters"&&Object.hasOwn(o,c)){const f=Eo(o.parameters,e.consumes??[nt]);o.parameters=f.parameters,a=f.requestBody}else if(Object.hasOwn(o,c)){const f=o[c];if(a&&(f.requestBody=a),f.parameters){const u=Eo(f.parameters,f.consumes??e.consumes??[nt]);f.parameters=u.parameters,u.requestBody&&(f.requestBody=u.requestBody)}if(delete f.consumes,f.responses){for(const u in f.responses)if(Object.hasOwn(f.responses,u)){const l=f.responses[u];if(l.headers&&typeof l.headers=="object"&&(l.headers=Object.entries(l.headers).reduce((d,[p,m])=>m&&typeof m=="object"?{[p]:_o(m),...d}:d,{})),l.schema){const d=e.produces??f.produces??[nt];typeof l.content!="object"&&(l.content={});for(const p of d)l.content[p]={schema:l.schema};delete l.schema}if(l.examples&&typeof l.examples=="object"){typeof l.content!="object"&&(l.content={});const p=(e.produces??f.produces??[nt])[0]??nt;for(const[m,y]of Object.entries(l.examples))if(ws(m))typeof l.content[m]!="object"&&(l.content[m]={}),l.content[m].example=y;else{typeof l.content[p]!="object"&&(l.content[p]={});const h=l.content[p];typeof h.examples!="object"&&(h.examples={}),h.examples[m]=Vt(y)}delete l.examples}l.content&&typeof l.content=="object"&&wo(l.content)}}delete f.produces,((s=f.parameters)==null?void 0:s.length)===0&&delete f.parameters}}}if(e.securityDefinitions){(typeof e.components!="object"||e.components===null)&&(e.components={}),e.components&&typeof e.components=="object"&&Object.assign(e.components,{securitySchemes:{}});for(const[i,o]of Object.entries(e.securityDefinitions))if(typeof o=="object")if("type"in o&&o.type==="oauth2"){const{flow:a,authorizationUrl:c,tokenUrl:f,scopes:u}=o;e.components&&typeof e.components=="object"&&"securitySchemes"in e.components&&e.components.securitySchemes&&Object.assign(e.components.securitySchemes,{[i]:{type:"oauth2",flows:{[yl(a||"implicit")]:Object.assign({},c&&{authorizationUrl:c},f&&{tokenUrl:f},u&&{scopes:u})}}})}else"type"in o&&o.type==="basic"?e.components&&typeof e.components=="object"&&"securitySchemes"in e.components&&e.components.securitySchemes&&Object.assign(e.components.securitySchemes,{[i]:{type:"http",scheme:"basic"}}):e.components&&typeof e.components=="object"&&"securitySchemes"in e.components&&e.components.securitySchemes&&Object.assign(e.components.securitySchemes,{[i]:o});delete e.securityDefinitions}return delete e.consumes,delete e.produces,e}function Sa(t){return["type","format","default","items","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf"].reduce((r,n)=>(Object.hasOwn(t,n)&&(r[n]=t[n],delete t[n]),r),{})}function gl(t){if(t==="formData")throw new Error("Encountered a formData parameter which should have been filtered out by the caller");if(t==="body")throw new Error("Encountered a body parameter which should have been filtered out by the caller");return t}function _s(t){if(Object.hasOwn(t,"$ref")&&typeof t.$ref=="string")return{$ref:t.$ref};const e=bl(t),r=Sa(t),{xExample:n,xExamples:s}=_a(t);if(vt(n)?t.examples=hl(n):vt(s)&&(t.examples=Object.entries(s).reduce((i,[o,a])=>(i[o]=Vt(a),i),{})),delete t.collectionFormat,delete t.default,!t.in)throw new Error('Parameter object must have an "in" property');return{schema:r,...e,...t,in:gl(t.in)}}function _o(t){if(Object.hasOwn(t,"$ref")&&typeof t.$ref=="string")return{$ref:t.$ref};const e=Sa(t);return{...t,schema:e}}const $l={ssv:{style:"spaceDelimited",explode:!1},pipes:{style:"pipeDelimited",explode:!1},multi:{style:"form",explode:!0},csv:{style:"form",explode:!1},tsv:{}},Po={ssv:{},pipes:{},multi:{},csv:{style:"simple",explode:!1},tsv:{}},is={header:Po,query:$l,path:Po};function bl(t){if(t.type!=="array"||!(t.in==="query"||t.in==="path"||t.in==="header"))return{};const e=t.collectionFormat??"csv";return t.in in is&&e in is[t.in]?is[t.in][e]:{}}function ja(t,e){const{xExample:r,xExamples:n}=_a(t);delete t.name,delete t.in;const{schema:s,...i}=t,o={content:{},...i};if(o.content)for(const a of e){if(o.content[a]={schema:s},vt(n)&&a in n){const c=n[a];vt(c)&&Object.values(c).every(u=>Pa(u))?o.content[a].examples=c:ul(c)?o.content[a].examples=Object.entries(c).reduce((u,[l,d])=>(u[l]=Vt(d),u),{}):o.content[a].examples={default:Vt(c)}}else vt(n)&&!Object.keys(n).some(ws)&&(o.content[a].examples=Object.entries(n).reduce((c,[f,u])=>(c[f]=Vt(u),c),{}));!o.content[a].examples&&vt(r)&&a in r&&(o.content[a].example=r[a])}return o}function Oa(t,e=["multipart/form-data"]){var i;const r={content:{}},n=e.filter(o=>o==="multipart/form-data"||o==="application/x-www-form-urlencoded"),s=n.length>0?n:["multipart/form-data"];if(r.content)for(const o of s){r.content[o]={schema:{type:"object",properties:{},required:[]}};const a=(i=r.content)==null?void 0:i[o];if(a!=null&&a.schema&&typeof a.schema=="object"&&"properties"in a.schema)for(const c of t)c.name&&a.schema.properties&&(a.schema.properties[c.name]={type:c.type,description:c.description,...c.format?{format:c.format}:{}},c.required&&Array.isArray(a.schema.required)&&a.schema.required.push(c.name))}return r}function Eo(t,e){const r={parameters:t.filter(i=>!(i.in==="body"||i.in==="formData")).map(i=>_s(i))},n=structuredClone(t.find(i=>i.in==="body")??{});n&&Object.keys(n).length&&(r.requestBody=ja(n,e));const s=t.filter(i=>i.in==="formData");if(s.length>0){const i=Oa(s,e);typeof r.requestBody!="object"?r.requestBody=i:r.requestBody={...r.requestBody,content:{...r.requestBody.content,...i.content}},typeof r.requestBody!="object"&&(r.requestBody={content:{}})}return r}const vl=new Set(["properties","items","allOf","anyOf","oneOf","not","additionalProperties","schema"]);function wl(t){return t?!!(t.some(e=>vl.has(e))||t.some(e=>e.endsWith("Schema"))||t.length>=2&&t[0]==="components"&&t[1]==="schemas"):!1}function ka(t){let e=t;return e===null||typeof e.openapi!="string"||!e.openapi.startsWith("3.0")||(e.openapi="3.1.1",e=bt(e,_l)),e}const _l=(t,e)=>{t.type!==void 0&&t.nullable===!0&&(t.type=[t.type,"null"],delete t.nullable),t.exclusiveMinimum===!0?(t.exclusiveMinimum=t.minimum,delete t.minimum):t.exclusiveMinimum===!1&&delete t.exclusiveMinimum,t.exclusiveMaximum===!0?(t.exclusiveMaximum=t.maximum,delete t.maximum):t.exclusiveMaximum===!1&&delete t.exclusiveMaximum;const r=e==null?void 0:e.some((i,o)=>i==="examples"&&o>0?e[o-1]!=="properties":!1);if(t.example!==void 0&&!r&&(wl(e)?t.examples=[t.example]:t.examples={default:{value:t.example}},delete t.example),t.type==="object"&&t.properties!==void 0){const i=e==null?void 0:e.slice(0,-1);if((i==null?void 0:i.some((a,c)=>a==="content"&&(e==null?void 0:e[c+1])==="multipart/form-data"))&&t.properties!==null)for(const a of Object.values(t.properties))typeof a=="object"&&a!==null&&"type"in a&&"format"in a&&a.type==="string"&&a.format==="binary"&&(a.contentMediaType="application/octet-stream",delete a.format)}if(e!=null&&e.includes("content")&&(e!=null&&e.includes("application/octet-stream")))return{};const{format:n,...s}=t;if(t.type==="string"){if(t.format==="binary")return{...s,type:"string",contentMediaType:"application/octet-stream"};if(t.format==="base64")return{...s,type:"string",contentEncoding:"base64"};if(t.format==="byte"){const i=e==null?void 0:e.slice(0,-1),o=i==null?void 0:i.find((a,c)=>(e==null?void 0:e[c-1])==="content");return{...s,type:"string",contentEncoding:"base64",contentMediaType:o}}}return t["x-webhooks"]!==void 0&&(t.webhooks=t["x-webhooks"],delete t["x-webhooks"]),t},Wt=t=>{if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},Pl={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{oneOf:[{$ref:"#/definitions/pathItem"},{$ref:"#/definitions/jsonReference"}]}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}},El={id:"https://spec.openapis.org/oas/3.0/schema/2021-09-28",$schema:"http://json-schema.org/draft-04/schema#",description:"The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItemOrReference"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},PathItemOrReference:{oneOf:[{$ref:"#/definitions/PathItem"},{$ref:"#/definitions/Reference"}]},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}],discriminator:{propertyName:"type"}},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl","scopes"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl","scopes"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}},Sl={$id:"https://spec.openapis.org/oas/3.1/schema/2022-10-07",$schema:"https://json-schema.org/draft/2020-12/schema",description:"The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{type:"string",format:"uri-reference",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"},default:[{url:"/"}]},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{$comment:"https://spec.openapis.org/oas/v3.1.0#info-object",type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{$comment:"https://spec.openapis.org/oas/v3.1.0#contact-object",type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{$comment:"https://spec.openapis.org/oas/v3.1.0#license-object",type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{type:"string",format:"uri-reference"}},required:["name"],dependentSchemas:{identifier:{not:{required:["url"]}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{$comment:"https://spec.openapis.org/oas/v3.1.0#server-object",type:"object",properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{$comment:"https://spec.openapis.org/oas/v3.1.0#server-variable-object",type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},description:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{$comment:"https://spec.openapis.org/oas/v3.1.0#components-object",type:"object",properties:{schemas:{type:"object",additionalProperties:{$ref:"#/$defs/schema"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{$comment:"https://spec.openapis.org/oas/v3.1.0#paths-object",type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{$comment:"https://spec.openapis.org/oas/v3.1.0#path-item-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},get:{$ref:"#/$defs/operation"},put:{$ref:"#/$defs/operation"},post:{$ref:"#/$defs/operation"},delete:{$ref:"#/$defs/operation"},options:{$ref:"#/$defs/operation"},head:{$ref:"#/$defs/operation"},patch:{$ref:"#/$defs/operation"},trace:{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{$comment:"https://spec.openapis.org/oas/v3.1.0#operation-object",type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{$comment:"https://spec.openapis.org/oas/v3.1.0#external-documentation-object",type:"object",properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{$comment:"https://spec.openapis.org/oas/v3.1.0#parameter-object",type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$ref:"#/$defs/schema"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},required:["name","in"],oneOf:[{required:["schema"]},{required:["content"]}],if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{allowEmptyValue:{default:!1,type:"boolean"}}},dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{name:{pattern:"[^/#?]+$"},style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",const:"simple"}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},allowReserved:{default:!1,type:"boolean"}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",const:"form"}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{$comment:"https://spec.openapis.org/oas/v3.1.0#request-body-object",type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{$comment:"https://spec.openapis.org/oas/v3.1.0#fixed-fields-10",type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{$comment:"https://spec.openapis.org/oas/v3.1.0#media-type-object",type:"object",properties:{schema:{$ref:"#/$defs/schema"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{$comment:"https://spec.openapis.org/oas/v3.1.0#encoding-object",type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{$comment:"https://spec.openapis.org/oas/v3.1.0#responses-object",type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":{$ref:"#/$defs/response-or-reference"}},minProperties:1,$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{$comment:"https://spec.openapis.org/oas/v3.1.0#response-object",type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{$comment:"https://spec.openapis.org/oas/v3.1.0#callback-object",type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{$comment:"https://spec.openapis.org/oas/v3.1.0#example-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{type:"string",format:"uri-reference"}},not:{required:["value","externalValue"]},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{$comment:"https://spec.openapis.org/oas/v3.1.0#link-object",type:"object",properties:{operationRef:{type:"string",format:"uri-reference"},operationId:{type:"string"},parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{$comment:"https://spec.openapis.org/oas/v3.1.0#header-object",type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$ref:"#/$defs/schema"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{default:"simple",const:"simple"},explode:{default:!1,type:"boolean"}},$ref:"#/$defs/examples"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{$comment:"https://spec.openapis.org/oas/v3.1.0#tag-object",type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{$comment:"https://spec.openapis.org/oas/v3.1.0#reference-object",type:"object",properties:{$ref:{type:"string",format:"uri-reference"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$comment:"https://spec.openapis.org/oas/v3.1.0#schema-object",$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-scheme-object",type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}}}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{type:"string",format:"uri-reference"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-requirement-object",type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{$comment:"https://spec.openapis.org/oas/v3.1.0#specification-extensions",patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}},jl={$id:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",$schema:"https://json-schema.org/draft/2020-12/schema",description:"The description of OpenAPI v3.2.x Documents without Schema Object validation",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.2\\.\\d+(-.+)?$"},$self:{type:"string",format:"uri-reference",$comment:"MUST NOT contain a fragment",pattern:"^[^#]*$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{type:"string",format:"uri-reference",default:"https://spec.openapis.org/oas/3.2/dialect/2025-09-17"},servers:{type:"array",items:{$ref:"#/$defs/server"},default:[{url:"/"}]},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{$comment:"https://spec.openapis.org/oas/v3.2#info-object",type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{$comment:"https://spec.openapis.org/oas/v3.2#contact-object",type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{$comment:"https://spec.openapis.org/oas/v3.2#license-object",type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{type:"string",format:"uri-reference"}},required:["name"],dependentSchemas:{identifier:{not:{required:["url"]}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{$comment:"https://spec.openapis.org/oas/v3.2#server-object",type:"object",properties:{url:{type:"string"},description:{type:"string"},name:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{$comment:"https://spec.openapis.org/oas/v3.2#server-variable-object",type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},description:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{$comment:"https://spec.openapis.org/oas/v3.2#components-object",type:"object",properties:{schemas:{type:"object",additionalProperties:{$ref:"#/$defs/schema"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},mediaTypes:{type:"object",additionalProperties:{$ref:"#/$defs/media-type-or-reference"}}},patternProperties:{"^(?:schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems|mediaTypes)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{$comment:"https://spec.openapis.org/oas/v3.2#paths-object",type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{$comment:"https://spec.openapis.org/oas/v3.2#path-item-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{$ref:"#/$defs/parameters"},additionalOperations:{type:"object",additionalProperties:{$ref:"#/$defs/operation"},propertyNames:{$comment:'RFC9110 restricts methods to "1*tchar" in ABNF',pattern:"^[a-zA-Z0-9!#$%&'*+.^_`|~-]+$",not:{enum:["GET","PUT","POST","DELETE","OPTIONS","HEAD","PATCH","TRACE","QUERY"]}}},get:{$ref:"#/$defs/operation"},put:{$ref:"#/$defs/operation"},post:{$ref:"#/$defs/operation"},delete:{$ref:"#/$defs/operation"},options:{$ref:"#/$defs/operation"},head:{$ref:"#/$defs/operation"},patch:{$ref:"#/$defs/operation"},trace:{$ref:"#/$defs/operation"},query:{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{$comment:"https://spec.openapis.org/oas/v3.2#operation-object",type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{$ref:"#/$defs/parameters"},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{$comment:"https://spec.openapis.org/oas/v3.2#external-documentation-object",type:"object",properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"},not:{allOf:[{contains:{type:"object",properties:{in:{const:"query"}},required:["in"]}},{contains:{type:"object",properties:{in:{const:"querystring"}},required:["in"]}}]},contains:{type:"object",properties:{in:{const:"querystring"}},required:["in"]},minContains:0,maxContains:1},parameter:{$comment:"https://spec.openapis.org/oas/v3.2#parameter-object",type:"object",properties:{name:{type:"string"},in:{enum:["query","querystring","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$ref:"#/$defs/schema"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},required:["name","in"],oneOf:[{required:["schema"]},{required:["content"]}],allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/specification-extensions"},{if:{properties:{in:{const:"query"}}},then:{properties:{allowEmptyValue:{default:!1,type:"boolean"}}}},{if:{properties:{in:{const:"querystring"}}},then:{required:["content"]}}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}}},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}}},then:{properties:{style:{default:"simple",const:"simple"}}}},"styles-for-query":{if:{properties:{in:{const:"query"}}},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}}},then:{properties:{style:{default:"form",enum:["form","cookie"]}}}}}}},unevaluatedProperties:!1},"parameter-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{$comment:"https://spec.openapis.org/oas/v3.2#request-body-object",type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{$comment:"https://spec.openapis.org/oas/v3.2#fixed-fields-10",type:"object",additionalProperties:{$ref:"#/$defs/media-type-or-reference"},propertyNames:{format:"media-range"}},"media-type":{$comment:"https://spec.openapis.org/oas/v3.2#media-type-object",type:"object",properties:{description:{type:"string"},schema:{$ref:"#/$defs/schema"},itemSchema:{$ref:"#/$defs/schema"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}},prefixEncoding:{type:"array",items:{$ref:"#/$defs/encoding"}},itemEncoding:{$ref:"#/$defs/encoding"}},dependentSchemas:{encoding:{properties:{prefixEncoding:!1,itemEncoding:!1}}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/specification-extensions"}],unevaluatedProperties:!1},"media-type-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/media-type"}},encoding:{$comment:"https://spec.openapis.org/oas/v3.2#encoding-object",type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}},prefixEncoding:{type:"array",items:{$ref:"#/$defs/encoding"}},itemEncoding:{$ref:"#/$defs/encoding"}},dependentSchemas:{encoding:{properties:{prefixEncoding:!1,itemEncoding:!1}},style:{properties:{allowReserved:{default:!1}}},explode:{properties:{style:{default:"form"},allowReserved:{default:!1}}},allowReserved:{properties:{style:{default:"form"}}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/styles-for-form"}],unevaluatedProperties:!1},responses:{$comment:"https://spec.openapis.org/oas/v3.2#responses-object",type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":{$ref:"#/$defs/response-or-reference"}},minProperties:1,$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,if:{$comment:"either default, or at least one response code property must exist",patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":!1}},then:{required:["default"]}},response:{$comment:"https://spec.openapis.org/oas/v3.2#response-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{$comment:"https://spec.openapis.org/oas/v3.2#callback-object",type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item"}},"callbacks-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{$comment:"https://spec.openapis.org/oas/v3.2#example-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},dataValue:!0,serializedValue:{type:"string"},value:!0,externalValue:{type:"string",format:"uri-reference"}},allOf:[{not:{required:["value","externalValue"]}},{not:{required:["value","dataValue"]}},{not:{required:["value","serializedValue"]}},{not:{required:["serializedValue","externalValue"]}}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{$comment:"https://spec.openapis.org/oas/v3.2#link-object",type:"object",properties:{operationRef:{type:"string",format:"uri-reference"},operationId:{type:"string"},parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},server:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{$comment:"https://spec.openapis.org/oas/v3.2#header-object",type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$ref:"#/$defs/schema"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{default:"simple",const:"simple"},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"}}}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/specification-extensions"}],unevaluatedProperties:!1},"header-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{$comment:"https://spec.openapis.org/oas/v3.2#tag-object",type:"object",properties:{name:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},parent:{type:"string"},kind:{type:"string"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{$comment:"https://spec.openapis.org/oas/v3.2#reference-object",type:"object",properties:{$ref:{type:"string",format:"uri-reference"},summary:{type:"string"},description:{type:"string"}}},schema:{$comment:"https://spec.openapis.org/oas/v3.2#schema-object",$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{$comment:"https://spec.openapis.org/oas/v3.2#security-scheme-object",type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"},deprecated:{default:!1,type:"boolean"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}}},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}}},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}}}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}}},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"},oauth2MetadataUrl:{type:"string",format:"uri-reference"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}}},then:{properties:{openIdConnectUrl:{type:"string",format:"uri-reference"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"},deviceAuthorization:{$ref:"#/$defs/oauth-flows/$defs/device-authorization"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"device-authorization":{type:"object",properties:{deviceAuthorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["deviceAuthorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{$comment:"https://spec.openapis.org/oas/v3.2#security-requirement-object",type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{$comment:"https://spec.openapis.org/oas/v3.2#specification-extensions",patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}},not:{required:["example","examples"]}},"map-of-strings":{type:"object",additionalProperties:{type:"string"}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},Ia={"2.0":Pl,"3.0":El,"3.1":Sl,"3.2":jl},Na=Object.keys(Ia),Se={EMPTY_OR_INVALID:"Can't find JSON, YAML or filename in data.",OPENAPI_VERSION_NOT_SUPPORTED:"Can't find supported Swagger/OpenAPI version in the provided document, version must be a string.",INVALID_REFERENCE:"Can't resolve reference: %s",EXTERNAL_REFERENCE_NOT_FOUND:"Can't resolve external reference: %s",SELF_REFERENCE:"Can't resolve reference to itself: %s",FILE_DOES_NOT_EXIST:"File does not exist: %s",NO_CONTENT:"No content found"};function Ys(t){if(t===null)return{version:void 0,specificationType:void 0,specificationVersion:void 0};if(Wt(t))for(const e of new Set(Na)){const r=e==="2.0"?"swagger":"openapi",n=t[r];if(typeof n=="string"&&n.startsWith(e))return{version:e,specificationType:r,specificationVersion:n}}return{version:void 0,specificationType:void 0,specificationVersion:void 0}}function Be(t){return t==null?void 0:t.find(e=>e.isEntrypoint)}function _r(t,e,r=[]){const n={};for(const[s,i]of Object.entries(t)){const o=[...r,s];if(Array.isArray(i)){n[s]=i.map((a,c)=>typeof a=="object"&&!Array.isArray(a)&&a!==null?_r(a,e,[...o,c.toString()]):a);continue}if(typeof i=="object"&&i!==null){n[s]=_r(i,e,o);continue}n[s]=i}return e(n,r)}function Aa(t){const e=[];return!t||typeof t!="object"?e:(_r(t,r=>(r.$ref&&typeof r.$ref=="string"&&!r.$ref.startsWith("#")&&e.push(r.$ref.split("#")[0]),r)),[...new Set(e)])}function Xs(t){return typeof t<"u"&&Array.isArray(t)&&t.length>0&&t.some(e=>e.isEntrypoint===!0)}const Qs=Symbol.for("yaml.alias"),Ps=Symbol.for("yaml.document"),ut=Symbol.for("yaml.map"),Ta=Symbol.for("yaml.pair"),Ge=Symbol.for("yaml.scalar"),Yt=Symbol.for("yaml.seq"),De=Symbol.for("yaml.node.type"),Xt=t=>!!t&&typeof t=="object"&&t[De]===Qs,Or=t=>!!t&&typeof t=="object"&&t[De]===Ps,kr=t=>!!t&&typeof t=="object"&&t[De]===ut,he=t=>!!t&&typeof t=="object"&&t[De]===Ta,ae=t=>!!t&&typeof t=="object"&&t[De]===Ge,Ir=t=>!!t&&typeof t=="object"&&t[De]===Yt;function pe(t){if(t&&typeof t=="object")switch(t[De]){case ut:case Yt:return!0}return!1}function me(t){if(t&&typeof t=="object")switch(t[De]){case Qs:case ut:case Ge:case Yt:return!0}return!1}const Ra=t=>(ae(t)||pe(t))&&!!t.anchor,ht=Symbol("break visit"),Ol=Symbol("skip children"),yr=Symbol("remove node");function Qt(t,e){const r=kl(e);Or(t)?Mt(null,t.contents,r,Object.freeze([t]))===yr&&(t.contents=null):Mt(null,t,r,Object.freeze([]))}Qt.BREAK=ht;Qt.SKIP=Ol;Qt.REMOVE=yr;function Mt(t,e,r,n){const s=Il(t,e,r,n);if(me(s)||he(s))return Nl(t,n,s),Mt(t,s,r,n);if(typeof s!="symbol"){if(pe(e)){n=Object.freeze(n.concat(e));for(let i=0;i<e.items.length;++i){const o=Mt(i,e.items[i],r,n);if(typeof o=="number")i=o-1;else{if(o===ht)return ht;o===yr&&(e.items.splice(i,1),i-=1)}}}else if(he(e)){n=Object.freeze(n.concat(e));const i=Mt("key",e.key,r,n);if(i===ht)return ht;i===yr&&(e.key=null);const o=Mt("value",e.value,r,n);if(o===ht)return ht;o===yr&&(e.value=null)}}return s}function kl(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function Il(t,e,r,n){var s,i,o,a,c;if(typeof r=="function")return r(t,e,n);if(kr(e))return(s=r.Map)==null?void 0:s.call(r,t,e,n);if(Ir(e))return(i=r.Seq)==null?void 0:i.call(r,t,e,n);if(he(e))return(o=r.Pair)==null?void 0:o.call(r,t,e,n);if(ae(e))return(a=r.Scalar)==null?void 0:a.call(r,t,e,n);if(Xt(e))return(c=r.Alias)==null?void 0:c.call(r,t,e,n)}function Nl(t,e,r){const n=e[e.length-1];if(pe(n))n.items[t]=r;else if(he(n))t==="key"?n.key=r:n.value=r;else if(Or(n))n.contents=r;else{const s=Xt(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const Al={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Tl=t=>t.replace(/[!,[\]{}]/g,e=>Al[e]);class Oe{constructor(e,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Oe.defaultYaml,e),this.tags=Object.assign({},Oe.defaultTags,r)}clone(){const e=new Oe(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Oe(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Oe.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Oe.defaultTags);break}return e}add(e,r){this.atNextDocument&&(this.yaml={explicit:Oe.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Oe.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[i,o]=n;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,o),!1}}default:return r(0,`Unknown directive ${s}`,!0),!1}}tagName(e,r){if(e==="!")return"!";if(e[0]!=="!")return r(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(r(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&r("Verbatim tags must end with a >"),o)}const[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||r(`The ${e} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(s)}catch(o){return r(String(o)),null}return n==="!"?e:(r(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[r,n]of Object.entries(this.tags))if(e.startsWith(n))return r+Tl(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let s;if(e&&n.length>0&&me(e.contents)){const i={};Qt(e.contents,(o,a)=>{me(a)&&a.tag&&(i[a.tag]=!0)}),s=Object.keys(i)}else s=[];for(const[i,o]of n)i==="!!"&&o==="tag:yaml.org,2002:"||(!e||s.some(a=>a.startsWith(o)))&&r.push(`%TAG ${i} ${o}`);return r.join(`
|
|
2
|
-
`)}}Oe.defaultYaml={explicit:!1,version:"1.2"};Oe.defaultTags={"!!":"tag:yaml.org,2002:"};function xa(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(r)}return!0}function Ca(t){const e=new Set;return Qt(t,{Value(r,n){n.anchor&&e.add(n.anchor)}}),e}function Ma(t,e){for(let r=1;;++r){const n=`${t}${r}`;if(!e.has(n))return n}}function Rl(t,e){const r=[],n=new Map;let s=null;return{onAnchor:i=>{r.push(i),s??(s=Ca(t));const o=Ma(e,s);return s.add(o),o},setAnchors:()=>{for(const i of r){const o=n.get(i);if(typeof o=="object"&&o.anchor&&(ae(o.node)||pe(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:n}}function qt(t,e,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let s=0,i=n.length;s<i;++s){const o=n[s],a=qt(t,n,String(s),o);a===void 0?delete n[s]:a!==o&&(n[s]=a)}else if(n instanceof Map)for(const s of Array.from(n.keys())){const i=n.get(s),o=qt(t,n,s,i);o===void 0?n.delete(s):o!==i&&n.set(s,o)}else if(n instanceof Set)for(const s of Array.from(n)){const i=qt(t,n,s,s);i===void 0?n.delete(s):i!==s&&(n.delete(s),n.add(i))}else for(const[s,i]of Object.entries(n)){const o=qt(t,n,s,i);o===void 0?delete n[s]:o!==i&&(n[s]=o)}return t.call(e,r,n)}function qe(t,e,r){if(Array.isArray(t))return t.map((n,s)=>qe(n,String(s),r));if(t&&typeof t.toJSON=="function"){if(!r||!Ra(t))return t.toJSON(e,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(t,n),r.onCreate=i=>{n.res=i,delete r.onCreate};const s=t.toJSON(e,r);return r.onCreate&&r.onCreate(s),s}return typeof t=="bigint"&&!(r!=null&&r.keep)?Number(t):t}class Zs{constructor(e){Object.defineProperty(this,De,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:i}={}){if(!Or(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=qe(this,"",o);if(typeof s=="function")for(const{count:c,res:f}of o.anchors.values())s(f,c);return typeof i=="function"?qt(i,{"":a},"",a):a}}class ei extends Zs{constructor(e){super(Qs),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,r){if((r==null?void 0:r.maxAliasCount)===0)throw new ReferenceError("Alias resolution is disabled");let n;r!=null&&r.aliasResolveCache?n=r.aliasResolveCache:(n=[],Qt(e,{Node:(i,o)=>{(Xt(o)||Ra(o))&&n.push(o)}}),r&&(r.aliasResolveCache=n));let s;for(const i of n){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(e,r){if(!r)return{source:this.source};const{anchors:n,doc:s,maxAliasCount:i}=r,o=this.resolve(s,r);if(!o){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let a=n.get(o);if(a||(qe(o,null,r),a=n.get(o)),(a==null?void 0:a.res)===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=ln(s,o,n)),a.count*a.aliasCount>i)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(e,r,n){const s=`*${this.source}`;if(e){if(xa(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(e.implicitKey)return`${s} `}return s}}function ln(t,e,r){if(Xt(e)){const n=e.resolve(t),s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(pe(e)){let n=0;for(const s of e.items){const i=ln(t,s,r);i>n&&(n=i)}return n}else if(he(e)){const n=ln(t,e.key,r),s=ln(t,e.value,r);return Math.max(n,s)}return 1}const qa=t=>!t||typeof t!="function"&&typeof t!="object";class X extends Zs{constructor(e){super(Ge),this.value=e}toJSON(e,r){return r!=null&&r.keep?this.value:qe(this.value,e,r)}toString(){return String(this.value)}}X.BLOCK_FOLDED="BLOCK_FOLDED";X.BLOCK_LITERAL="BLOCK_LITERAL";X.PLAIN="PLAIN";X.QUOTE_DOUBLE="QUOTE_DOUBLE";X.QUOTE_SINGLE="QUOTE_SINGLE";const xl="tag:yaml.org,2002:";function Cl(t,e,r){if(e){const n=r.filter(i=>i.tag===e),s=n.find(i=>!i.format)??n[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return r.find(n=>{var s;return((s=n.identify)==null?void 0:s.call(n,t))&&!n.format})}function Pr(t,e,r){var l,d,p;if(Or(t)&&(t=t.contents),me(t))return t;if(he(t)){const m=(d=(l=r.schema[ut]).createNode)==null?void 0:d.call(l,r.schema,null,r);return m.items.push(t),m}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:n,onAnchor:s,onTagObj:i,schema:o,sourceObjects:a}=r;let c;if(n&&t&&typeof t=="object"){if(c=a.get(t),c)return c.anchor??(c.anchor=s(t)),new ei(c.anchor);c={anchor:null,node:null},a.set(t,c)}e!=null&&e.startsWith("!!")&&(e=xl+e.slice(2));let f=Cl(t,e,o.tags);if(!f){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const m=new X(t);return c&&(c.node=m),m}f=t instanceof Map?o[ut]:Symbol.iterator in Object(t)?o[Yt]:o[ut]}i&&(i(f),delete r.onTagObj);const u=f!=null&&f.createNode?f.createNode(r.schema,t,r):typeof((p=f==null?void 0:f.nodeClass)==null?void 0:p.from)=="function"?f.nodeClass.from(r.schema,t,r):new X(t);return e?u.tag=e:f.default||(u.tag=f.tag),c&&(c.node=u),u}function bn(t,e,r){let n=r;for(let s=e.length-1;s>=0;--s){const i=e[s];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const o=[];o[i]=n,n=o}else n=new Map([[i,n]])}return Pr(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}const dr=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done;class Da extends Zs{constructor(e,r){super(e),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(e){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(r.schema=e),r.items=r.items.map(n=>me(n)||he(n)?n.clone(e):n),this.range&&(r.range=this.range.slice()),r}addIn(e,r){if(dr(e))this.add(r);else{const[n,...s]=e,i=this.get(n,!0);if(pe(i))i.addIn(s,r);else if(i===void 0&&this.schema)this.set(n,bn(this.schema,s,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}deleteIn(e){const[r,...n]=e;if(n.length===0)return this.delete(r);const s=this.get(r,!0);if(pe(s))return s.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(e,r){const[n,...s]=e,i=this.get(n,!0);return s.length===0?!r&&ae(i)?i.value:i:pe(i)?i.getIn(s,r):void 0}hasAllNullValues(e){return this.items.every(r=>{if(!he(r))return!1;const n=r.value;return n==null||e&&ae(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[r,...n]=e;if(n.length===0)return this.has(r);const s=this.get(r,!0);return pe(s)?s.hasIn(n):!1}setIn(e,r){const[n,...s]=e;if(s.length===0)this.set(n,r);else{const i=this.get(n,!0);if(pe(i))i.setIn(s,r);else if(i===void 0&&this.schema)this.set(n,bn(this.schema,s,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}}const Ml=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function Ze(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}const wt=(t,e,r)=>t.endsWith(`
|
|
3
|
-
`)?Ze(r,e):r.includes(`
|
|
4
|
-
`)?`
|
|
5
|
-
`+Ze(r,e):(t.endsWith(" ")?"":" ")+r,La="flow",Es="block",un="quoted";function Nn(t,e,r="flow",{indentAtStart:n,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}={}){if(!s||s<0)return t;s<i&&(i=0);const c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;const f=[],u={};let l=s-e.length;typeof n=="number"&&(n>s-Math.max(2,i)?f.push(0):l=s-n);let d,p,m=!1,y=-1,h=-1,$=-1;r===Es&&(y=So(t,y,e.length),y!==-1&&(l=y+c));for(let w;w=t[y+=1];){if(r===un&&w==="\\"){switch(h=y,t[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}$=y}if(w===`
|
|
6
|
-
`)r===Es&&(y=So(t,y,e.length)),l=y+e.length+c,d=void 0;else{if(w===" "&&p&&p!==" "&&p!==`
|
|
7
|
-
`&&p!==" "){const j=t[y+1];j&&j!==" "&&j!==`
|
|
8
|
-
`&&j!==" "&&(d=y)}if(y>=l)if(d)f.push(d),l=d+c,d=void 0;else if(r===un){for(;p===" "||p===" ";)p=w,w=t[y+=1],m=!0;const j=y>$+1?y-2:h-1;if(u[j])return t;f.push(j),u[j]=!0,l=j+c,d=void 0}else m=!0}p=w}if(m&&a&&a(),f.length===0)return t;o&&o();let v=t.slice(0,f[0]);for(let w=0;w<f.length;++w){const j=f[w],O=f[w+1]||t.length;j===0?v=`
|
|
9
|
-
${e}${t.slice(0,O)}`:(r===un&&u[j]&&(v+=`${t[j]}\\`),v+=`
|
|
10
|
-
${e}${t.slice(j+1,O)}`)}return v}function So(t,e,r){let n=e,s=e+1,i=t[s];for(;i===" "||i===" ";)if(e<s+r)i=t[++e];else{do i=t[++e];while(i&&i!==`
|
|
11
|
-
`);n=e,s=e+1,i=t[s]}return n}const An=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),Tn=t=>/^(%|---|\.\.\.)/m.test(t);function ql(t,e,r){if(!e||e<0)return!1;const n=e-r,s=t.length;if(s<=n)return!1;for(let i=0,o=0;i<s;++i)if(t[i]===`
|
|
12
|
-
`){if(i-o>n)return!0;if(o=i+1,s-o<=n)return!1}return!0}function gr(t,e){const r=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=e,s=e.options.doubleQuotedMinMultiLineLength,i=e.indent||(Tn(t)?" ":"");let o="",a=0;for(let c=0,f=r[c];f;f=r[++c])if(f===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(o+=r.slice(a,c)+"\\ ",c+=1,a=c,f="\\"),f==="\\")switch(r[c+1]){case"u":{o+=r.slice(a,c);const u=r.substr(c+2,4);switch(u){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=r.substr(c,6)}c+=5,a=c+1}break;case"n":if(n||r[c+2]==='"'||r.length<s)c+=1;else{for(o+=r.slice(a,c)+`
|
|
13
|
-
|
|
14
|
-
`;r[c+2]==="\\"&&r[c+3]==="n"&&r[c+4]!=='"';)o+=`
|
|
15
|
-
`,c+=2;o+=i,r[c+2]===" "&&(o+="\\"),c+=1,a=c+1}break;default:c+=1}return o=a?o+r.slice(a):r,n?o:Nn(o,i,un,An(e,!1))}function Ss(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
|
|
16
|
-
`)||/[ \t]\n|\n[ \t]/.test(t))return gr(t,e);const r=e.indent||(Tn(t)?" ":""),n="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
17
|
-
${r}`)+"'";return e.implicitKey?n:Nn(n,r,La,An(e,!1))}function Dt(t,e){const{singleQuote:r}=e.options;let n;if(r===!1)n=gr;else{const s=t.includes('"'),i=t.includes("'");s&&!i?n=Ss:i&&!s?n=gr:n=r?Ss:gr}return n(t,e)}let js;try{js=new RegExp(`(^|(?<!
|
|
18
|
-
))
|
|
19
|
-
+(?!
|
|
20
|
-
|$)`,"g")}catch{js=/\n+(?!\n|$)/g}function dn({comment:t,type:e,value:r},n,s,i){const{blockQuote:o,commentString:a,lineWidth:c}=n.options;if(!o||/\n[\t ]+$/.test(r))return Dt(r,n);const f=n.indent||(n.forceBlockIndent||Tn(r)?" ":""),u=o==="literal"?!0:o==="folded"||e===X.BLOCK_FOLDED?!1:e===X.BLOCK_LITERAL?!0:!ql(r,c,f.length);if(!r)return u?`|
|
|
21
|
-
`:`>
|
|
22
|
-
`;let l,d;for(d=r.length;d>0;--d){const O=r[d-1];if(O!==`
|
|
23
|
-
`&&O!==" "&&O!==" ")break}let p=r.substring(d);const m=p.indexOf(`
|
|
24
|
-
`);m===-1?l="-":r===p||m!==p.length-1?(l="+",i&&i()):l="",p&&(r=r.slice(0,-p.length),p[p.length-1]===`
|
|
25
|
-
`&&(p=p.slice(0,-1)),p=p.replace(js,`$&${f}`));let y=!1,h,$=-1;for(h=0;h<r.length;++h){const O=r[h];if(O===" ")y=!0;else if(O===`
|
|
26
|
-
`)$=h;else break}let v=r.substring(0,$<h?$+1:h);v&&(r=r.substring(v.length),v=v.replace(/\n+/g,`$&${f}`));let j=(y?f?"2":"1":"")+l;if(t&&(j+=" "+a(t.replace(/ ?[\r\n]+/g," ")),s&&s()),!u){const O=r.replace(/\n+/g,`
|
|
27
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`);let L=!1;const M=An(n,!0);o!=="folded"&&e!==X.BLOCK_FOLDED&&(M.onOverflow=()=>{L=!0});const C=Nn(`${v}${O}${p}`,f,Es,M);if(!L)return`>${j}
|
|
28
|
-
${f}${C}`}return r=r.replace(/\n+/g,`$&${f}`),`|${j}
|
|
29
|
-
${f}${v}${r}${p}`}function Dl(t,e,r,n){const{type:s,value:i}=t,{actualString:o,implicitKey:a,indent:c,indentStep:f,inFlow:u}=e;if(a&&i.includes(`
|
|
30
|
-
`)||u&&/[[\]{},]/.test(i))return Dt(i,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||u||!i.includes(`
|
|
31
|
-
`)?Dt(i,e):dn(t,e,r,n);if(!a&&!u&&s!==X.PLAIN&&i.includes(`
|
|
32
|
-
`))return dn(t,e,r,n);if(Tn(i)){if(c==="")return e.forceBlockIndent=!0,dn(t,e,r,n);if(a&&c===f)return Dt(i,e)}const l=i.replace(/\n+/g,`$&
|
|
33
|
-
${c}`);if(o){const d=y=>{var h;return y.default&&y.tag!=="tag:yaml.org,2002:str"&&((h=y.test)==null?void 0:h.test(l))},{compat:p,tags:m}=e.doc.schema;if(m.some(d)||p!=null&&p.some(d))return Dt(i,e)}return a?l:Nn(l,c,La,An(e,!1))}function ti(t,e,r,n){const{implicitKey:s,inFlow:i}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:a}=t;a!==X.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=X.QUOTE_DOUBLE);const c=u=>{switch(u){case X.BLOCK_FOLDED:case X.BLOCK_LITERAL:return s||i?Dt(o.value,e):dn(o,e,r,n);case X.QUOTE_DOUBLE:return gr(o.value,e);case X.QUOTE_SINGLE:return Ss(o.value,e);case X.PLAIN:return Dl(o,e,r,n);default:return null}};let f=c(a);if(f===null){const{defaultKeyType:u,defaultStringType:l}=e.options,d=s&&u||l;if(f=c(d),f===null)throw new Error(`Unsupported default string type ${d}`)}return f}function Va(t,e){const r=Object.assign({blockQuote:!0,commentString:Ml,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function Ll(t,e){var s;if(e.tag){const i=t.filter(o=>o.tag===e.tag);if(i.length>0)return i.find(o=>o.format===e.format)??i[0]}let r,n;if(ae(e)){n=e.value;let i=t.filter(o=>{var a;return(a=o.identify)==null?void 0:a.call(o,n)});if(i.length>1){const o=i.filter(a=>a.test);o.length>0&&(i=o)}r=i.find(o=>o.format===e.format)??i.find(o=>!o.format)}else n=e,r=t.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!r){const i=((s=n==null?void 0:n.constructor)==null?void 0:s.name)??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${i} value`)}return r}function Vl(t,e,{anchors:r,doc:n}){if(!n.directives)return"";const s=[],i=(ae(t)||pe(t))&&t.anchor;i&&xa(i)&&(r.add(i),s.push(`&${i}`));const o=t.tag??(e.default?null:e.tag);return o&&s.push(n.directives.tagString(o)),s.join(" ")}function Bt(t,e,r,n){var c;if(he(t))return t.toString(e,r,n);if(Xt(t)){if(e.doc.directives)return t.toString(e);if((c=e.resolvedAliases)!=null&&c.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let s;const i=me(t)?t:e.doc.createNode(t,{onTagObj:f=>s=f});s??(s=Ll(e.doc.schema.tags,i));const o=Vl(i,s,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const a=typeof s.stringify=="function"?s.stringify(i,e,r,n):ae(i)?ti(i,e,r,n):i.toString(e,r,n);return o?ae(i)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
|
|
34
|
-
${e.indent}${a}`:a}function Ul({key:t,value:e},r,n,s){const{allNullValues:i,doc:o,indent:a,indentStep:c,options:{commentString:f,indentSeq:u,simpleKeys:l}}=r;let d=me(t)&&t.comment||null;if(l){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(pe(t)||!me(t)&&typeof t=="object"){const M="With simple keys, collection cannot be used as a key value";throw new Error(M)}}let p=!l&&(!t||d&&e==null&&!r.inFlow||pe(t)||(ae(t)?t.type===X.BLOCK_FOLDED||t.type===X.BLOCK_LITERAL:typeof t=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!p&&(l||!i),indent:a+c});let m=!1,y=!1,h=Bt(t,r,()=>m=!0,()=>y=!0);if(!p&&!r.inFlow&&h.length>1024){if(l)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(r.inFlow){if(i||e==null)return m&&n&&n(),h===""?"?":p?`? ${h}`:h}else if(i&&!l||e==null&&p)return h=`? ${h}`,d&&!m?h+=wt(h,r.indent,f(d)):y&&s&&s(),h;m&&(d=null),p?(d&&(h+=wt(h,r.indent,f(d))),h=`? ${h}
|
|
35
|
-
${a}:`):(h=`${h}:`,d&&(h+=wt(h,r.indent,f(d))));let $,v,w;me(e)?($=!!e.spaceBefore,v=e.commentBefore,w=e.comment):($=!1,v=null,w=null,e&&typeof e=="object"&&(e=o.createNode(e))),r.implicitKey=!1,!p&&!d&&ae(e)&&(r.indentAtStart=h.length+1),y=!1,!u&&c.length>=2&&!r.inFlow&&!p&&Ir(e)&&!e.flow&&!e.tag&&!e.anchor&&(r.indent=r.indent.substring(2));let j=!1;const O=Bt(e,r,()=>j=!0,()=>y=!0);let L=" ";if(d||$||v){if(L=$?`
|
|
36
|
-
`:"",v){const M=f(v);L+=`
|
|
37
|
-
${Ze(M,r.indent)}`}O===""&&!r.inFlow?L===`
|
|
38
|
-
`&&w&&(L=`
|
|
39
|
-
|
|
40
|
-
`):L+=`
|
|
41
|
-
${r.indent}`}else if(!p&&pe(e)){const M=O[0],C=O.indexOf(`
|
|
42
|
-
`),G=C!==-1,te=r.inFlow??e.flow??e.items.length===0;if(G||!te){let q=!1;if(G&&(M==="&"||M==="!")){let F=O.indexOf(" ");M==="&"&&F!==-1&&F<C&&O[F+1]==="!"&&(F=O.indexOf(" ",F+1)),(F===-1||C<F)&&(q=!0)}q||(L=`
|
|
43
|
-
${r.indent}`)}}else(O===""||O[0]===`
|
|
44
|
-
`)&&(L="");return h+=L+O,r.inFlow?j&&n&&n():w&&!j?h+=wt(h,r.indent,f(w)):y&&s&&s(),h}function Ua(t,e){(t==="debug"||t==="warn")&&console.warn(e)}const Wr="<<",et={identify:t=>t===Wr||typeof t=="symbol"&&t.description===Wr,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new X(Symbol(Wr)),{addToJSMap:Fa}),stringify:()=>Wr},Fl=(t,e)=>(et.identify(e)||ae(e)&&(!e.type||e.type===X.PLAIN)&&et.identify(e.value))&&(t==null?void 0:t.doc.schema.tags.some(r=>r.tag===et.tag&&r.default));function Fa(t,e,r){const n=za(t,r);if(Ir(n))for(const s of n.items)os(t,e,s);else if(Array.isArray(n))for(const s of n)os(t,e,s);else os(t,e,n)}function os(t,e,r){const n=za(t,r);if(!kr(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,t,Map);for(const[i,o]of s)e instanceof Map?e.has(i)||e.set(i,o):e instanceof Set?e.add(i):Object.prototype.hasOwnProperty.call(e,i)||Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function za(t,e){return t&&Xt(e)?e.resolve(t.doc,t):e}function Ka(t,e,{key:r,value:n}){if(me(r)&&r.addToJSMap)r.addToJSMap(t,e,n);else if(Fl(t,r))Fa(t,e,n);else{const s=qe(r,"",t);if(e instanceof Map)e.set(s,qe(n,s,t));else if(e instanceof Set)e.add(s);else{const i=zl(r,s,t),o=qe(n,i,t);i in e?Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[i]=o}}return e}function zl(t,e,r){if(e===null)return"";if(typeof e!="object")return String(e);if(me(t)&&(r!=null&&r.doc)){const n=Va(r.doc,{});n.anchors=new Set;for(const i of r.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;const s=t.toString(n);if(!r.mapKeyWarned){let i=JSON.stringify(s);i.length>40&&(i=i.substring(0,36)+'..."'),Ua(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return s}return JSON.stringify(e)}function ri(t,e,r){const n=Pr(t,void 0,r),s=Pr(e,void 0,r);return new Ie(n,s)}class Ie{constructor(e,r=null){Object.defineProperty(this,De,{value:Ta}),this.key=e,this.value=r}clone(e){let{key:r,value:n}=this;return me(r)&&(r=r.clone(e)),me(n)&&(n=n.clone(e)),new Ie(r,n)}toJSON(e,r){const n=r!=null&&r.mapAsMap?new Map:{};return Ka(r,n,this)}toString(e,r,n){return e!=null&&e.doc?Ul(this,e,r,n):JSON.stringify(this)}}function Ba(t,e,r){return(e.inFlow??t.flow?Bl:Kl)(t,e,r)}function Kl({comment:t,items:e},r,{blockItemPrefix:n,flowChars:s,itemIndent:i,onChompKeep:o,onComment:a}){const{indent:c,options:{commentString:f}}=r,u=Object.assign({},r,{indent:i,type:null});let l=!1;const d=[];for(let m=0;m<e.length;++m){const y=e[m];let h=null;if(me(y))!l&&y.spaceBefore&&d.push(""),vn(r,d,y.commentBefore,l),y.comment&&(h=y.comment);else if(he(y)){const v=me(y.key)?y.key:null;v&&(!l&&v.spaceBefore&&d.push(""),vn(r,d,v.commentBefore,l))}l=!1;let $=Bt(y,u,()=>h=null,()=>l=!0);h&&($+=wt($,i,f(h))),l&&h&&(l=!1),d.push(n+$)}let p;if(d.length===0)p=s.start+s.end;else{p=d[0];for(let m=1;m<d.length;++m){const y=d[m];p+=y?`
|
|
45
|
-
${c}${y}`:`
|
|
46
|
-
`}}return t?(p+=`
|
|
47
|
-
`+Ze(f(t),c),a&&a()):l&&o&&o(),p}function Bl({items:t},e,{flowChars:r,itemIndent:n}){const{indent:s,indentStep:i,flowCollectionPadding:o,options:{commentString:a}}=e;n+=i;const c=Object.assign({},e,{indent:n,inFlow:!0,type:null});let f=!1,u=0;const l=[];for(let m=0;m<t.length;++m){const y=t[m];let h=null;if(me(y))y.spaceBefore&&l.push(""),vn(e,l,y.commentBefore,!1),y.comment&&(h=y.comment);else if(he(y)){const v=me(y.key)?y.key:null;v&&(v.spaceBefore&&l.push(""),vn(e,l,v.commentBefore,!1),v.comment&&(f=!0));const w=me(y.value)?y.value:null;w?(w.comment&&(h=w.comment),w.commentBefore&&(f=!0)):y.value==null&&(v!=null&&v.comment)&&(h=v.comment)}h&&(f=!0);let $=Bt(y,c,()=>h=null);f||(f=l.length>u||$.includes(`
|
|
48
|
-
`)),m<t.length-1?$+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(f||(f=l.reduce((v,w)=>v+w.length+2,2)+($.length+2)>e.options.lineWidth)),f&&($+=",")),h&&($+=wt($,n,a(h))),l.push($),u=l.length}const{start:d,end:p}=r;if(l.length===0)return d+p;if(!f){const m=l.reduce((y,h)=>y+h.length+2,2);f=e.options.lineWidth>0&&m>e.options.lineWidth}if(f){let m=d;for(const y of l)m+=y?`
|
|
49
|
-
${i}${s}${y}`:`
|
|
50
|
-
`;return`${m}
|
|
51
|
-
${s}${p}`}else return`${d}${o}${l.join(" ")}${o}${p}`}function vn({indent:t,options:{commentString:e}},r,n,s){if(n&&s&&(n=n.replace(/^\n+/,"")),n){const i=Ze(e(n),t);r.push(i.trimStart())}}function _t(t,e){const r=ae(e)?e.value:e;for(const n of t)if(he(n)&&(n.key===e||n.key===r||ae(n.key)&&n.key.value===r))return n}class Me extends Da{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(ut,e),this.items=[]}static from(e,r,n){const{keepUndefined:s,replacer:i}=n,o=new this(e),a=(c,f)=>{if(typeof i=="function")f=i.call(r,c,f);else if(Array.isArray(i)&&!i.includes(c))return;(f!==void 0||s)&&o.items.push(ri(c,f,n))};if(r instanceof Map)for(const[c,f]of r)a(c,f);else if(r&&typeof r=="object")for(const c of Object.keys(r))a(c,r[c]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,r){var o;let n;he(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new Ie(e,e==null?void 0:e.value):n=new Ie(e.key,e.value);const s=_t(this.items,n.key),i=(o=this.schema)==null?void 0:o.sortMapEntries;if(s){if(!r)throw new Error(`Key ${n.key} already set`);ae(s.value)&&qa(n.value)?s.value.value=n.value:s.value=n.value}else if(i){const a=this.items.findIndex(c=>i(n,c)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(e){const r=_t(this.items,e);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(e,r){const n=_t(this.items,e),s=n==null?void 0:n.value;return(!r&&ae(s)?s.value:s)??void 0}has(e){return!!_t(this.items,e)}set(e,r){this.add(new Ie(e,r),!0)}toJSON(e,r,n){const s=n?new n:r!=null&&r.mapAsMap?new Map:{};r!=null&&r.onCreate&&r.onCreate(s);for(const i of this.items)Ka(r,s,i);return s}toString(e,r,n){if(!e)return JSON.stringify(this);for(const s of this.items)if(!he(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Ba(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:r})}}const Zt={collection:"map",default:!0,nodeClass:Me,tag:"tag:yaml.org,2002:map",resolve(t,e){return kr(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,r)=>Me.from(t,e,r)};class Et extends Da{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Yt,e),this.items=[]}add(e){this.items.push(e)}delete(e){const r=Yr(e);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(e,r){const n=Yr(e);if(typeof n!="number")return;const s=this.items[n];return!r&&ae(s)?s.value:s}has(e){const r=Yr(e);return typeof r=="number"&&r<this.items.length}set(e,r){const n=Yr(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const s=this.items[n];ae(s)&&qa(r)?s.value=r:this.items[n]=r}toJSON(e,r){const n=[];r!=null&&r.onCreate&&r.onCreate(n);let s=0;for(const i of this.items)n.push(qe(i,String(s++),r));return n}toString(e,r,n){return e?Ba(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:r}):JSON.stringify(this)}static from(e,r,n){const{replacer:s}=n,i=new this(e);if(r&&Symbol.iterator in Object(r)){let o=0;for(let a of r){if(typeof s=="function"){const c=r instanceof Set?a:String(o++);a=s.call(r,c,a)}i.items.push(Pr(a,void 0,n))}}return i}}function Yr(t){let e=ae(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const er={collection:"seq",default:!0,nodeClass:Et,tag:"tag:yaml.org,2002:seq",resolve(t,e){return Ir(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,r)=>Et.from(t,e,r)},Rn={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,r,n){return e=Object.assign({actualString:!0},e),ti(t,e,r,n)}},xn={identify:t=>t==null,createNode:()=>new X(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new X(null),stringify:({source:t},e)=>typeof t=="string"&&xn.test.test(t)?t:e.options.nullStr},ni={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new X(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},r){if(t&&ni.test.test(t)){const n=t[0]==="t"||t[0]==="T";if(e===n)return t}return e?r.options.trueStr:r.options.falseStr}};function He({format:t,minFractionDigits:e,tag:r,value:n}){if(typeof n=="bigint")return String(n);const s=typeof n=="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=Object.is(n,-0)?"-0":JSON.stringify(n);if(!t&&e&&(!r||r==="tag:yaml.org,2002:float")&&/^-?\d/.test(i)&&!i.includes("e")){let o=i.indexOf(".");o<0&&(o=i.length,i+=".");let a=e-(i.length-o-1);for(;a-- >0;)i+="0"}return i}const Ha={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:He},Ja={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():He(t)}},Ga={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new X(parseFloat(t)),r=t.indexOf(".");return r!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-r-1),e},stringify:He},Cn=t=>typeof t=="bigint"||Number.isInteger(t),si=(t,e,r,{intAsBigInt:n})=>n?BigInt(t):parseInt(t.substring(e),r);function Wa(t,e,r){const{value:n}=t;return Cn(n)&&n>=0?r+n.toString(e):He(t)}const Ya={identify:t=>Cn(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,r)=>si(t,2,8,r),stringify:t=>Wa(t,8,"0o")},Xa={identify:Cn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,r)=>si(t,0,10,r),stringify:He},Qa={identify:t=>Cn(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,r)=>si(t,2,16,r),stringify:t=>Wa(t,16,"0x")},Hl=[Zt,er,Rn,xn,ni,Ya,Xa,Qa,Ha,Ja,Ga];function jo(t){return typeof t=="bigint"||Number.isInteger(t)}const Xr=({value:t})=>JSON.stringify(t),Jl=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:Xr},{identify:t=>t==null,createNode:()=>new X(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Xr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>t==="true",stringify:Xr},{identify:jo,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:r})=>r?BigInt(t):parseInt(t,10),stringify:({value:t})=>jo(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Xr}],Gl={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},Wl=[Zt,er].concat(Jl,Gl),ii={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof atob=="function"){const r=atob(t.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let s=0;s<r.length;++s)n[s]=r.charCodeAt(s);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:r},n,s,i){if(!r)return"";const o=r;let a;if(typeof btoa=="function"){let c="";for(let f=0;f<o.length;++f)c+=String.fromCharCode(o[f]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=X.BLOCK_LITERAL),e!==X.QUOTE_DOUBLE){const c=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),f=Math.ceil(a.length/c),u=new Array(f);for(let l=0,d=0;l<f;++l,d+=c)u[l]=a.substr(d,c);a=u.join(e===X.BLOCK_LITERAL?`
|
|
52
|
-
`:" ")}return ti({comment:t,type:e,value:a},n,s,i)}};function Za(t,e){if(Ir(t))for(let r=0;r<t.items.length;++r){let n=t.items[r];if(!he(n)){if(kr(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");const s=n.items[0]||new Ie(new X(null));if(n.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${n.commentBefore}
|
|
53
|
-
${s.key.commentBefore}`:n.commentBefore),n.comment){const i=s.value??s.key;i.comment=i.comment?`${n.comment}
|
|
54
|
-
${i.comment}`:n.comment}n=s}t.items[r]=he(n)?n:new Ie(n)}}else e("Expected a sequence for this tag");return t}function ec(t,e,r){const{replacer:n}=r,s=new Et(t);s.tag="tag:yaml.org,2002:pairs";let i=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(i++),o));let a,c;if(Array.isArray(o))if(o.length===2)a=o[0],c=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const f=Object.keys(o);if(f.length===1)a=f[0],c=o[a];else throw new TypeError(`Expected tuple with one key, not ${f.length} keys`)}else a=o;s.items.push(ri(a,c,r))}return s}const oi={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Za,createNode:ec};class Ut extends Et{constructor(){super(),this.add=Me.prototype.add.bind(this),this.delete=Me.prototype.delete.bind(this),this.get=Me.prototype.get.bind(this),this.has=Me.prototype.has.bind(this),this.set=Me.prototype.set.bind(this),this.tag=Ut.tag}toJSON(e,r){if(!r)return super.toJSON(e);const n=new Map;r!=null&&r.onCreate&&r.onCreate(n);for(const s of this.items){let i,o;if(he(s)?(i=qe(s.key,"",r),o=qe(s.value,i,r)):i=qe(s,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,o)}return n}static from(e,r,n){const s=ec(e,r,n),i=new this;return i.items=s.items,i}}Ut.tag="tag:yaml.org,2002:omap";const ai={collection:"seq",identify:t=>t instanceof Map,nodeClass:Ut,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const r=Za(t,e),n=[];for(const{key:s}of r.items)ae(s)&&(n.includes(s.value)?e(`Ordered maps must not include duplicate keys: ${s.value}`):n.push(s.value));return Object.assign(new Ut,r)},createNode:(t,e,r)=>Ut.from(t,e,r)};function tc({value:t,source:e},r){return e&&(t?rc:nc).test.test(e)?e:t?r.options.trueStr:r.options.falseStr}const rc={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new X(!0),stringify:tc},nc={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new X(!1),stringify:tc},Yl={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:He},Xl={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():He(t)}},Ql={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new X(parseFloat(t.replace(/_/g,""))),r=t.indexOf(".");if(r!==-1){const n=t.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:He},Nr=t=>typeof t=="bigint"||Number.isInteger(t);function Mn(t,e,r,{intAsBigInt:n}){const s=t[0];if((s==="-"||s==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),n){switch(r){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return s==="-"?BigInt(-1)*o:o}const i=parseInt(t,r);return s==="-"?-1*i:i}function ci(t,e,r){const{value:n}=t;if(Nr(n)){const s=n.toString(e);return n<0?"-"+r+s.substr(1):r+s}return He(t)}const Zl={identify:Nr,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,r)=>Mn(t,2,2,r),stringify:t=>ci(t,2,"0b")},eu={identify:Nr,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,r)=>Mn(t,1,8,r),stringify:t=>ci(t,8,"0")},tu={identify:Nr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,r)=>Mn(t,0,10,r),stringify:He},ru={identify:Nr,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,r)=>Mn(t,2,16,r),stringify:t=>ci(t,16,"0x")};class Ft extends Me{constructor(e){super(e),this.tag=Ft.tag}add(e){let r;he(e)?r=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?r=new Ie(e.key,null):r=new Ie(e,null),_t(this.items,r.key)||this.items.push(r)}get(e,r){const n=_t(this.items,e);return!r&&he(n)?ae(n.key)?n.key.value:n.key:n}set(e,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const n=_t(this.items,e);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new Ie(e))}toJSON(e,r){return super.toJSON(e,r,Set)}toString(e,r,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(e,r,n){const{replacer:s}=n,i=new this(e);if(r&&Symbol.iterator in Object(r))for(let o of r)typeof s=="function"&&(o=s.call(r,o,o)),i.items.push(ri(o,null,n));return i}}Ft.tag="tag:yaml.org,2002:set";const fi={collection:"map",identify:t=>t instanceof Set,nodeClass:Ft,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,r)=>Ft.from(t,e,r),resolve(t,e){if(kr(t)){if(t.hasAllNullValues(!0))return Object.assign(new Ft,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function li(t,e){const r=t[0],n=r==="-"||r==="+"?t.substring(1):t,s=o=>e?BigInt(o):Number(o),i=n.replace(/_/g,"").split(":").reduce((o,a)=>o*s(60)+s(a),s(0));return r==="-"?s(-1)*i:i}function sc(t){let{value:e}=t,r=o=>o;if(typeof e=="bigint")r=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return He(t);let n="";e<0&&(n="-",e*=r(-1));const s=r(60),i=[e%s];return e<60?i.unshift(0):(e=(e-i[0])/s,i.unshift(e%s),e>=60&&(e=(e-i[0])/s,i.unshift(e))),n+i.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const ic={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:r})=>li(t,r),stringify:sc},oc={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>li(t,!1),stringify:sc},qn={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(qn.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,i,o,a]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0;let f=Date.UTC(r,n-1,s,i||0,o||0,a||0,c);const u=e[8];if(u&&u!=="Z"){let l=li(u,!1);Math.abs(l)<30&&(l*=60),f-=6e4*l}return new Date(f)},stringify:({value:t})=>(t==null?void 0:t.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},Oo=[Zt,er,Rn,xn,rc,nc,Zl,eu,tu,ru,Yl,Xl,Ql,ii,et,ai,oi,fi,ic,oc,qn],ko=new Map([["core",Hl],["failsafe",[Zt,er,Rn]],["json",Wl],["yaml11",Oo],["yaml-1.1",Oo]]),Io={binary:ii,bool:ni,float:Ga,floatExp:Ja,floatNaN:Ha,floatTime:oc,int:Xa,intHex:Qa,intOct:Ya,intTime:ic,map:Zt,merge:et,null:xn,omap:ai,pairs:oi,seq:er,set:fi,timestamp:qn},nu={"tag:yaml.org,2002:binary":ii,"tag:yaml.org,2002:merge":et,"tag:yaml.org,2002:omap":ai,"tag:yaml.org,2002:pairs":oi,"tag:yaml.org,2002:set":fi,"tag:yaml.org,2002:timestamp":qn};function as(t,e,r){const n=ko.get(e);if(n&&!t)return r&&!n.includes(et)?n.concat(et):n.slice();let s=n;if(!s)if(Array.isArray(t))s=[];else{const i=Array.from(ko.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${i} or define customTags array`)}if(Array.isArray(t))for(const i of t)s=s.concat(i);else typeof t=="function"&&(s=t(s.slice()));return r&&(s=s.concat(et)),s.reduce((i,o)=>{const a=typeof o=="string"?Io[o]:o;if(!a){const c=JSON.stringify(o),f=Object.keys(Io).map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${f}`)}return i.includes(a)||i.push(a),i},[])}const su=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0;class ui{constructor({compat:e,customTags:r,merge:n,resolveKnownTags:s,schema:i,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?as(e,"compat"):e?as(null,e):null,this.name=typeof i=="string"&&i||"core",this.knownTags=s?nu:{},this.tags=as(r,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,ut,{value:Zt}),Object.defineProperty(this,Ge,{value:Rn}),Object.defineProperty(this,Yt,{value:er}),this.sortMapEntries=typeof o=="function"?o:o===!0?su:null}clone(){const e=Object.create(ui.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function iu(t,e){var c;const r=[];let n=e.directives===!0;if(e.directives!==!1&&t.directives){const f=t.directives.toString(t);f?(r.push(f),n=!0):t.directives.docStart&&(n=!0)}n&&r.push("---");const s=Va(t,e),{commentString:i}=s.options;if(t.commentBefore){r.length!==1&&r.unshift("");const f=i(t.commentBefore);r.unshift(Ze(f,""))}let o=!1,a=null;if(t.contents){if(me(t.contents)){if(t.contents.spaceBefore&&n&&r.push(""),t.contents.commentBefore){const l=i(t.contents.commentBefore);r.push(Ze(l,""))}s.forceBlockIndent=!!t.comment,a=t.contents.comment}const f=a?void 0:()=>o=!0;let u=Bt(t.contents,s,()=>a=null,f);a&&(u+=wt(u,"",i(a))),(u[0]==="|"||u[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${u}`:r.push(u)}else r.push(Bt(t.contents,s));if((c=t.directives)!=null&&c.docEnd)if(t.comment){const f=i(t.comment);f.includes(`
|
|
55
|
-
`)?(r.push("..."),r.push(Ze(f,""))):r.push(`... ${f}`)}else r.push("...");else{let f=t.comment;f&&o&&(f=f.replace(/^\n+/,"")),f&&((!o||a)&&r[r.length-1]!==""&&r.push(""),r.push(Ze(i(f),"")))}return r.join(`
|
|
56
|
-
`)+`
|
|
57
|
-
`}class Ar{constructor(e,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,De,{value:Ps});let s=null;typeof r=="function"||Array.isArray(r)?s=r:n===void 0&&r&&(n=r,r=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Oe({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,s,n)}clone(){const e=Object.create(Ar.prototype,{[De]:{value:Ps}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=me(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Tt(this.contents)&&this.contents.add(e)}addIn(e,r){Tt(this.contents)&&this.contents.addIn(e,r)}createAlias(e,r){if(!e.anchor){const n=Ca(this);e.anchor=!r||n.has(r)?Ma(r||"a",n):r}return new ei(e.anchor)}createNode(e,r,n){let s;if(typeof r=="function")e=r.call({"":e},"",e),s=r;else if(Array.isArray(r)){const h=v=>typeof v=="number"||v instanceof String||v instanceof Number,$=r.filter(h).map(String);$.length>0&&(r=r.concat($)),s=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:a,keepUndefined:c,onTagObj:f,tag:u}=n??{},{onAnchor:l,setAnchors:d,sourceObjects:p}=Rl(this,o||"a"),m={aliasDuplicateObjects:i??!0,keepUndefined:c??!1,onAnchor:l,onTagObj:f,replacer:s,schema:this.schema,sourceObjects:p},y=Pr(e,u,m);return a&&pe(y)&&(y.flow=!0),d(),y}createPair(e,r,n={}){const s=this.createNode(e,null,n),i=this.createNode(r,null,n);return new Ie(s,i)}delete(e){return Tt(this.contents)?this.contents.delete(e):!1}deleteIn(e){return dr(e)?this.contents==null?!1:(this.contents=null,!0):Tt(this.contents)?this.contents.deleteIn(e):!1}get(e,r){return pe(this.contents)?this.contents.get(e,r):void 0}getIn(e,r){return dr(e)?!r&&ae(this.contents)?this.contents.value:this.contents:pe(this.contents)?this.contents.getIn(e,r):void 0}has(e){return pe(this.contents)?this.contents.has(e):!1}hasIn(e){return dr(e)?this.contents!==void 0:pe(this.contents)?this.contents.hasIn(e):!1}set(e,r){this.contents==null?this.contents=bn(this.schema,[e],r):Tt(this.contents)&&this.contents.set(e,r)}setIn(e,r){dr(e)?this.contents=r:this.contents==null?this.contents=bn(this.schema,Array.from(e),r):Tt(this.contents)&&this.contents.setIn(e,r)}setSchema(e,r={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Oe({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Oe({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const s=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new ui(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:r,mapAsMap:n,maxAliasCount:s,onAnchor:i,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},c=qe(this.contents,r??"",a);if(typeof i=="function")for(const{count:f,res:u}of a.anchors.values())i(u,f);return typeof o=="function"?qt(o,{"":c},"",c):c}toJSON(e,r){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:r})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const r=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return iu(this,e)}}function Tt(t){if(pe(t))return!0;throw new Error("Expected a YAML collection as document contents")}class ac extends Error{constructor(e,r,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=r}}class pr extends ac{constructor(e,r,n){super("YAMLParseError",e,r,n)}}class ou extends ac{constructor(e,r,n){super("YAMLWarning",e,r,n)}}const No=(t,e)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>e.linePos(a));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let i=s-1,o=t.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const a=Math.min(i-39,o.length-79);o="…"+o.substring(a),i-=a-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,i))){let a=t.substring(e.lineStarts[n-2],e.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`…
|
|
58
|
-
`),o=a+o}if(/[^ ]/.test(o)){let a=1;const c=r.linePos[1];(c==null?void 0:c.line)===n&&c.col>s&&(a=Math.max(1,Math.min(c.col-s,80-i)));const f=" ".repeat(i)+"^".repeat(a);r.message+=`:
|
|
59
|
-
|
|
60
|
-
${o}
|
|
61
|
-
${f}
|
|
62
|
-
`}};function Ht(t,{flow:e,indicator:r,next:n,offset:s,onError:i,parentIndent:o,startOnNewline:a}){let c=!1,f=a,u=a,l="",d="",p=!1,m=!1,y=null,h=null,$=null,v=null,w=null,j=null,O=null;for(const C of t)switch(m&&(C.type!=="space"&&C.type!=="newline"&&C.type!=="comma"&&i(C.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m=!1),y&&(f&&C.type!=="comment"&&C.type!=="newline"&&i(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),y=null),C.type){case"space":!e&&(r!=="doc-start"||(n==null?void 0:n.type)!=="flow-collection")&&C.source.includes(" ")&&(y=C),u=!0;break;case"comment":{u||i(C,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const G=C.source.substring(1)||" ";l?l+=d+G:l=G,d="",f=!1;break}case"newline":f?l?l+=C.source:(!j||r!=="seq-item-ind")&&(c=!0):d+=C.source,f=!0,p=!0,(h||$)&&(v=C),u=!0;break;case"anchor":h&&i(C,"MULTIPLE_ANCHORS","A node can have at most one anchor"),C.source.endsWith(":")&&i(C.offset+C.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),h=C,O??(O=C.offset),f=!1,u=!1,m=!0;break;case"tag":{$&&i(C,"MULTIPLE_TAGS","A node can have at most one tag"),$=C,O??(O=C.offset),f=!1,u=!1,m=!0;break}case r:(h||$)&&i(C,"BAD_PROP_ORDER",`Anchors and tags must be after the ${C.source} indicator`),j&&i(C,"UNEXPECTED_TOKEN",`Unexpected ${C.source} in ${e??"collection"}`),j=C,f=r==="seq-item-ind"||r==="explicit-key-ind",u=!1;break;case"comma":if(e){w&&i(C,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),w=C,f=!1,u=!1;break}default:i(C,"UNEXPECTED_TOKEN",`Unexpected ${C.type} token`),f=!1,u=!1}const L=t[t.length-1],M=L?L.offset+L.source.length:s;return m&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y&&(f&&y.indent<=o||(n==null?void 0:n.type)==="block-map"||(n==null?void 0:n.type)==="block-seq")&&i(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:w,found:j,spaceBefore:c,comment:l,hasNewline:p,anchor:h,tag:$,newlineAfterProp:v,end:M,start:O??M}}function Er(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
|
|
63
|
-
`))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const r of e.start)if(r.type==="newline")return!0;if(e.sep){for(const r of e.sep)if(r.type==="newline")return!0}if(Er(e.key)||Er(e.value))return!0}return!1;default:return!0}}function Os(t,e,r){if((e==null?void 0:e.type)==="flow-collection"){const n=e.end[0];n.indent===t&&(n.source==="]"||n.source==="}")&&Er(e)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function cc(t,e,r){const{uniqueKeys:n}=t.options;if(n===!1)return!1;const s=typeof n=="function"?n:(i,o)=>i===o||ae(i)&&ae(o)&&i.value===o.value;return e.some(i=>s(i.key,r))}const Ao="All mapping items must start at the same column";function au({composeNode:t,composeEmptyNode:e},r,n,s,i){var u;const o=(i==null?void 0:i.nodeClass)??Me,a=new o(r.schema);r.atRoot&&(r.atRoot=!1);let c=n.offset,f=null;for(const l of n.items){const{start:d,key:p,sep:m,value:y}=l,h=Ht(d,{indicator:"explicit-key-ind",next:p??(m==null?void 0:m[0]),offset:c,onError:s,parentIndent:n.indent,startOnNewline:!0}),$=!h.found;if($){if(p&&(p.type==="block-seq"?s(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==n.indent&&s(c,"BAD_INDENT",Ao)),!h.anchor&&!h.tag&&!m){f=h.end,h.comment&&(a.comment?a.comment+=`
|
|
64
|
-
`+h.comment:a.comment=h.comment);continue}(h.newlineAfterProp||Er(p))&&s(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((u=h.found)==null?void 0:u.indent)!==n.indent&&s(c,"BAD_INDENT",Ao);r.atKey=!0;const v=h.end,w=p?t(r,p,h,s):e(r,v,d,null,h,s);r.schema.compat&&Os(n.indent,p,s),r.atKey=!1,cc(r,a.items,w)&&s(v,"DUPLICATE_KEY","Map keys must be unique");const j=Ht(m??[],{indicator:"map-value-ind",next:y,offset:w.range[2],onError:s,parentIndent:n.indent,startOnNewline:!p||p.type==="block-scalar"});if(c=j.end,j.found){$&&((y==null?void 0:y.type)==="block-map"&&!j.hasNewline&&s(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&h.start<j.found.offset-1024&&s(w.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const O=y?t(r,y,j,s):e(r,c,m,null,j,s);r.schema.compat&&Os(n.indent,y,s),c=O.range[2];const L=new Ie(w,O);r.options.keepSourceTokens&&(L.srcToken=l),a.items.push(L)}else{$&&s(w.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),j.comment&&(w.comment?w.comment+=`
|
|
65
|
-
`+j.comment:w.comment=j.comment);const O=new Ie(w);r.options.keepSourceTokens&&(O.srcToken=l),a.items.push(O)}}return f&&f<c&&s(f,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,c,f??c],a}function cu({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=(i==null?void 0:i.nodeClass)??Et,a=new o(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=n.offset,f=null;for(const{start:u,value:l}of n.items){const d=Ht(u,{indicator:"seq-item-ind",next:l,offset:c,onError:s,parentIndent:n.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||l)(l==null?void 0:l.type)==="block-seq"?s(d.end,"BAD_INDENT","All sequence items must start at the same column"):s(c,"MISSING_CHAR","Sequence item without - indicator");else{f=d.end,d.comment&&(a.comment=d.comment);continue}const p=l?t(r,l,d,s):e(r,d.end,u,null,d,s);r.schema.compat&&Os(n.indent,l,s),c=p.range[2],a.items.push(p)}return a.range=[n.offset,c,f??c],a}function Tr(t,e,r,n){let s="";if(t){let i=!1,o="";for(const a of t){const{source:c,type:f}=a;switch(f){case"space":i=!0;break;case"comment":{r&&!i&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=c.substring(1)||" ";s?s+=o+u:s=u,o="";break}case"newline":s&&(o+=c),i=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${f} at node end`)}e+=c.length}}return{comment:s,offset:e}}const cs="Block collections are not allowed within flow collections",fs=t=>t&&(t.type==="block-map"||t.type==="block-seq");function fu({composeNode:t,composeEmptyNode:e},r,n,s,i){var h;const o=n.start.source==="{",a=o?"flow map":"flow sequence",c=(i==null?void 0:i.nodeClass)??(o?Me:Et),f=new c(r.schema);f.flow=!0;const u=r.atRoot;u&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let l=n.offset+n.start.source.length;for(let $=0;$<n.items.length;++$){const v=n.items[$],{start:w,key:j,sep:O,value:L}=v,M=Ht(w,{flow:a,indicator:"explicit-key-ind",next:j??(O==null?void 0:O[0]),offset:l,onError:s,parentIndent:n.indent,startOnNewline:!1});if(!M.found){if(!M.anchor&&!M.tag&&!O&&!L){$===0&&M.comma?s(M.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):$<n.items.length-1&&s(M.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),M.comment&&(f.comment?f.comment+=`
|
|
66
|
-
`+M.comment:f.comment=M.comment),l=M.end;continue}!o&&r.options.strict&&Er(j)&&s(j,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if($===0)M.comma&&s(M.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(M.comma||s(M.start,"MISSING_CHAR",`Missing , between ${a} items`),M.comment){let C="";e:for(const G of w)switch(G.type){case"comma":case"space":break;case"comment":C=G.source.substring(1);break e;default:break e}if(C){let G=f.items[f.items.length-1];he(G)&&(G=G.value??G.key),G.comment?G.comment+=`
|
|
67
|
-
`+C:G.comment=C,M.comment=M.comment.substring(C.length+1)}}if(!o&&!O&&!M.found){const C=L?t(r,L,M,s):e(r,M.end,O,null,M,s);f.items.push(C),l=C.range[2],fs(L)&&s(C.range,"BLOCK_IN_FLOW",cs)}else{r.atKey=!0;const C=M.end,G=j?t(r,j,M,s):e(r,C,w,null,M,s);fs(j)&&s(G.range,"BLOCK_IN_FLOW",cs),r.atKey=!1;const te=Ht(O??[],{flow:a,indicator:"map-value-ind",next:L,offset:G.range[2],onError:s,parentIndent:n.indent,startOnNewline:!1});if(te.found){if(!o&&!M.found&&r.options.strict){if(O)for(const K of O){if(K===te.found)break;if(K.type==="newline"){s(K,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}M.start<te.found.offset-1024&&s(te.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else L&&("source"in L&&((h=L.source)==null?void 0:h[0])===":"?s(L,"MISSING_CHAR",`Missing space after : in ${a}`):s(te.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const q=L?t(r,L,te,s):te.found?e(r,te.end,O,null,te,s):null;q?fs(L)&&s(q.range,"BLOCK_IN_FLOW",cs):te.comment&&(G.comment?G.comment+=`
|
|
68
|
-
`+te.comment:G.comment=te.comment);const F=new Ie(G,q);if(r.options.keepSourceTokens&&(F.srcToken=v),o){const K=f;cc(r,K.items,G)&&s(C,"DUPLICATE_KEY","Map keys must be unique"),K.items.push(F)}else{const K=new Me(r.schema);K.flow=!0,K.items.push(F);const U=(q??G).range;K.range=[G.range[0],U[1],U[2]],f.items.push(K)}l=q?q.range[2]:te.end}}const d=o?"}":"]",[p,...m]=n.end;let y=l;if((p==null?void 0:p.source)===d)y=p.offset+p.source.length;else{const $=a[0].toUpperCase()+a.substring(1),v=u?`${$} must end with a ${d}`:`${$} in block collection must be sufficiently indented and end with a ${d}`;s(l,u?"MISSING_CHAR":"BAD_INDENT",v),p&&p.source.length!==1&&m.unshift(p)}if(m.length>0){const $=Tr(m,y,r.options.strict,s);$.comment&&(f.comment?f.comment+=`
|
|
69
|
-
`+$.comment:f.comment=$.comment),f.range=[n.offset,y,$.offset]}else f.range=[n.offset,y,y];return f}function ls(t,e,r,n,s,i){const o=r.type==="block-map"?au(t,e,r,n,i):r.type==="block-seq"?cu(t,e,r,n,i):fu(t,e,r,n,i),a=o.constructor;return s==="!"||s===a.tagName?(o.tag=a.tagName,o):(s&&(o.tag=s),o)}function lu(t,e,r,n,s){var d;const i=n.tag,o=i?e.directives.tagName(i.source,p=>s(i,"TAG_RESOLVE_FAILED",p)):null;if(r.type==="block-seq"){const{anchor:p,newlineAfterProp:m}=n,y=p&&i?p.offset>i.offset?p:i:p??i;y&&(!m||m.offset<y.offset)&&s(y,"MISSING_CHAR","Missing newline after block sequence props")}const a=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!i||!o||o==="!"||o===Me.tagName&&a==="map"||o===Et.tagName&&a==="seq")return ls(t,e,r,s,o);let c=e.schema.tags.find(p=>p.tag===o&&p.collection===a);if(!c){const p=e.schema.knownTags[o];if((p==null?void 0:p.collection)===a)e.schema.tags.push(Object.assign({},p,{default:!1})),c=p;else return p?s(i,"BAD_COLLECTION_TYPE",`${p.tag} used for ${a} collection, but expects ${p.collection??"scalar"}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),ls(t,e,r,s,o)}const f=ls(t,e,r,s,o,c),u=((d=c.resolve)==null?void 0:d.call(c,f,p=>s(i,"TAG_RESOLVE_FAILED",p),e.options))??f,l=me(u)?u:new X(u);return l.range=f.range,l.tag=o,c!=null&&c.format&&(l.format=c.format),l}function uu(t,e,r){const n=e.offset,s=du(e,t.options.strict,r);if(!s)return{value:"",type:null,comment:"",range:[n,n,n]};const i=s.mode===">"?X.BLOCK_FOLDED:X.BLOCK_LITERAL,o=e.source?pu(e.source):[];let a=o.length;for(let y=o.length-1;y>=0;--y){const h=o[y][1];if(h===""||h==="\r")a=y;else break}if(a===0){const y=s.chomp==="+"&&o.length>0?`
|
|
70
|
-
`.repeat(Math.max(1,o.length-1)):"";let h=n+s.length;return e.source&&(h+=e.source.length),{value:y,type:i,comment:s.comment,range:[n,h,h]}}let c=e.indent+s.indent,f=e.offset+s.length,u=0;for(let y=0;y<a;++y){const[h,$]=o[y];if($===""||$==="\r")s.indent===0&&h.length>c&&(c=h.length);else{h.length<c&&r(f+h.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(c=h.length),u=y,c===0&&!t.atRoot&&r(f,"BAD_INDENT","Block scalar values in collections must be indented");break}f+=h.length+$.length+1}for(let y=o.length-1;y>=a;--y)o[y][0].length>c&&(a=y+1);let l="",d="",p=!1;for(let y=0;y<u;++y)l+=o[y][0].slice(c)+`
|
|
71
|
-
`;for(let y=u;y<a;++y){let[h,$]=o[y];f+=h.length+$.length+1;const v=$[$.length-1]==="\r";if(v&&($=$.slice(0,-1)),$&&h.length<c){const j=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;r(f-$.length-(v?2:1),"BAD_INDENT",j),h=""}i===X.BLOCK_LITERAL?(l+=d+h.slice(c)+$,d=`
|
|
72
|
-
`):h.length>c||$[0]===" "?(d===" "?d=`
|
|
73
|
-
`:!p&&d===`
|
|
74
|
-
`&&(d=`
|
|
75
|
-
|
|
76
|
-
`),l+=d+h.slice(c)+$,d=`
|
|
77
|
-
`,p=!0):$===""?d===`
|
|
78
|
-
`?l+=`
|
|
79
|
-
`:d=`
|
|
80
|
-
`:(l+=d+$,d=" ",p=!1)}switch(s.chomp){case"-":break;case"+":for(let y=a;y<o.length;++y)l+=`
|
|
81
|
-
`+o[y][0].slice(c);l[l.length-1]!==`
|
|
82
|
-
`&&(l+=`
|
|
83
|
-
`);break;default:l+=`
|
|
84
|
-
`}const m=n+s.length+e.source.length;return{value:l,type:i,comment:s.comment,range:[n,m,m]}}function du({offset:t,props:e},r,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=e[0],i=s[0];let o=0,a="",c=-1;for(let d=1;d<s.length;++d){const p=s[d];if(!a&&(p==="-"||p==="+"))a=p;else{const m=Number(p);!o&&m?o=m:c===-1&&(c=t+d)}}c!==-1&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let f=!1,u="",l=s.length;for(let d=1;d<e.length;++d){const p=e[d];switch(p.type){case"space":f=!0;case"newline":l+=p.source.length;break;case"comment":r&&!f&&n(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),l+=p.source.length,u=p.source.substring(1);break;case"error":n(p,"UNEXPECTED_TOKEN",p.message),l+=p.source.length;break;default:{const m=`Unexpected token in block scalar header: ${p.type}`;n(p,"UNEXPECTED_TOKEN",m);const y=p.source;y&&typeof y=="string"&&(l+=y.length)}}}return{mode:i,indent:o,chomp:a,comment:u,length:l}}function pu(t){const e=t.split(/\n( *)/),r=e[0],n=r.match(/^( *)/),i=[n!=null&&n[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let o=1;o<e.length;o+=2)i.push([e[o],e[o+1]]);return i}function mu(t,e,r){const{offset:n,type:s,source:i,end:o}=t;let a,c;const f=(d,p,m)=>r(n+d,p,m);switch(s){case"scalar":a=X.PLAIN,c=hu(i,f);break;case"single-quoted-scalar":a=X.QUOTE_SINGLE,c=yu(i,f);break;case"double-quoted-scalar":a=X.QUOTE_DOUBLE,c=gu(i,f);break;default:return r(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}const u=n+i.length,l=Tr(o,u,e,r);return{value:c,type:a,comment:l.comment,range:[n,u,l.offset]}}function hu(t,e){let r="";switch(t[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${t[0]}`;break}case"@":case"`":{r=`reserved character ${t[0]}`;break}}return r&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),fc(t)}function yu(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),fc(t.slice(1,-1)).replace(/''/g,"'")}function fc(t){let e,r;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
85
|
-
`,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
86
|
-
`,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(t);if(!n)return t;let s=n[1],i=" ",o=e.lastIndex;for(r.lastIndex=o;n=r.exec(t);)n[1]===""?i===`
|
|
87
|
-
`?s+=i:i=`
|
|
88
|
-
`:(s+=i+n[1],i=" "),o=r.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,n=a.exec(t),s+i+((n==null?void 0:n[1])??"")}function gu(t,e){let r="";for(let n=1;n<t.length-1;++n){const s=t[n];if(!(s==="\r"&&t[n+1]===`
|
|
89
|
-
`))if(s===`
|
|
90
|
-
`){const{fold:i,offset:o}=$u(t,n);r+=i,n=o}else if(s==="\\"){let i=t[++n];const o=bu[i];if(o)r+=o;else if(i===`
|
|
91
|
-
`)for(i=t[n+1];i===" "||i===" ";)i=t[++n+1];else if(i==="\r"&&t[n+1]===`
|
|
92
|
-
`)for(i=t[++n+1];i===" "||i===" ";)i=t[++n+1];else if(i==="x"||i==="u"||i==="U"){const a=i==="x"?2:i==="u"?4:8;r+=vu(t,n+1,a,e),n+=a}else{const a=t.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),r+=a}}else if(s===" "||s===" "){const i=n;let o=t[n+1];for(;o===" "||o===" ";)o=t[++n+1];o!==`
|
|
93
|
-
`&&!(o==="\r"&&t[n+2]===`
|
|
94
|
-
`)&&(r+=n>i?t.slice(i,n+1):s)}else r+=s}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),r}function $u(t,e){let r="",n=t[e+1];for(;(n===" "||n===" "||n===`
|
|
95
|
-
`||n==="\r")&&!(n==="\r"&&t[e+2]!==`
|
|
96
|
-
`);)n===`
|
|
97
|
-
`&&(r+=`
|
|
98
|
-
`),e+=1,n=t[e+1];return r||(r=" "),{fold:r,offset:e}}const bu={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
99
|
-
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function vu(t,e,r,n){const s=t.substr(e,r),o=s.length===r&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;try{return String.fromCodePoint(o)}catch{const a=t.substr(e-2,r+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}}function lc(t,e,r,n){const{value:s,type:i,comment:o,range:a}=e.type==="block-scalar"?uu(t,e,n):mu(e,t.options.strict,n),c=r?t.directives.tagName(r.source,l=>n(r,"TAG_RESOLVE_FAILED",l)):null;let f;t.options.stringKeys&&t.atKey?f=t.schema[Ge]:c?f=wu(t.schema,s,c,r,n):e.type==="scalar"?f=_u(t,s,e,n):f=t.schema[Ge];let u;try{const l=f.resolve(s,d=>n(r??e,"TAG_RESOLVE_FAILED",d),t.options);u=ae(l)?l:new X(l)}catch(l){const d=l instanceof Error?l.message:String(l);n(r??e,"TAG_RESOLVE_FAILED",d),u=new X(s)}return u.range=a,u.source=s,i&&(u.type=i),c&&(u.tag=c),f.format&&(u.format=f.format),o&&(u.comment=o),u}function wu(t,e,r,n,s){var a;if(r==="!")return t[Ge];const i=[];for(const c of t.tags)if(!c.collection&&c.tag===r)if(c.default&&c.test)i.push(c);else return c;for(const c of i)if((a=c.test)!=null&&a.test(e))return c;const o=t.knownTags[r];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(s(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),t[Ge])}function _u({atKey:t,directives:e,schema:r},n,s,i){const o=r.tags.find(a=>{var c;return(a.default===!0||t&&a.default==="key")&&((c=a.test)==null?void 0:c.test(n))})||r[Ge];if(r.compat){const a=r.compat.find(c=>{var f;return c.default&&((f=c.test)==null?void 0:f.test(n))})??r[Ge];if(o.tag!==a.tag){const c=e.tagString(o.tag),f=e.tagString(a.tag),u=`Value may be parsed as either ${c} or ${f}`;i(s,"TAG_RESOLVE_FAILED",u,!0)}}return o}function Pu(t,e,r){if(e){r??(r=e.length);for(let n=r-1;n>=0;--n){let s=e[n];switch(s.type){case"space":case"comment":case"newline":t-=s.source.length;continue}for(s=e[++n];(s==null?void 0:s.type)==="space";)t+=s.source.length,s=e[++n];break}}return t}const Eu={composeNode:uc,composeEmptyNode:di};function uc(t,e,r,n){const s=t.atKey,{spaceBefore:i,comment:o,anchor:a,tag:c}=r;let f,u=!0;switch(e.type){case"alias":f=Su(t,e,n),(a||c)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":f=lc(t,e,c,n),a&&(f.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{f=lu(Eu,t,e,r,n),a&&(f.anchor=a.source.substring(1))}catch(l){const d=l instanceof Error?l.message:String(l);n(e,"RESOURCE_EXHAUSTION",d)}break;default:{const l=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",l),u=!1}}return f??(f=di(t,e.offset,void 0,null,r,n)),a&&f.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),s&&t.options.stringKeys&&(!ae(f)||typeof f.value!="string"||f.tag&&f.tag!=="tag:yaml.org,2002:str")&&n(c??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(f.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?f.comment=o:f.commentBefore=o),t.options.keepSourceTokens&&u&&(f.srcToken=e),f}function di(t,e,r,n,{spaceBefore:s,comment:i,anchor:o,tag:a,end:c},f){const u={type:"scalar",offset:Pu(e,r,n),indent:-1,source:""},l=lc(t,u,a,f);return o&&(l.anchor=o.source.substring(1),l.anchor===""&&f(o,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(l.spaceBefore=!0),i&&(l.comment=i,l.range[2]=c),l}function Su({options:t},{offset:e,source:r,end:n},s){const i=new ei(r.substring(1));i.source===""&&s(e,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(e+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+r.length,a=Tr(n,o,t.strict,s);return i.range=[e,o,a.offset],a.comment&&(i.comment=a.comment),i}function ju(t,e,{offset:r,start:n,value:s,end:i},o){const a=Object.assign({_directives:e},t),c=new Ar(void 0,a),f={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=Ht(n,{indicator:"doc-start",next:s??(i==null?void 0:i[0]),offset:r,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(c.directives.docStart=!0,s&&(s.type==="block-map"||s.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=s?uc(f,s,u,o):di(f,u.end,n,null,u,o);const l=c.contents.range[2],d=Tr(i,l,!1,o);return d.comment&&(c.comment=d.comment),c.range=[r,l,d.offset],c}function fr(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:r}=t;return[e,e+(typeof r=="string"?r.length:1)]}function To(t){var s;let e="",r=!1,n=!1;for(let i=0;i<t.length;++i){const o=t[i];switch(o[0]){case"#":e+=(e===""?"":n?`
|
|
100
|
-
|
|
101
|
-
`:`
|
|
102
|
-
`)+(o.substring(1)||" "),r=!0,n=!1;break;case"%":((s=t[i+1])==null?void 0:s[0])!=="#"&&(i+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:e,afterEmptyLine:n}}class Ou{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,n,s,i)=>{const o=fr(r);i?this.warnings.push(new ou(o,n,s)):this.errors.push(new pr(o,n,s))},this.directives=new Oe({version:e.version||"1.2"}),this.options=e}decorate(e,r){const{comment:n,afterEmptyLine:s}=To(this.prelude);if(n){const i=e.contents;if(r)e.comment=e.comment?`${e.comment}
|
|
103
|
-
${n}`:n;else if(s||e.directives.docStart||!i)e.commentBefore=n;else if(pe(i)&&!i.flow&&i.items.length>0){let o=i.items[0];he(o)&&(o=o.key);const a=o.commentBefore;o.commentBefore=a?`${n}
|
|
104
|
-
${a}`:n}else{const o=i.commentBefore;i.commentBefore=o?`${n}
|
|
105
|
-
${o}`:n}}if(r){for(let i=0;i<this.errors.length;++i)e.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)e.warnings.push(this.warnings[i])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:To(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,r=!1,n=-1){for(const s of e)yield*this.next(s);yield*this.end(r,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(r,n,s)=>{const i=fr(e);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const r=ju(this.options,this.directives,e,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const r=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new pr(fr(e),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new pr(fr(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const r=Tr(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const n=this.doc.comment;this.doc.comment=n?`${n}
|
|
106
|
-
${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new pr(fr(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),s=new Ar(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,r,r],this.decorate(s,!1),yield s}}}const dc="\uFEFF",pc="",mc="",ks="";function ku(t){switch(t){case dc:return"byte-order-mark";case pc:return"doc-mode";case mc:return"flow-error-end";case ks:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
107
|
-
`:case`\r
|
|
108
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Ve(t){switch(t){case void 0:case" ":case`
|
|
109
|
-
`:case"\r":case" ":return!0;default:return!1}}const Ro=new Set("0123456789ABCDEFabcdef"),Iu=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Qr=new Set(",[]{}"),Nu=new Set(` ,[]{}
|
|
110
|
-
\r `),us=t=>!t||Nu.has(t);class Au{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,r=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,r=this.buffer[e];for(;r===" "||r===" ";)r=this.buffer[++e];return!r||r==="#"||r===`
|
|
111
|
-
`?!0:r==="\r"?this.buffer[e+1]===`
|
|
112
|
-
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let r=this.buffer[e];if(this.indentNext>0){let n=0;for(;r===" ";)r=this.buffer[++n+e];if(r==="\r"){const s=this.buffer[n+e+1];if(s===`
|
|
113
|
-
`||!s&&!this.atEnd)return e+n+1}return r===`
|
|
114
|
-
`||n>=this.indentNext||!r&&!this.atEnd?e+n:-1}if(r==="-"||r==="."){const n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&Ve(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
115
|
-
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===dc&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let r=e.length,n=e.indexOf("#");for(;n!==-1;){const i=e[n-1];if(i===" "||i===" "){r=n-1;break}else n=e.indexOf("#",n+1)}for(;;){const i=e[r-1];if(i===" "||i===" ")r-=1;else break}const s=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const r=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-r),yield*this.pushNewline(),"stream"}return yield pc,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const r=this.peek(3);if((r==="---"||r==="...")&&Ve(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ve(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Ve(r)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(e[r]){case"#":yield*this.pushCount(e.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(us),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,r,n=-1;do e=yield*this.pushNewline(),e>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(e+r>0);const s=this.getLine();if(s===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&s[0]!=="#"||n===0&&(s.startsWith("---")||s.startsWith("..."))&&Ve(s[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield mc,yield*this.parseLineStart();let i=0;for(;s[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(us),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Ve(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let r=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let i=0;for(;this.buffer[r-1-i]==="\\";)i+=1;if(i%2===0)break;r=this.buffer.indexOf('"',r+1)}const n=this.buffer.substring(0,r);let s=n.indexOf(`
|
|
116
|
-
`,this.pos);if(s!==-1){for(;s!==-1;){const i=this.continueScalar(s+1);if(i===-1)break;s=n.indexOf(`
|
|
117
|
-
`,i)}s!==-1&&(r=s-(n[s-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const r=this.buffer[++e];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Ve(r)||r==="#")}*parseBlockScalar(){let e=this.pos-1,r=0,n;e:for(let i=this.pos;n=this.buffer[i];++i)switch(n){case" ":r+=1;break;case`
|
|
118
|
-
`:e=i,r=0;break;case"\r":{const o=this.buffer[i+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
|
|
119
|
-
`)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
|
|
120
|
-
`,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;for(n=this.buffer[s];n===" ";)n=this.buffer[++s];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===`
|
|
121
|
-
`;)n=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep)do{let i=e-1,o=this.buffer[i];o==="\r"&&(o=this.buffer[--i]);const a=i;for(;o===" ";)o=this.buffer[--i];if(o===`
|
|
122
|
-
`&&i>=this.pos&&i+1+r>a)e=i;else break}while(!0);return yield ks,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,s;for(;s=this.buffer[++n];)if(s===":"){const i=this.buffer[n+1];if(Ve(i)||e&&Qr.has(i))break;r=n}else if(Ve(s)){let i=this.buffer[n+1];if(s==="\r"&&(i===`
|
|
123
|
-
`?(n+=1,s=`
|
|
124
|
-
`,i=this.buffer[n+1]):r=n),i==="#"||e&&Qr.has(i))break;if(s===`
|
|
125
|
-
`){const o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&Qr.has(s))break;r=n}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield ks,yield*this.pushToIndex(r+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,r){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(us),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{const r=this.flowLevel>0,n=this.charAt(1);if(Ve(n)||r&&Qr.has(n)){r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,r=this.buffer[e];for(;!Ve(r)&&r!==">";)r=this.buffer[++e];return yield*this.pushToIndex(r===">"?e+1:e,!1)}else{let e=this.pos+1,r=this.buffer[e];for(;r;)if(Iu.has(r))r=this.buffer[++e];else if(r==="%"&&Ro.has(this.buffer[e+1])&&Ro.has(this.buffer[e+2]))r=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
|
|
126
|
-
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
|
|
127
|
-
`?yield*this.pushCount(2):0}*pushSpaces(e){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||e&&n===" ");const s=r-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=r),s}*pushUntil(e){let r=this.pos,n=this.buffer[r];for(;!e(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class Tu{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let r=0,n=this.lineStarts.length;for(;r<n;){const i=r+n>>1;this.lineStarts[i]<e?r=i+1:n=i}if(this.lineStarts[r]===e)return{line:r+1,col:1};if(r===0)return{line:0,col:e};const s=this.lineStarts[r-1];return{line:r,col:e-s+1}}}}function ct(t,e){for(let r=0;r<t.length;++r)if(t[r].type===e)return!0;return!1}function xo(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function hc(t){switch(t==null?void 0:t.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Zr(t){switch(t.type){case"document":return t.start;case"block-map":{const e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}function Rt(t){var r;if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((r=t[++e])==null?void 0:r.type)==="space";);return t.splice(e,t.length)}function wn(t,e){if(e.length<1e5)Array.prototype.push.apply(t,e);else for(let r=0;r<e.length;++r)t.push(e[r])}function Co(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!ct(e.start,"explicit-key-ind")&&!ct(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,hc(e.value)?e.value.end?wn(e.value.end,e.sep):e.value.end=e.sep:wn(e.start,e.sep),delete e.sep)}class Ru{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Au,this.onNewLine=e}*parse(e,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,r))yield*this.next(n);r||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const r=ku(e);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(e==null?void 0:e.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const r=e??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&Co(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{const s=n.items[n.items.length-1];if(s.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(s.sep)s.value=r;else{Object.assign(s,{key:r,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=n.items[n.items.length-1];s.value?n.items.push({start:[],value:r}):s.value=r;break}case"flow-collection":{const s=n.items[n.items.length-1];!s||s.value?n.items.push({start:[],key:r,sep:[]}):s.sep?s.value=r:Object.assign(s,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const s=r.items[r.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&xo(s.start)===-1&&(r.indent===0||s.start.every(i=>i.type!=="comment"||i.indent<r.indent))&&(n.type==="document"?n.end=s.start:n.items.push({start:s.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{xo(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const r=Zr(this.peek(2)),n=Rt(r);let s;e.end?(s=e.end,s.push(this.sourceToken),delete e.end):s=[this.sourceToken];const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
|
|
128
|
-
`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
|
|
129
|
-
`,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var n;const r=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const s="end"in r.value?r.value.end:void 0,i=Array.isArray(s)?s[s.length-1]:void 0;(i==null?void 0:i.type)==="comment"?s==null||s.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,e.indent)){const s=e.items[e.items.length-2],i=(n=s==null?void 0:s.value)==null?void 0:n.end;if(Array.isArray(i)){wn(i,r.start),i.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const s=!this.onKeyLine&&this.indent===e.indent,i=s&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(i&&r.sep&&!r.value){const a=[];for(let c=0;c<r.sep.length;++c){const f=r.sep[c];switch(f.type){case"newline":a.push(c);break;case"space":break;case"comment":f.indent>e.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(o=r.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":i||r.value?(o.push(this.sourceToken),e.items.push({start:o}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):i||r.value?(o.push(this.sourceToken),e.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ct(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(hc(r.key)&&!ct(r.sep,"newline")){const a=Rt(r.start),c=r.key,f=r.sep;f.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:c,sep:f}]})}else o.length>0?r.sep=r.sep.concat(o,this.sourceToken):r.sep.push(this.sourceToken);else if(ct(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const a=Rt(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||i?e.items.push({start:o,key:null,sep:[this.sourceToken]}):ct(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);i||r.value?(e.items.push({start:o,key:a,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(a):(Object.assign(r,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{const a=this.startBlockValue(e);if(a){if(a.type==="block-seq"){if(!r.explicitKey&&r.sep&&!ct(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else s&&e.items.push({start:o});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var n;const r=e.items[e.items.length-1];switch(this.type){case"newline":if(r.value){const s="end"in r.value?r.value.end:void 0,i=Array.isArray(s)?s[s.length-1]:void 0;(i==null?void 0:i.type)==="comment"?s==null||s.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,e.indent)){const s=e.items[e.items.length-2],i=(n=s==null?void 0:s.value)==null?void 0:n.end;if(Array.isArray(i)){wn(i,r.start),i.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=e.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;r.value||ct(r.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>e.indent){const s=this.startBlockValue(e);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const r=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while((n==null?void 0:n.type)==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?e.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);!r||r.value?e.items.push({start:[],key:s,sep:[]}):r.sep?this.stack.push(s):Object.assign(r,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const s=Zr(n),i=Rt(s);Co(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let r=this.source.indexOf(`
|
|
130
|
-
`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
|
|
131
|
-
`,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=Zr(e),n=Rt(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=Zr(e),n=Rt(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function xu(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new Tu||null,prettyErrors:e}}function Cu(t,e={}){const{lineCounter:r,prettyErrors:n}=xu(e),s=new Ru(r==null?void 0:r.addNewLine),i=new Ou(e);let o=null;for(const a of i.compose(s.parse(t),!0,t.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new pr(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(o.errors.forEach(No(t,r)),o.warnings.forEach(No(t,r))),o}function yc(t,e,r){let n;typeof e=="function"?n=e:r===void 0&&e&&typeof e=="object"&&(r=e);const s=Cu(t,r);if(!s)return null;if(s.warnings.forEach(i=>Ua(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function Mu(t,e,r){let n=null;if(Array.isArray(e)&&(n=e),t===void 0){const{keepUndefined:s}={};if(!s)return}return Or(t)&&!n?t.toString(r):new Ar(t,n,r).toString(r)}function Sr(t){if(t!==null){if(typeof t=="string"){if(t.trim()==="")return;try{return JSON.parse(t)}catch{const e=/^[^:]+:/.test(t),r=t.slice(0,50).trimStart().startsWith("{");return!e||r?void 0:yc(t,{maxAliasCount:1e4,merge:!0})}}return Xs(t),t}}function Rr(t,e={}){if(Xs(t))return t;const r=Sr(t);return Array.isArray(r)?r:[{isEntrypoint:!0,specification:r,filename:null,dir:"./",references:Aa(r),...e}]}function gc(t){return decodeURI(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function qu(t){return t.split("/").slice(1).map(gc)}function $c(t,e,r,n=[]){const s=structuredClone(t),i=Rr(s),o=Be(i),a=(r==null?void 0:r.specification)??o.specification;if(!Wt(a)){if(e!=null&&e.throwOnError)throw new Error(Se.NO_CONTENT);return{valid:!1,errors:n,schema:a}}return Is(a,i,o,new WeakSet,n,e),n=n.filter((c,f,u)=>f===u.findIndex(l=>l.message===c.message&&l.code===c.code)),{valid:n.length===0,errors:n,schema:a}}function Is(t,e,r,n,s,i){var c;if(t===null||n.has(t))return;n.add(t);function o(f){return Is(f.specification,e,f,n,s,i),f}const a=new Set;for(;t.$ref!==void 0;){if(a.has(t.$ref)){s.push({code:"SELF_REFERENCE",message:Se.SELF_REFERENCE.replace("%s",t.$ref)}),delete t.$ref;break}a.add(t.$ref);const u=bc(t.$ref,i,r,e,o,s);if(typeof u!="object"||u===null)break;const l=t.$ref;delete t.$ref;for(const d of Object.keys(u))t[d]===void 0&&(t[d]=u[d]);l&&((c=i==null?void 0:i.onDereference)==null||c.call(i,{schema:t,ref:l,resolved:u}))}for(const f of Object.values(t))typeof f=="object"&&f!==null&&Is(f,e,r,n,s,i)}function bc(t,e,r,n,s,i){if(typeof t!="string"){if(e!=null&&e.throwOnError)throw new Error(Se.INVALID_REFERENCE.replace("%s",t));i.push({code:"INVALID_REFERENCE",message:Se.INVALID_REFERENCE.replace("%s",t)});return}const[o,a]=t.split("#",2),c=o!==r.filename;if(o&&c){const u=n.find(l=>l.filename===o);if(!u){if(e!=null&&e.throwOnError)throw new Error(Se.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",o));i.push({code:"EXTERNAL_REFERENCE_NOT_FOUND",message:Se.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",o)});return}return a===void 0?u.specification:bc(`#${a}`,e,s(u),n,s,i)}const f=qu(a);try{return f.reduce((u,l)=>{if(typeof u!="object"||u===null||!(l in u))throw new Error(Se.INVALID_REFERENCE.replace("%s",t));return u[l]},r.specification)}catch{if(e!=null&&e.throwOnError)throw new Error(Se.INVALID_REFERENCE.replace("%s",t));i.push({code:"INVALID_REFERENCE",message:Se.INVALID_REFERENCE.replace("%s",t)})}}function vc(t,e){const r=Rr(t),n=Be(r),s=$c(r,e);return{specification:n.specification,errors:s.errors,schema:s.schema,...Ys(n.specification)}}function wc(t,e){const r=Rr(t);return{specification:_r(Be(r).specification,n=>e(n)?n:void 0)}}function Du(t){try{return JSON.parse(t),!0}catch{return!1}}function Lu(t){if(!t.includes(`
|
|
132
|
-
`))return!1;try{return yc(t,{maxAliasCount:1e4}),!0}catch{return!1}}const Vu=(t,e,r)=>{const[n,s]=t.split("#",2);if(n)return r.has(n)?s?s.startsWith("/")?`${r.get(n)}${s}`:r.get(`${n}#${s}`):r.get(n):void 0;if(s)return s.startsWith("/")?s.slice(1):r.get(`${e}#${s}`)},_n=t=>{if(t&&typeof t=="object"&&t.$id&&typeof t.$id=="string")return t.$id},Mo=t=>t.join("/"),_c=(t,e="",r=[],n=new Map,s=new WeakSet)=>{if(typeof t!="object"||t===null||s.has(t))return n;s.add(t);const i=_n(t);i&&n.set(i,Mo(r));const o=i??e;t.$anchor&&typeof t.$anchor=="string"&&n.set(`${o}#${t.$anchor}`,Mo(r));for(const a in t)typeof t[a]=="object"&&t[a]!==null&&_c(t[a],o,[...r,a],n,s);return n};function Ns(t,e){return e.reduce((r,n)=>{var i;return r.value===void 0?{context:"",value:void 0}:typeof r.value!="object"||r.value===null?{context:"",value:void 0}:{context:_n(r.value)??r.context,value:(i=r.value)==null?void 0:i[n]}},{context:"",value:t})}function ft(t){try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}}function Uu(t){if(!/^\s*(\{)/.test(t.slice(0,500)))return!1;try{const e=JSON.parse(t);return Wt(e)}catch{return!1}}function Fu(t){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(t)}function zu(t){return!ft(t)&&!Fu(t)&&!Uu(t)}let qo=()=>{var t=(()=>{var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i=(I,T)=>{for(var V in T)e(I,V,{get:T[V],enumerable:!0})},o=(I,T,V,J)=>{if(T&&typeof T=="object"||typeof T=="function")for(let Y of n(T))!s.call(I,Y)&&Y!==V&&e(I,Y,{get:()=>T[Y],enumerable:!(J=r(T,Y))||J.enumerable});return I},a=I=>o(e({},"__esModule",{value:!0}),I),c={};i(c,{default:()=>al});var f=I=>Array.isArray(I),u=I=>typeof I=="function",l=I=>I.length===0,d=I=>typeof I=="number",p=I=>typeof I=="object"&&I!==null,m=I=>I instanceof RegExp,y=I=>typeof I=="string",h=I=>I===void 0,$=I=>{const T=new Map;return V=>{const J=T.get(V);if(J)return J;const Y=I(V);return T.set(V,Y),Y}},v=(I,T,V={})=>{const J={cache:{},input:I,index:0,indexMax:0,options:V,output:[]};if(ce(T)(J)&&J.index===I.length)return J.output;throw new Error(`Failed to parse at index ${J.indexMax}`)},w=(I,T)=>f(I)?j(I,T):y(I)?L(I,T):O(I,T),j=(I,T)=>{const V={};for(const J of I){if(J.length!==1)throw new Error(`Invalid character: "${J}"`);const Y=J.charCodeAt(0);V[Y]=!0}return J=>{const Y=J.index,ie=J.input;for(;J.index<ie.length&&ie.charCodeAt(J.index)in V;)J.index+=1;const le=J.index;if(le>Y){if(!h(T)&&!J.options.silent){const Le=J.input.slice(Y,le),Je=u(T)?T(Le,ie,String(Y)):T;h(Je)||J.output.push(Je)}J.indexMax=Math.max(J.indexMax,J.index)}return!0}},O=(I,T)=>{const V=I.source,J=I.flags.replace(/y|$/,"y"),Y=new RegExp(V,J);return U(ie=>{Y.lastIndex=ie.index;const le=Y.exec(ie.input);if(le){if(!h(T)&&!ie.options.silent){const Le=u(T)?T(...le,ie.input,String(ie.index)):T;h(Le)||ie.output.push(Le)}return ie.index+=le[0].length,ie.indexMax=Math.max(ie.indexMax,ie.index),!0}else return!1})},L=(I,T)=>V=>{if(V.input.startsWith(I,V.index)){if(!h(T)&&!V.options.silent){const J=u(T)?T(I,V.input,String(V.index)):T;h(J)||V.output.push(J)}return V.index+=I.length,V.indexMax=Math.max(V.indexMax,V.index),!0}else return!1},M=(I,T,V,J)=>{const Y=ce(I);return U(K(F(ie=>{let le=0;for(;le<V;){const Le=ie.index;if(!Y(ie)||(le+=1,ie.index===Le))break}return le>=T})))},C=(I,T)=>M(I,0,1),G=(I,T)=>M(I,0,1/0),te=(I,T)=>{const V=I.map(ce);return U(K(F(J=>{for(let Y=0,ie=V.length;Y<ie;Y++)if(!V[Y](J))return!1;return!0})))},q=(I,T)=>{const V=I.map(ce);return U(K(J=>{for(let Y=0,ie=V.length;Y<ie;Y++)if(V[Y](J))return!0;return!1}))},F=(I,T=!1)=>{const V=ce(I);return J=>{const Y=J.index,ie=J.output.length,le=V(J);return(!le||T)&&(J.index=Y,J.output.length!==ie&&(J.output.length=ie)),le}},K=(I,T)=>ce(I),U=(()=>{let I=0;return T=>{const V=ce(T),J=I+=1;return Y=>{var go;var ie;if(Y.options.memoization===!1)return V(Y);const le=Y.index,Le=(ie=Y.cache)[J]||(ie[J]=new Map),Je=Le.get(le);if(Je===!1)return!1;if(d(Je))return Y.index=Je,!0;if(Je)return Y.index=Je.index,(go=Je.output)!=null&&go.length&&Y.output.push(...Je.output),!0;{const $o=Y.output.length;if(V(Y)){const bo=Y.index,vo=Y.output.length;if(vo>$o){const cl=Y.output.slice($o,vo);Le.set(le,{index:bo,output:cl})}else Le.set(le,bo);return!0}else return Le.set(le,!1),!1}}}})(),se=I=>{let T;return V=>(T||(T=ce(I())),T(V))},ce=$(I=>{if(u(I))return l(I)?se(I):I;if(y(I)||m(I))return w(I);if(f(I))return te(I);if(p(I))return q(Object.values(I));throw new Error("Invalid rule")}),ue="abcdefghijklmnopqrstuvwxyz",Ne=I=>{let T="";for(;I>0;){const V=(I-1)%26;T=ue[V]+T,I=Math.floor((I-1)/26)}return T},Ae=I=>{let T=0;for(let V=0,J=I.length;V<J;V++)T=T*26+ue.indexOf(I[V])+1;return T},R=(I,T)=>{if(T<I)return R(T,I);const V=[];for(;I<=T;)V.push(I++);return V},P=(I,T,V)=>R(I,T).map(J=>String(J).padStart(V,"0")),N=(I,T)=>R(Ae(I),Ae(T)).map(Ne),E=I=>I,g=I=>b(T=>v(T,I,{memoization:!1}).join("")),b=I=>{const T={};return V=>T[V]??(T[V]=I(V))},k=w(/^\*\*\/\*$/,".*"),z=w(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(I,T,V)=>`.*${T?"":"(?:^|/)"}${V.replaceAll(".","\\.")}`),H=w(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(I,T,V,J)=>`.*${T?"":"(?:^|/)"}${V.replaceAll(".","\\.")}(?:${J.replaceAll(",","|").replaceAll(".","\\.")})`),ne=w(/\\./,E),re=w(/[$.*+?^(){}[\]\|]/,I=>`\\${I}`),_=w(/./,E),S=w(/^(?:!!)*!(.*)$/,(I,T)=>`(?!^${yo(T)}$).*?`),A=w(/^(!!)+/,""),x=q([S,A]),B=w(/\/(\*\*\/)+/,"(?:/.+/|/)"),Z=w(/^(\*\*\/)+/,"(?:^|.*/)"),ye=w(/\/(\*\*)$/,"(?:/.*|$)"),Re=w(/\*\*/,".*"),be=q([B,Z,ye,Re]),Pe=w(/\*\/(?!\*\*\/)/,"[^/]*/"),ge=w(/\*/,"[^/]*"),Ye=q([Pe,ge]),je=w("?","[^/]"),or=w("[",E),ar=w("]",E),dt=w(/[!^]/,"^/"),cr=w(/[a-z]-[a-z]|[0-9]-[0-9]/i,E),Jr=w(/[$.*+?^(){}[\|]/,I=>`\\${I}`),Gr=w(/[^\]]/,E),ns=q([ne,Jr,cr,Gr]),po=te([or,C(dt),G(ns),ar]),Mf=w("{","(?:"),qf=w("}",")"),Df=w(/(\d+)\.\.(\d+)/,(I,T,V)=>P(+T,+V,Math.min(T.length,V.length)).join("|")),Lf=w(/([a-z]+)\.\.([a-z]+)/,(I,T,V)=>N(T,V).join("|")),Vf=w(/([A-Z]+)\.\.([A-Z]+)/,(I,T,V)=>N(T.toLowerCase(),V.toLowerCase()).join("|").toUpperCase()),Uf=q([Df,Lf,Vf]),mo=te([Mf,Uf,qf]),Ff=w("{","(?:"),zf=w("}",")"),Kf=w(",","|"),Bf=w(/[$.*+?^(){[\]\|]/,I=>`\\${I}`),Hf=w(/[^}]/,E),Jf=se(()=>ho),Gf=q([be,Ye,je,po,mo,Jf,ne,Bf,Kf,Hf]),ho=te([Ff,G(Gf),zf]),Wf=G(q([k,z,H,x,be,Ye,je,po,mo,ho,ne,re,_])),Yf=Wf,Xf=g(Yf),yo=Xf,Qf=w(/\\./,E),Zf=w(/./,E),el=w(/\*\*\*+/,"*"),tl=w(/([^/{[(!])\*\*/,(I,T)=>`${T}*`),rl=w(/(^|.)\*\*(?=[^*/)\]}])/,(I,T)=>`${T}*`),nl=G(q([Qf,el,tl,rl,Zf])),sl=nl,il=g(sl),ol=il,ss=(I,T)=>{const V=Array.isArray(I)?I:[I];if(!V.length)return!1;const J=V.map(ss.compile),Y=V.every(le=>/(\/(?:\*\*)?|\[\/\])$/.test(le)),ie=T.replace(/[\\\/]+/g,"/").replace(/\/$/,Y?"/":"");return J.some(le=>le.test(ie))};ss.compile=I=>new RegExp(`^${yo(ol(I))}$`,"s");var al=ss;return a(c)})();return t.default||t},ds;const Ku=(t,e)=>(ds||(ds=qo(),qo=null),ds(t,e)),Bu=/^[A-Za-z]:\//;function kt(t=""){return t&&t.replace(/\\/g,"/").replace(Bu,e=>e.toUpperCase())}const Hu=/^[/\\]{2}/,Ju=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Pc=/^[A-Za-z]:$/,Do=/^\/([A-Za-z]:)?$/,Gu=/.(\.[^./]+|\.)$/,Wu=/^[/\\]|^[a-zA-Z]:[/\\]/,Yu="/",pi=function(t){if(t.length===0)return".";t=kt(t);const e=t.match(Hu),r=Jt(t),n=t[t.length-1]==="/";return t=mi(t,!r),t.length===0?r?"/":n?"./":".":(n&&(t+="/"),Pc.test(t)&&(t+="/"),e?r?`//${t}`:`//./${t}`:r&&!Jt(t)?`/${t}`:t)},Xu=function(...t){let e="";for(const r of t)if(r)if(e.length>0){const n=e[e.length-1]==="/",s=r[0]==="/";n&&s?e+=r.slice(1):e+=n||s?r:`/${r}`}else e+=r;return pi(e)};function Qu(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Pn=function(...t){t=t.map(n=>kt(n));let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){const s=n>=0?t[n]:Qu();!s||s.length===0||(e=`${s}/${e}`,r=Jt(s))}return e=mi(e,!r),r&&!Jt(e)?`/${e}`:e.length>0?e:"."};function mi(t,e){let r="",n=0,s=-1,i=0,o=null;for(let a=0;a<=t.length;++a){if(a<t.length)o=t[a];else{if(o==="/")break;o="/"}if(o==="/"){if(!(s===a-1||i===1))if(i===2){if(r.length<2||n!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const c=r.lastIndexOf("/");c===-1?(r="",n=0):(r=r.slice(0,c),n=r.length-1-r.lastIndexOf("/")),s=a,i=0;continue}else if(r.length>0){r="",n=0,s=a,i=0;continue}}e&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${t.slice(s+1,a)}`:r=t.slice(s+1,a),n=a-s-1;s=a,i=0}else o==="."&&i!==-1?++i:i=-1}return r}const Jt=function(t){return Ju.test(t)},Zu=function(t){return kt(t)},Ec=function(t){if(t==="..")return"";const e=Gu.exec(kt(t));return e&&e[1]||""},ed=function(t,e){const r=Pn(t).replace(Do,"$1").split("/"),n=Pn(e).replace(Do,"$1").split("/");if(n[0][1]===":"&&r[0][1]===":"&&r[0]!==n[0])return n.join("/");const s=[...r];for(const i of s){if(n[0]!==i)break;r.shift(),n.shift()}return[...r.map(()=>".."),...n].join("/")},Sc=function(t){const e=kt(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Pc.test(e[0])&&(e[0]+="/"),e.join("/")||(Jt(t)?"/":".")},td=function(t){const e=t.ext?t.ext.startsWith(".")?t.ext:`.${t.ext}`:"",r=[t.root,t.dir,t.base??(t.name??"")+e].filter(Boolean);return kt(t.root?Pn(...r):r.join("/"))},jc=function(t,e){const r=kt(t).split("/");let n="";for(let s=r.length-1;s>=0;s--){const i=r[s];if(i){n=i;break}}return e&&n.endsWith(e)?n.slice(0,-e.length):n},rd=function(t){var s,i;const e=((i=(s=Wu.exec(t))==null?void 0:s[0])==null?void 0:i.replace(/\\/g,"/"))||"",r=jc(t),n=Ec(r);return{root:e,dir:Sc(t),base:r,ext:n,name:r.slice(0,r.length-n.length)}},nd=(t,e)=>Ku(e,pi(t)),Lo={__proto__:null,basename:jc,dirname:Sc,extname:Ec,format:td,isAbsolute:Jt,join:Xu,matchesGlob:nd,normalize:pi,normalizeString:mi,parse:rd,relative:ed,resolve:Pn,sep:Yu,toNamespacedPath:Zu},sd=(()=>{var t;return((t=globalThis.process)==null?void 0:t.platform)==="win32"?";":":"})(),id={posix:void 0,win32:void 0},Oc=(t=sd)=>new Proxy(Lo,{get(e,r){return r==="delimiter"?t:r==="posix"?we:r==="win32"?od:id[r]||Lo[r]}}),we=Oc(":"),od=Oc(";"),ad=(t,e)=>{if(ft(e))return e;if(ft(t)){const r=new URL(t);return r.pathname=we.posix.resolve("/",we.dirname(r.pathname),e),r.toString()}return we.resolve(we.dirname(t),e)},cd=new Set(["__proto__","prototype","constructor"]),fd=(t,e)=>{if(cd.has(t)){const r=`Prototype pollution key detected: "${t}"`;throw new Error(r)}};function ld(t){return decodeURI(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function hi(t){return t.split("/").slice(1).map(ld)}function As(t,e,r){if(e==="")throw new Error("Cannot set value at root ('') pointer");const n=hi(e);n.forEach(i=>fd(i));let s=t;for(let i=0;i<n.length;i++){const o=n[i],a=i===n.length-1,c=n[i+1],f=/^\d+$/.test(c??"");a?s[o]=r:((!(o in s)||typeof s[o]!="object")&&(s[o]=f?[]:{}),s=s[o])}}const ud=(t,e)=>{if(ft(t)&&ft(e)){const s=new URL(t),i=new URL(e);if(s.origin!==i.origin)return t;const o=we.dirname(we.posix.resolve("/",i.pathname)),a=we.posix.resolve("/",s.pathname);return we.posix.relative(o,a)}if(ft(e)){const s=new URL(e),i=we.dirname(we.posix.resolve("/",s.pathname));return s.pathname=we.posix.relative(i,we.posix.resolve("/",t)),s.toString()}if(ft(t))return t;const r=we.dirname(we.resolve(e)),n=we.resolve(t);return we.relative(r,n)},dd=t=>{let r=0,n=0;const s=t.length,i=s&15,o=s-i,a=2277735313,c=1291169091,f=1390208809,u=944331445;for(let l=0;l<o;l+=16){let d=t.charCodeAt(l)&255|(t.charCodeAt(l+1)&255)<<8|(t.charCodeAt(l+2)&255)<<16|(t.charCodeAt(l+3)&255)<<24,p=t.charCodeAt(l+4)&255|(t.charCodeAt(l+5)&255)<<8|(t.charCodeAt(l+6)&255)<<16|(t.charCodeAt(l+7)&255)<<24,m=t.charCodeAt(l+8)&255|(t.charCodeAt(l+9)&255)<<8|(t.charCodeAt(l+10)&255)<<16|(t.charCodeAt(l+11)&255)<<24,y=t.charCodeAt(l+12)&255|(t.charCodeAt(l+13)&255)<<8|(t.charCodeAt(l+14)&255)<<16|(t.charCodeAt(l+15)&255)<<24;d=Math.imul(d,a),d=d<<15|d>>>17,d=Math.imul(d,c),r^=d,r=r<<13|r>>>19,r=Math.imul(r,5)+3864292196,p=Math.imul(p,c),p=p<<16|p>>>16,p=Math.imul(p,f),n^=p,n=n<<17|n>>>15,n=Math.imul(n,5)+461845907,m=Math.imul(m,f),m=m<<17|m>>>15,m=Math.imul(m,u),r^=m,r=r<<15|r>>>17,r=Math.imul(r,5)+1390208809,y=Math.imul(y,u),y=y<<18|y>>>14,y=Math.imul(y,a),n^=y,n=n<<13|n>>>19,n=Math.imul(n,5)+944331445}if(i>0){let l=0,d=0,p=0,m=0;i>=15&&(m^=(t.charCodeAt(o+14)&255)<<16),i>=14&&(m^=(t.charCodeAt(o+13)&255)<<8),i>=13&&(m^=t.charCodeAt(o+12)&255,m=Math.imul(m,u),m=m<<18|m>>>14,m=Math.imul(m,a),n^=m),i>=12&&(p^=(t.charCodeAt(o+11)&255)<<24),i>=11&&(p^=(t.charCodeAt(o+10)&255)<<16),i>=10&&(p^=(t.charCodeAt(o+9)&255)<<8),i>=9&&(p^=t.charCodeAt(o+8)&255,p=Math.imul(p,f),p=p<<17|p>>>15,p=Math.imul(p,u),r^=p),i>=8&&(d^=(t.charCodeAt(o+7)&255)<<24),i>=7&&(d^=(t.charCodeAt(o+6)&255)<<16),i>=6&&(d^=(t.charCodeAt(o+5)&255)<<8),i>=5&&(d^=t.charCodeAt(o+4)&255,d=Math.imul(d,c),d=d<<16|d>>>16,d=Math.imul(d,f),n^=d),i>=4&&(l^=(t.charCodeAt(o+3)&255)<<24),i>=3&&(l^=(t.charCodeAt(o+2)&255)<<16),i>=2&&(l^=(t.charCodeAt(o+1)&255)<<8),i>=1&&(l^=t.charCodeAt(o)&255,l=Math.imul(l,a),l=l<<15|l>>>17,l=Math.imul(l,c),r^=l)}return r^=s,n^=s,r+=n,n+=r,r^=r>>>16,r=Math.imul(r,2246822507),r^=r>>>13,r=Math.imul(r,3266489909),r^=r>>>16,n^=n>>>16,n=Math.imul(n,2246822507),n^=n>>>13,n=Math.imul(n,3266489909),n^=n>>>16,r+=n,n+=r,(r>>>0).toString(16).padStart(8,"0")+(n>>>0).toString(16).padStart(8,"0")};function pd(t){const r=dd(t).substring(0,7);return r.match(/^\d+$/)?"a"+r.substring(1):r}async function kc(t,e,r,n,s=0){if(s>=100)throw"Can not generate unique compressed values";const o=await t(n??e);return r[o]!==void 0&&r[o]!==e?kc(t,e,r,o,s+1):(r[o]=e,o)}const md=(t,e)=>{const r=Object.fromEntries(Object.entries(e).map(([n,s])=>[s,n]));return{generate:async n=>{const s=r[n];if(s)return s;const i=await kc(t,n,e),o=i.match(/^\d+$/)?`a${i}`:i;return r[n]=o,o}}},hd=t=>Wt(t)&&"$ref"in t&&typeof t.$ref=="string";function Ic(t){return t.startsWith("#")}function Vo(t,e){const r=e.find(n=>n.validate(t));return r?r.exec(t):Promise.resolve({ok:!1})}function Ts(t,e){if(!Ic(t))throw"Please provide an internal ref";return`#/${e.map(In).join("/")}${t.substring(1)}`}function Rs(t,e){if(Array.isArray(t)){t.forEach(r=>Rs(r,e));return}if(Wt(t)&&(Object.values(t).forEach(r=>Rs(r,e)),typeof t=="object"&&"$ref"in t&&typeof t.$ref=="string")){const r=t.$ref;if(!Ic(r))return;t.$ref=Ts(r,e)}}const xs=(t,e,r,n,s,i=!1,o=new Set)=>{const a=Ns(e,hi(r)).value;if(o.has(a))return;o.add(a),As(t,r,a);const c=f=>{if(!(!f||typeof f!="object")){"$ref"in f&&typeof f.$ref=="string"&&(f.$ref.startsWith(`#/${n}/${In(s)}`)||i)&&xs(t,e,f.$ref.substring(1),n,s,i,o);for(const u of Object.values(f))c(u)}};c(a)},ps={externalDocuments:"x-ext",externalDocumentsMappings:"x-ext-urls"};async function yd(t,e){e.externalDocumentsKey=e.externalDocumentsKey??ps.externalDocuments,e.externalDocumentsMappingsKey=e.externalDocumentsMappingsKey??ps.externalDocumentsMappings;const r=e.cache??new Map,n=e.plugins.filter(h=>h.type==="loader"),s=e.plugins.filter(h=>h.type==="lifecycle"),o=await(async()=>{if(typeof t!="string")return t;const h=await Vo(t,n);if(h.ok&&typeof h.data=="object")return h.data;throw new Error("Failed to resolve input: Please provide a valid string value or pass a loader to process the input")})(),a=e.root??o,c=_c(a),f=e.root!==void 0&&e.root!==o||e.depth!==void 0,u=e.visitedNodes??new Set,d=(()=>{const h=_n(a);return h||(e.origin?e.origin:typeof t!="string"?"/":ft(t)||zu(t)?t:"/")})();a[e.externalDocumentsMappingsKey]===void 0&&(a[e.externalDocumentsMappingsKey]={});const{generate:p}=md(e.compress??pd,a[e.externalDocumentsMappingsKey]),m=async(h,...$)=>{var w;const v=(w=e.hooks)==null?void 0:w[h];v&&await v(...$);for(const j of s){const O=j[h];O&&await O(...$)}},y=async(h,$=d,v=!1,w=0,j=[],O=null)=>{if(e.depth!==void 0&&w>e.depth||!Wt(h)&&!Array.isArray(h)||u.has(h))return;u.add(h);const L={path:j,resolutionCache:r,parentNode:O,rootNode:a,loaders:n};await m("onBeforeNodeProcess",h,L);const M=_n(h);if(hd(h)){const C=h.$ref,G="$global"in h&&typeof h.$global=="boolean"&&h.$global,te=Vu(C,M??$,c);if(te!==void 0){if(f){const Ne=hi(`/${te}`),Ae=Ne.length>0?Ns(a,Ne.slice(0,-1)).value:void 0,R=Ns(a,Ne);await y(R.value,R.context,v,w+1,Ne,Ae)}await m("onAfterNodeProcess",h,L);return}const[q,F=""]=C.split("#",2),K=ad(M??$,q),U=ud(K,d),se=await p(U),ce=r.has(U);ce||r.set(U,Vo(K,n)),await m("onResolveStart",h);const ue=await r.get(U);if(ue.ok){ce||(G||Rs(ue.data,[ps.externalDocuments,se]),await y(ue.data,G?$:K,G,w+1,[e.externalDocumentsKey,se,a[e.externalDocumentsMappingsKey]]),As(a,`/${e.externalDocumentsMappingsKey}/${In(se)}`,U)),e.treeShake===!0?xs(a,{[e.externalDocumentsKey]:{[se]:ue.data}},Ts(`#${F}`,[e.externalDocumentsKey,se]).substring(1),e.externalDocumentsKey,se):ce||As(a,`/${e.externalDocumentsKey}/${se}`,ue.data),h.$ref=Ts(`#${F}`,[e.externalDocumentsKey,se]),await m("onResolveSuccess",h),await m("onAfterNodeProcess",h,L);return}return await m("onResolveError",h),await m("onAfterNodeProcess",h,L),console.warn(`Failed to resolve external reference "${K}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`)}for(const C in h)C===e.externalDocumentsKey||C===e.externalDocumentsMappingsKey||await y(h[C],M??$,v,w+1,[...j,C],h);await m("onAfterNodeProcess",h,L)};return await y(o),!e.urlMap&&!f&&delete a[e.externalDocumentsMappingsKey],o}const Nc=(t,e)=>{for(const r in e)if(!(r in t))t[r]=e[r];else{const n=t[r],s=e[r];typeof n=="object"&&n!==null&&typeof s=="object"&&s!==null?Nc(n,s):t[r]=s}return t};function gd(t,e){const r=Ea(t);return ka(r)}function yi(t){return t?{specification:gd(Xs(t)?Be(t).specification:Sr(t)),version:"3.1"}:{specification:null,version:"3.1"}}const $d=(t,e)=>{const r=[];for(const n of t)e.has(n)&&r.push(n);return r},en=(t,e)=>Array.isArray(t)?t.length?t:e:typeof t=="object"&&t!==null?Object.keys(t).length?t:e:t??e,Uo=t=>{const e={},r=[];for(const n of t)if(typeof n=="object")for(const[s,i]of Object.entries(n)){if(!e[s]){e[s]=i;continue}const o=$d(new Set(Object.keys(e[s])),new Set(Object.keys(i)));e[s]={...e[s],...i},o.forEach(a=>r.push({method:a,path:s}))}return{paths:e,conflicts:r}},bd=t=>{const e=new Set,r=[];for(const n of t)for(const s of n)e.has(s.name)||r.push(s),e.add(s.name);return r},vd=t=>{const e=new Set,r=[];for(const n of t)for(const s of n)e.has(s.url)||r.push(s),e.add(s.url);return r},wd=t=>{const e={},r=[];for(const n of t)if(typeof n=="object")for(const[s,i]of Object.entries(n))for(const[o,a]of Object.entries(i))e[s]||(e[s]={}),e[s][o]?r.push({componentType:s,name:o}):e[s][o]=a;return{components:e,conflicts:r}},_d=async(t,e)=>{for(const r of t.keys())await yd(t[r],{treeShake:!1,urlMap:!1,plugins:[{type:"lifecycle",onBeforeNodeProcess:n=>{const s=n.$ref;if(typeof s!="string"||!s.startsWith("#/components/"))return;const i=s.split("/");i.length<4||(i[3]=`${e[r]??""}${i[3]}`,n.$ref=i.join("/"))}},{type:"lifecycle",onBeforeNodeProcess:(n,s)=>{if(s.path.length===2&&s.path[0]==="components"){const i=e[r];Object.keys(n).forEach(o=>{const a=`${i??""}${o}`,c=n[o];delete n[o],n[a]=c})}}}]})},Pd=t=>t,Ed=async(t,e)=>{const r=t.map(m=>yi(m).specification);e!=null&&e.prefixComponents&&await _d(r,e.prefixComponents),r.reverse();const n=r.reduce((m,y)=>y.info&&typeof y.info=="object"?Nc(m,y.info):m,{}),{paths:s,conflicts:i}=Uo(r.map(m=>m.paths??{})),{paths:o,conflicts:a}=Uo(r.map(m=>m.webhooks??{})),c=bd(r.map(m=>m.tags??[])),f=vd(r.map(m=>m.servers??[])),{components:u,conflicts:l}=wd(r.map(m=>m.components??{})),d=r.reduce((m,y)=>({...m,...y}),{}),p=[...i.map(m=>({type:"path",...m})),...a.map(m=>({type:"webhook",...m})),...l.map(m=>({type:"component",...m}))];return p.length?{ok:!1,conflicts:p}:{ok:!0,document:Pd({...d,info:n,paths:s,webhooks:en(o,void 0),tags:en(c,void 0),servers:en(f,void 0),components:en(u,void 0)})}};async function gi(t,e){var c,f,u,l,d,p;const r=[];if((c=e==null?void 0:e.filesystem)!=null&&c.find(m=>m.filename===t))return{specification:(f=Be(e.filesystem))==null?void 0:f.specification,filesystem:e.filesystem,errors:r};const n=(u=e==null?void 0:e.plugins)==null?void 0:u.find(m=>m.check(t));let s=Sr(t);if(n)try{s=Sr(await n.get(t))}catch{if(e!=null&&e.throwOnError)throw new Error(Se.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",t));return r.push({code:"EXTERNAL_REFERENCE_NOT_FOUND",message:Se.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",t)}),{specification:null,filesystem:[],errors:r}}if(s===void 0){if(e!=null&&e.throwOnError)throw new Error("No content to load");return r.push({code:"NO_CONTENT",message:Se.NO_CONTENT}),{specification:null,filesystem:[],errors:r}}let i=Rr(s,{filename:(e==null?void 0:e.filename)??null});const a=(e!=null&&e.filename?i.find(m=>m.filename===(e==null?void 0:e.filename)):Be(i)).references??Aa(s);if(a.length===0)return{specification:(l=Be(i))==null?void 0:l.specification,filesystem:i,errors:r};for(const m of a){const y=(d=e==null?void 0:e.plugins)==null?void 0:d.find(w=>w.check(m));if(!y)continue;const h=y.check(m)&&y.resolvePath?y.resolvePath(t,m):m;if(i.find(w=>w.filename===m))continue;const{filesystem:$,errors:v}=await gi(h,{...e,filename:m});r.push(...v),i=[...i,...$.map(w=>({...w,isEntrypoint:!1}))]}return{specification:(p=Be(i))==null?void 0:p.specification,filesystem:i,errors:r}}var Cs={exports:{}},Pt={},Xe={},pt={},xr={},W={},jr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(v){if(super(),!t.IDENTIFIER.test(v))throw new Error("CodeGen: name must be a valid identifier");this.str=v}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(v){super(),this._items=typeof v=="string"?[v]:v}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const v=this._items[0];return v===""||v==='""'}get str(){var v;return(v=this._str)!==null&&v!==void 0?v:this._str=this._items.reduce((w,j)=>`${w}${j}`,"")}get names(){var v;return(v=this._names)!==null&&v!==void 0?v:this._names=this._items.reduce((w,j)=>(j instanceof r&&(w[j.str]=(w[j.str]||0)+1),w),{})}}t._Code=n,t.nil=new n("");function s($,...v){const w=[$[0]];let j=0;for(;j<v.length;)a(w,v[j]),w.push($[++j]);return new n(w)}t._=s;const i=new n("+");function o($,...v){const w=[p($[0])];let j=0;for(;j<v.length;)w.push(i),a(w,v[j]),w.push(i,p($[++j]));return c(w),new n(w)}t.str=o;function a($,v){v instanceof n?$.push(...v._items):v instanceof r?$.push(v):$.push(l(v))}t.addCodeArg=a;function c($){let v=1;for(;v<$.length-1;){if($[v]===i){const w=f($[v-1],$[v+1]);if(w!==void 0){$.splice(v-1,3,w);continue}$[v++]="+"}v++}}function f($,v){if(v==='""')return $;if($==='""')return v;if(typeof $=="string")return v instanceof r||$[$.length-1]!=='"'?void 0:typeof v!="string"?`${$.slice(0,-1)}${v}"`:v[0]==='"'?$.slice(0,-1)+v.slice(1):void 0;if(typeof v=="string"&&v[0]==='"'&&!($ instanceof r))return`"${$}${v.slice(1)}`}function u($,v){return v.emptyStr()?$:$.emptyStr()?v:o`${$}${v}`}t.strConcat=u;function l($){return typeof $=="number"||typeof $=="boolean"||$===null?$:p(Array.isArray($)?$.join(","):$)}function d($){return new n(p($))}t.stringify=d;function p($){return JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=p;function m($){return typeof $=="string"&&t.IDENTIFIER.test($)?new n(`.${$}`):s`[${$}]`}t.getProperty=m;function y($){if(typeof $=="string"&&t.IDENTIFIER.test($))return new n(`${$}`);throw new Error(`CodeGen: invalid export name: ${$}, use explicit $id name mapping`)}t.getEsmExportName=y;function h($){return new n($.toString())}t.regexpCode=h})(jr);var Ms={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=jr;class r extends Error{constructor(f){super(`CodeGen: "code" for ${f} not defined`),this.value=f.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class s{constructor({prefixes:f,parent:u}={}){this._names={},this._prefixes=f,this._parent=u}toName(f){return f instanceof e.Name?f:this.name(f)}name(f){return new e.Name(this._newName(f))}_newName(f){const u=this._names[f]||this._nameGroup(f);return`${f}${u.index++}`}_nameGroup(f){var u,l;if(!((l=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||l===void 0)&&l.has(f)||this._prefixes&&!this._prefixes.has(f))throw new Error(`CodeGen: prefix "${f}" is not allowed in this scope`);return this._names[f]={prefix:f,index:0}}}t.Scope=s;class i extends e.Name{constructor(f,u){super(u),this.prefix=f}setValue(f,{property:u,itemIndex:l}){this.value=f,this.scopePath=(0,e._)`.${new e.Name(u)}[${l}]`}}t.ValueScopeName=i;const o=(0,e._)`\n`;class a extends s{constructor(f){super(f),this._values={},this._scope=f.scope,this.opts={...f,_n:f.lines?o:e.nil}}get(){return this._scope}name(f){return new i(f,this._newName(f))}value(f,u){var l;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const d=this.toName(f),{prefix:p}=d,m=(l=u.key)!==null&&l!==void 0?l:u.ref;let y=this._values[p];if(y){const v=y.get(m);if(v)return v}else y=this._values[p]=new Map;y.set(m,d);const h=this._scope[p]||(this._scope[p]=[]),$=h.length;return h[$]=u.ref,d.setValue(u,{property:p,itemIndex:$}),d}getValue(f,u){const l=this._values[f];if(l)return l.get(u)}scopeRefs(f,u=this._values){return this._reduceValues(u,l=>{if(l.scopePath===void 0)throw new Error(`CodeGen: name "${l}" has no value`);return(0,e._)`${f}${l.scopePath}`})}scopeCode(f=this._values,u,l){return this._reduceValues(f,d=>{if(d.value===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return d.value.code},u,l)}_reduceValues(f,u,l={},d){let p=e.nil;for(const m in f){const y=f[m];if(!y)continue;const h=l[m]=l[m]||new Map;y.forEach($=>{if(h.has($))return;h.set($,n.Started);let v=u($);if(v){const w=this.opts.es5?t.varKinds.var:t.varKinds.const;p=(0,e._)`${p}${w} ${$} = ${v};${this.opts._n}`}else if(v=d==null?void 0:d($))p=(0,e._)`${p}${v}${this.opts._n}`;else throw new r($);h.set($,n.Completed)})}return p}}t.ValueScope=a})(Ms);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=jr,r=Ms;var n=jr;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var s=Ms;Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class i{optimizeNodes(){return this}optimizeNames(g,b){return this}}class o extends i{constructor(g,b,k){super(),this.varKind=g,this.name=b,this.rhs=k}render({es5:g,_n:b}){const k=g?r.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${k} ${this.name}${z};`+b}optimizeNames(g,b){if(g[this.name.str])return this.rhs&&(this.rhs=U(this.rhs,g,b)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends i{constructor(g,b,k){super(),this.lhs=g,this.rhs=b,this.sideEffects=k}render({_n:g}){return`${this.lhs} = ${this.rhs};`+g}optimizeNames(g,b){if(!(this.lhs instanceof e.Name&&!g[this.lhs.str]&&!this.sideEffects))return this.rhs=U(this.rhs,g,b),this}get names(){const g=this.lhs instanceof e.Name?{}:{...this.lhs.names};return K(g,this.rhs)}}class c extends a{constructor(g,b,k,z){super(g,k,z),this.op=b}render({_n:g}){return`${this.lhs} ${this.op}= ${this.rhs};`+g}}class f extends i{constructor(g){super(),this.label=g,this.names={}}render({_n:g}){return`${this.label}:`+g}}class u extends i{constructor(g){super(),this.label=g,this.names={}}render({_n:g}){return`break${this.label?` ${this.label}`:""};`+g}}class l extends i{constructor(g){super(),this.error=g}render({_n:g}){return`throw ${this.error};`+g}get names(){return this.error.names}}class d extends i{constructor(g){super(),this.code=g}render({_n:g}){return`${this.code};`+g}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(g,b){return this.code=U(this.code,g,b),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class p extends i{constructor(g=[]){super(),this.nodes=g}render(g){return this.nodes.reduce((b,k)=>b+k.render(g),"")}optimizeNodes(){const{nodes:g}=this;let b=g.length;for(;b--;){const k=g[b].optimizeNodes();Array.isArray(k)?g.splice(b,1,...k):k?g[b]=k:g.splice(b,1)}return g.length>0?this:void 0}optimizeNames(g,b){const{nodes:k}=this;let z=k.length;for(;z--;){const H=k[z];H.optimizeNames(g,b)||(se(g,H.names),k.splice(z,1))}return k.length>0?this:void 0}get names(){return this.nodes.reduce((g,b)=>F(g,b.names),{})}}class m extends p{render(g){return"{"+g._n+super.render(g)+"}"+g._n}}class y extends p{}class h extends m{}h.kind="else";class $ extends m{constructor(g,b){super(b),this.condition=g}render(g){let b=`if(${this.condition})`+super.render(g);return this.else&&(b+="else "+this.else.render(g)),b}optimizeNodes(){super.optimizeNodes();const g=this.condition;if(g===!0)return this.nodes;let b=this.else;if(b){const k=b.optimizeNodes();b=this.else=Array.isArray(k)?new h(k):k}if(b)return g===!1?b instanceof $?b:b.nodes:this.nodes.length?this:new $(ce(g),b instanceof $?[b]:b.nodes);if(!(g===!1||!this.nodes.length))return this}optimizeNames(g,b){var k;if(this.else=(k=this.else)===null||k===void 0?void 0:k.optimizeNames(g,b),!!(super.optimizeNames(g,b)||this.else))return this.condition=U(this.condition,g,b),this}get names(){const g=super.names;return K(g,this.condition),this.else&&F(g,this.else.names),g}}$.kind="if";class v extends m{}v.kind="for";class w extends v{constructor(g){super(),this.iteration=g}render(g){return`for(${this.iteration})`+super.render(g)}optimizeNames(g,b){if(super.optimizeNames(g,b))return this.iteration=U(this.iteration,g,b),this}get names(){return F(super.names,this.iteration.names)}}class j extends v{constructor(g,b,k,z){super(),this.varKind=g,this.name=b,this.from=k,this.to=z}render(g){const b=g.es5?r.varKinds.var:this.varKind,{name:k,from:z,to:H}=this;return`for(${b} ${k}=${z}; ${k}<${H}; ${k}++)`+super.render(g)}get names(){const g=K(super.names,this.from);return K(g,this.to)}}class O extends v{constructor(g,b,k,z){super(),this.loop=g,this.varKind=b,this.name=k,this.iterable=z}render(g){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(g)}optimizeNames(g,b){if(super.optimizeNames(g,b))return this.iterable=U(this.iterable,g,b),this}get names(){return F(super.names,this.iterable.names)}}class L extends m{constructor(g,b,k){super(),this.name=g,this.args=b,this.async=k}render(g){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(g)}}L.kind="func";class M extends p{render(g){return"return "+super.render(g)}}M.kind="return";class C extends m{render(g){let b="try"+super.render(g);return this.catch&&(b+=this.catch.render(g)),this.finally&&(b+=this.finally.render(g)),b}optimizeNodes(){var g,b;return super.optimizeNodes(),(g=this.catch)===null||g===void 0||g.optimizeNodes(),(b=this.finally)===null||b===void 0||b.optimizeNodes(),this}optimizeNames(g,b){var k,z;return super.optimizeNames(g,b),(k=this.catch)===null||k===void 0||k.optimizeNames(g,b),(z=this.finally)===null||z===void 0||z.optimizeNames(g,b),this}get names(){const g=super.names;return this.catch&&F(g,this.catch.names),this.finally&&F(g,this.finally.names),g}}class G extends m{constructor(g){super(),this.error=g}render(g){return`catch(${this.error})`+super.render(g)}}G.kind="catch";class te extends m{render(g){return"finally"+super.render(g)}}te.kind="finally";class q{constructor(g,b={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...b,_n:b.lines?`
|
|
133
|
-
`:""},this._extScope=g,this._scope=new r.Scope({parent:g}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(g){return this._scope.name(g)}scopeName(g){return this._extScope.name(g)}scopeValue(g,b){const k=this._extScope.value(g,b);return(this._values[k.prefix]||(this._values[k.prefix]=new Set)).add(k),k}getScopeValue(g,b){return this._extScope.getValue(g,b)}scopeRefs(g){return this._extScope.scopeRefs(g,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(g,b,k,z){const H=this._scope.toName(b);return k!==void 0&&z&&(this._constants[H.str]=k),this._leafNode(new o(g,H,k)),H}const(g,b,k){return this._def(r.varKinds.const,g,b,k)}let(g,b,k){return this._def(r.varKinds.let,g,b,k)}var(g,b,k){return this._def(r.varKinds.var,g,b,k)}assign(g,b,k){return this._leafNode(new a(g,b,k))}add(g,b){return this._leafNode(new c(g,t.operators.ADD,b))}code(g){return typeof g=="function"?g():g!==e.nil&&this._leafNode(new d(g)),this}object(...g){const b=["{"];for(const[k,z]of g)b.length>1&&b.push(","),b.push(k),(k!==z||this.opts.es5)&&(b.push(":"),(0,e.addCodeArg)(b,z));return b.push("}"),new e._Code(b)}if(g,b,k){if(this._blockNode(new $(g)),b&&k)this.code(b).else().code(k).endIf();else if(b)this.code(b).endIf();else if(k)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(g){return this._elseNode(new $(g))}else(){return this._elseNode(new h)}endIf(){return this._endBlockNode($,h)}_for(g,b){return this._blockNode(g),b&&this.code(b).endFor(),this}for(g,b){return this._for(new w(g),b)}forRange(g,b,k,z,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const ne=this._scope.toName(g);return this._for(new j(H,ne,b,k),()=>z(ne))}forOf(g,b,k,z=r.varKinds.const){const H=this._scope.toName(g);if(this.opts.es5){const ne=b instanceof e.Name?b:this.var("_arr",b);return this.forRange("_i",0,(0,e._)`${ne}.length`,re=>{this.var(H,(0,e._)`${ne}[${re}]`),k(H)})}return this._for(new O("of",z,H,b),()=>k(H))}forIn(g,b,k,z=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(g,(0,e._)`Object.keys(${b})`,k);const H=this._scope.toName(g);return this._for(new O("in",z,H,b),()=>k(H))}endFor(){return this._endBlockNode(v)}label(g){return this._leafNode(new f(g))}break(g){return this._leafNode(new u(g))}return(g){const b=new M;if(this._blockNode(b),this.code(g),b.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(M)}try(g,b,k){if(!b&&!k)throw new Error('CodeGen: "try" without "catch" and "finally"');const z=new C;if(this._blockNode(z),this.code(g),b){const H=this.name("e");this._currNode=z.catch=new G(H),b(H)}return k&&(this._currNode=z.finally=new te,this.code(k)),this._endBlockNode(G,te)}throw(g){return this._leafNode(new l(g))}block(g,b){return this._blockStarts.push(this._nodes.length),g&&this.code(g).endBlock(b),this}endBlock(g){const b=this._blockStarts.pop();if(b===void 0)throw new Error("CodeGen: not in self-balancing block");const k=this._nodes.length-b;if(k<0||g!==void 0&&k!==g)throw new Error(`CodeGen: wrong number of nodes: ${k} vs ${g} expected`);return this._nodes.length=b,this}func(g,b=e.nil,k,z){return this._blockNode(new L(g,b,k)),z&&this.code(z).endFunc(),this}endFunc(){return this._endBlockNode(L)}optimize(g=1){for(;g-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(g){return this._currNode.nodes.push(g),this}_blockNode(g){this._currNode.nodes.push(g),this._nodes.push(g)}_endBlockNode(g,b){const k=this._currNode;if(k instanceof g||b&&k instanceof b)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${b?`${g.kind}/${b.kind}`:g.kind}"`)}_elseNode(g){const b=this._currNode;if(!(b instanceof $))throw new Error('CodeGen: "else" without "if"');return this._currNode=b.else=g,this}get _root(){return this._nodes[0]}get _currNode(){const g=this._nodes;return g[g.length-1]}set _currNode(g){const b=this._nodes;b[b.length-1]=g}}t.CodeGen=q;function F(E,g){for(const b in g)E[b]=(E[b]||0)+(g[b]||0);return E}function K(E,g){return g instanceof e._CodeOrName?F(E,g.names):E}function U(E,g,b){if(E instanceof e.Name)return k(E);if(!z(E))return E;return new e._Code(E._items.reduce((H,ne)=>(ne instanceof e.Name&&(ne=k(ne)),ne instanceof e._Code?H.push(...ne._items):H.push(ne),H),[]));function k(H){const ne=b[H.str];return ne===void 0||g[H.str]!==1?H:(delete g[H.str],ne)}function z(H){return H instanceof e._Code&&H._items.some(ne=>ne instanceof e.Name&&g[ne.str]===1&&b[ne.str]!==void 0)}}function se(E,g){for(const b in g)E[b]=(E[b]||0)-(g[b]||0)}function ce(E){return typeof E=="boolean"||typeof E=="number"||E===null?!E:(0,e._)`!${N(E)}`}t.not=ce;const ue=P(t.operators.AND);function Ne(...E){return E.reduce(ue)}t.and=Ne;const Ae=P(t.operators.OR);function R(...E){return E.reduce(Ae)}t.or=R;function P(E){return(g,b)=>g===e.nil?b:b===e.nil?g:(0,e._)`${N(g)} ${E} ${N(b)}`}function N(E){return E instanceof e.Name?E:(0,e._)`(${E})`}})(W);var D={};Object.defineProperty(D,"__esModule",{value:!0});D.checkStrictMode=D.getErrorPath=D.Type=D.useFunc=D.setEvaluated=D.evaluatedPropsToName=D.mergeEvaluated=D.eachItem=D.unescapeJsonPointer=D.escapeJsonPointer=D.escapeFragment=D.unescapeFragment=D.schemaRefOrVal=D.schemaHasRulesButRef=D.schemaHasRules=D.checkUnknownRules=D.alwaysValidSchema=D.toHash=void 0;const oe=W,Sd=jr;function jd(t){const e={};for(const r of t)e[r]=!0;return e}D.toHash=jd;function Od(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Ac(t,e),!Tc(e,t.self.RULES.all))}D.alwaysValidSchema=Od;function Ac(t,e=t.schema){const{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;const s=n.RULES.keywords;for(const i in e)s[i]||Cc(t,`unknown keyword: "${i}"`)}D.checkUnknownRules=Ac;function Tc(t,e){if(typeof t=="boolean")return!t;for(const r in t)if(e[r])return!0;return!1}D.schemaHasRules=Tc;function kd(t,e){if(typeof t=="boolean")return!t;for(const r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}D.schemaHasRulesButRef=kd;function Id({topSchemaRef:t,schemaPath:e},r,n,s){if(!s){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,oe._)`${r}`}return(0,oe._)`${t}${e}${(0,oe.getProperty)(n)}`}D.schemaRefOrVal=Id;function Nd(t){return Rc(decodeURIComponent(t))}D.unescapeFragment=Nd;function Ad(t){return encodeURIComponent($i(t))}D.escapeFragment=Ad;function $i(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}D.escapeJsonPointer=$i;function Rc(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}D.unescapeJsonPointer=Rc;function Td(t,e){if(Array.isArray(t))for(const r of t)e(r);else e(t)}D.eachItem=Td;function Fo({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(s,i,o,a)=>{const c=o===void 0?i:o instanceof oe.Name?(i instanceof oe.Name?t(s,i,o):e(s,i,o),o):i instanceof oe.Name?(e(s,o,i),i):r(i,o);return a===oe.Name&&!(c instanceof oe.Name)?n(s,c):c}}D.mergeEvaluated={props:Fo({mergeNames:(t,e,r)=>t.if((0,oe._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,oe._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,oe._)`${r} || {}`).code((0,oe._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,oe._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,oe._)`${r} || {}`),bi(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:xc}),items:Fo({mergeNames:(t,e,r)=>t.if((0,oe._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,oe._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,oe._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,oe._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function xc(t,e){if(e===!0)return t.var("props",!0);const r=t.var("props",(0,oe._)`{}`);return e!==void 0&&bi(t,r,e),r}D.evaluatedPropsToName=xc;function bi(t,e,r){Object.keys(r).forEach(n=>t.assign((0,oe._)`${e}${(0,oe.getProperty)(n)}`,!0))}D.setEvaluated=bi;const zo={};function Rd(t,e){return t.scopeValue("func",{ref:e,code:zo[e.code]||(zo[e.code]=new Sd._Code(e.code))})}D.useFunc=Rd;var qs;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(qs||(D.Type=qs={}));function xd(t,e,r){if(t instanceof oe.Name){const n=e===qs.Num;return r?n?(0,oe._)`"[" + ${t} + "]"`:(0,oe._)`"['" + ${t} + "']"`:n?(0,oe._)`"/" + ${t}`:(0,oe._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,oe.getProperty)(t).toString():"/"+$i(t)}D.getErrorPath=xd;function Cc(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}D.checkStrictMode=Cc;var xe={};Object.defineProperty(xe,"__esModule",{value:!0});const Ee=W,Cd={data:new Ee.Name("data"),valCxt:new Ee.Name("valCxt"),instancePath:new Ee.Name("instancePath"),parentData:new Ee.Name("parentData"),parentDataProperty:new Ee.Name("parentDataProperty"),rootData:new Ee.Name("rootData"),dynamicAnchors:new Ee.Name("dynamicAnchors"),vErrors:new Ee.Name("vErrors"),errors:new Ee.Name("errors"),this:new Ee.Name("this"),self:new Ee.Name("self"),scope:new Ee.Name("scope"),json:new Ee.Name("json"),jsonPos:new Ee.Name("jsonPos"),jsonLen:new Ee.Name("jsonLen"),jsonPart:new Ee.Name("jsonPart")};xe.default=Cd;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=W,r=D,n=xe;t.keywordError={message:({keyword:h})=>(0,e.str)`must pass "${h}" keyword validation`},t.keyword$DataError={message:({keyword:h,schemaType:$})=>$?(0,e.str)`"${h}" keyword must be ${$} ($data)`:(0,e.str)`"${h}" keyword is invalid ($data)`};function s(h,$=t.keywordError,v,w){const{it:j}=h,{gen:O,compositeRule:L,allErrors:M}=j,C=l(h,$,v);w??(L||M)?c(O,C):f(j,(0,e._)`[${C}]`)}t.reportError=s;function i(h,$=t.keywordError,v){const{it:w}=h,{gen:j,compositeRule:O,allErrors:L}=w,M=l(h,$,v);c(j,M),O||L||f(w,n.default.vErrors)}t.reportExtraError=i;function o(h,$){h.assign(n.default.errors,$),h.if((0,e._)`${n.default.vErrors} !== null`,()=>h.if($,()=>h.assign((0,e._)`${n.default.vErrors}.length`,$),()=>h.assign(n.default.vErrors,null)))}t.resetErrorsCount=o;function a({gen:h,keyword:$,schemaValue:v,data:w,errsCount:j,it:O}){if(j===void 0)throw new Error("ajv implementation error");const L=h.name("err");h.forRange("i",j,n.default.errors,M=>{h.const(L,(0,e._)`${n.default.vErrors}[${M}]`),h.if((0,e._)`${L}.instancePath === undefined`,()=>h.assign((0,e._)`${L}.instancePath`,(0,e.strConcat)(n.default.instancePath,O.errorPath))),h.assign((0,e._)`${L}.schemaPath`,(0,e.str)`${O.errSchemaPath}/${$}`),O.opts.verbose&&(h.assign((0,e._)`${L}.schema`,v),h.assign((0,e._)`${L}.data`,w))})}t.extendErrors=a;function c(h,$){const v=h.const("err",$);h.if((0,e._)`${n.default.vErrors} === null`,()=>h.assign(n.default.vErrors,(0,e._)`[${v}]`),(0,e._)`${n.default.vErrors}.push(${v})`),h.code((0,e._)`${n.default.errors}++`)}function f(h,$){const{gen:v,validateName:w,schemaEnv:j}=h;j.$async?v.throw((0,e._)`new ${h.ValidationError}(${$})`):(v.assign((0,e._)`${w}.errors`,$),v.return(!1))}const u={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function l(h,$,v){const{createErrors:w}=h.it;return w===!1?(0,e._)`{}`:d(h,$,v)}function d(h,$,v={}){const{gen:w,it:j}=h,O=[p(j,v),m(h,v)];return y(h,$,O),w.object(...O)}function p({errorPath:h},{instancePath:$}){const v=$?(0,e.str)`${h}${(0,r.getErrorPath)($,r.Type.Str)}`:h;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,v)]}function m({keyword:h,it:{errSchemaPath:$}},{schemaPath:v,parentSchema:w}){let j=w?$:(0,e.str)`${$}/${h}`;return v&&(j=(0,e.str)`${j}${(0,r.getErrorPath)(v,r.Type.Str)}`),[u.schemaPath,j]}function y(h,{params:$,message:v},w){const{keyword:j,data:O,schemaValue:L,it:M}=h,{opts:C,propertyName:G,topSchemaRef:te,schemaPath:q}=M;w.push([u.keyword,j],[u.params,typeof $=="function"?$(h):$||(0,e._)`{}`]),C.messages&&w.push([u.message,typeof v=="function"?v(h):v]),C.verbose&&w.push([u.schema,L],[u.parentSchema,(0,e._)`${te}${q}`],[n.default.data,O]),G&&w.push([u.propertyName,G])}})(xr);var Ko;function Md(){if(Ko)return pt;Ko=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.boolOrEmptySchema=pt.topBoolOrEmptySchema=void 0;const t=xr,e=W,r=xe,n={message:"boolean schema is false"};function s(a){const{gen:c,schema:f,validateName:u}=a;f===!1?o(a,!1):typeof f=="object"&&f.$async===!0?c.return(r.default.data):(c.assign((0,e._)`${u}.errors`,null),c.return(!0))}pt.topBoolOrEmptySchema=s;function i(a,c){const{gen:f,schema:u}=a;u===!1?(f.var(c,!1),o(a)):f.var(c,!0)}pt.boolOrEmptySchema=i;function o(a,c){const{gen:f,data:u}=a,l={gen:f,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,t.reportError)(l,n,void 0,c)}return pt}var $e={},St={};Object.defineProperty(St,"__esModule",{value:!0});St.getRules=St.isJSONType=void 0;const qd=["string","number","integer","boolean","null","object","array"],Dd=new Set(qd);function Ld(t){return typeof t=="string"&&Dd.has(t)}St.isJSONType=Ld;function Vd(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}St.getRules=Vd;var tt={};Object.defineProperty(tt,"__esModule",{value:!0});tt.shouldUseRule=tt.shouldUseGroup=tt.schemaHasRulesForType=void 0;function Ud({schema:t,self:e},r){const n=e.RULES.types[r];return n&&n!==!0&&Mc(t,n)}tt.schemaHasRulesForType=Ud;function Mc(t,e){return e.rules.some(r=>qc(t,r))}tt.shouldUseGroup=Mc;function qc(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}tt.shouldUseRule=qc;Object.defineProperty($e,"__esModule",{value:!0});$e.reportTypeError=$e.checkDataTypes=$e.checkDataType=$e.coerceAndCheckDataType=$e.getJSONTypes=$e.getSchemaTypes=$e.DataType=void 0;const Fd=St,zd=tt,Kd=xr,Q=W,Dc=D;var zt;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(zt||($e.DataType=zt={}));function Bd(t){const e=Lc(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}$e.getSchemaTypes=Bd;function Lc(t){const e=Array.isArray(t)?t:t?[t]:[];if(e.every(Fd.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}$e.getJSONTypes=Lc;function Hd(t,e){const{gen:r,data:n,opts:s}=t,i=Jd(e,s.coerceTypes),o=e.length>0&&!(i.length===0&&e.length===1&&(0,zd.schemaHasRulesForType)(t,e[0]));if(o){const a=vi(e,n,s.strictNumbers,zt.Wrong);r.if(a,()=>{i.length?Gd(t,e,i):wi(t)})}return o}$e.coerceAndCheckDataType=Hd;const Vc=new Set(["string","number","integer","boolean","null"]);function Jd(t,e){return e?t.filter(r=>Vc.has(r)||e==="array"&&r==="array"):[]}function Gd(t,e,r){const{gen:n,data:s,opts:i}=t,o=n.let("dataType",(0,Q._)`typeof ${s}`),a=n.let("coerced",(0,Q._)`undefined`);i.coerceTypes==="array"&&n.if((0,Q._)`${o} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,(0,Q._)`${s}[0]`).assign(o,(0,Q._)`typeof ${s}`).if(vi(e,s,i.strictNumbers),()=>n.assign(a,s))),n.if((0,Q._)`${a} !== undefined`);for(const f of r)(Vc.has(f)||f==="array"&&i.coerceTypes==="array")&&c(f);n.else(),wi(t),n.endIf(),n.if((0,Q._)`${a} !== undefined`,()=>{n.assign(s,a),Wd(t,a)});function c(f){switch(f){case"string":n.elseIf((0,Q._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,Q._)`"" + ${s}`).elseIf((0,Q._)`${s} === null`).assign(a,(0,Q._)`""`);return;case"number":n.elseIf((0,Q._)`${o} == "boolean" || ${s} === null
|
|
134
|
-
|| (${o} == "string" && ${s} && ${s} == +${s})`).assign(a,(0,Q._)`+${s}`);return;case"integer":n.elseIf((0,Q._)`${o} === "boolean" || ${s} === null
|
|
135
|
-
|| (${o} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(a,(0,Q._)`+${s}`);return;case"boolean":n.elseIf((0,Q._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(a,!1).elseIf((0,Q._)`${s} === "true" || ${s} === 1`).assign(a,!0);return;case"null":n.elseIf((0,Q._)`${s} === "" || ${s} === 0 || ${s} === false`),n.assign(a,null);return;case"array":n.elseIf((0,Q._)`${o} === "string" || ${o} === "number"
|
|
136
|
-
|| ${o} === "boolean" || ${s} === null`).assign(a,(0,Q._)`[${s}]`)}}}function Wd({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,Q._)`${e} !== undefined`,()=>t.assign((0,Q._)`${e}[${r}]`,n))}function Ds(t,e,r,n=zt.Correct){const s=n===zt.Correct?Q.operators.EQ:Q.operators.NEQ;let i;switch(t){case"null":return(0,Q._)`${e} ${s} null`;case"array":i=(0,Q._)`Array.isArray(${e})`;break;case"object":i=(0,Q._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=o((0,Q._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=o();break;default:return(0,Q._)`typeof ${e} ${s} ${t}`}return n===zt.Correct?i:(0,Q.not)(i);function o(a=Q.nil){return(0,Q.and)((0,Q._)`typeof ${e} == "number"`,a,r?(0,Q._)`isFinite(${e})`:Q.nil)}}$e.checkDataType=Ds;function vi(t,e,r,n){if(t.length===1)return Ds(t[0],e,r,n);let s;const i=(0,Dc.toHash)(t);if(i.array&&i.object){const o=(0,Q._)`typeof ${e} != "object"`;s=i.null?o:(0,Q._)`!${e} || ${o}`,delete i.null,delete i.array,delete i.object}else s=Q.nil;i.number&&delete i.integer;for(const o in i)s=(0,Q.and)(s,Ds(o,e,r,n));return s}$e.checkDataTypes=vi;const Yd={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Q._)`{type: ${t}}`:(0,Q._)`{type: ${e}}`};function wi(t){const e=Xd(t);(0,Kd.reportError)(e,Yd)}$e.reportTypeError=wi;function Xd(t){const{gen:e,data:r,schema:n}=t,s=(0,Dc.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:t}}var lr={},Bo;function Qd(){if(Bo)return lr;Bo=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.assignDefaults=void 0;const t=W,e=D;function r(s,i){const{properties:o,items:a}=s.schema;if(i==="object"&&o)for(const c in o)n(s,c,o[c].default);else i==="array"&&Array.isArray(a)&&a.forEach((c,f)=>n(s,f,c.default))}lr.assignDefaults=r;function n(s,i,o){const{gen:a,compositeRule:c,data:f,opts:u}=s;if(o===void 0)return;const l=(0,t._)`${f}${(0,t.getProperty)(i)}`;if(c){(0,e.checkStrictMode)(s,`default is ignored for: ${l}`);return}let d=(0,t._)`${l} === undefined`;u.useDefaults==="empty"&&(d=(0,t._)`${d} || ${l} === null || ${l} === ""`),a.if(d,(0,t._)`${l} = ${(0,t.stringify)(o)}`)}return lr}var Ue={},ee={};Object.defineProperty(ee,"__esModule",{value:!0});ee.validateUnion=ee.validateArray=ee.usePattern=ee.callValidateCode=ee.schemaProperties=ee.allSchemaProperties=ee.noPropertyInData=ee.propertyInData=ee.isOwnProperty=ee.hasPropFunc=ee.reportMissingProp=ee.checkMissingProp=ee.checkReportMissingProp=void 0;const fe=W,_i=D,st=xe,Zd=D;function ep(t,e){const{gen:r,data:n,it:s}=t;r.if(Ei(r,n,e,s.opts.ownProperties),()=>{t.setParams({missingProperty:(0,fe._)`${e}`},!0),t.error()})}ee.checkReportMissingProp=ep;function tp({gen:t,data:e,it:{opts:r}},n,s){return(0,fe.or)(...n.map(i=>(0,fe.and)(Ei(t,e,i,r.ownProperties),(0,fe._)`${s} = ${i}`)))}ee.checkMissingProp=tp;function rp(t,e){t.setParams({missingProperty:e},!0),t.error()}ee.reportMissingProp=rp;function Uc(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,fe._)`Object.prototype.hasOwnProperty`})}ee.hasPropFunc=Uc;function Pi(t,e,r){return(0,fe._)`${Uc(t)}.call(${e}, ${r})`}ee.isOwnProperty=Pi;function np(t,e,r,n){const s=(0,fe._)`${e}${(0,fe.getProperty)(r)} !== undefined`;return n?(0,fe._)`${s} && ${Pi(t,e,r)}`:s}ee.propertyInData=np;function Ei(t,e,r,n){const s=(0,fe._)`${e}${(0,fe.getProperty)(r)} === undefined`;return n?(0,fe.or)(s,(0,fe.not)(Pi(t,e,r))):s}ee.noPropertyInData=Ei;function Fc(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}ee.allSchemaProperties=Fc;function sp(t,e){return Fc(e).filter(r=>!(0,_i.alwaysValidSchema)(t,e[r]))}ee.schemaProperties=sp;function ip({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:s,errorPath:i},it:o},a,c,f){const u=f?(0,fe._)`${t}, ${e}, ${n}${s}`:e,l=[[st.default.instancePath,(0,fe.strConcat)(st.default.instancePath,i)],[st.default.parentData,o.parentData],[st.default.parentDataProperty,o.parentDataProperty],[st.default.rootData,st.default.rootData]];o.opts.dynamicRef&&l.push([st.default.dynamicAnchors,st.default.dynamicAnchors]);const d=(0,fe._)`${u}, ${r.object(...l)}`;return c!==fe.nil?(0,fe._)`${a}.call(${c}, ${d})`:(0,fe._)`${a}(${d})`}ee.callValidateCode=ip;const op=(0,fe._)`new RegExp`;function ap({gen:t,it:{opts:e}},r){const n=e.unicodeRegExp?"u":"",{regExp:s}=e.code,i=s(r,n);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,fe._)`${s.code==="new RegExp"?op:(0,Zd.useFunc)(t,s)}(${r}, ${n})`})}ee.usePattern=ap;function cp(t){const{gen:e,data:r,keyword:n,it:s}=t,i=e.name("valid");if(s.allErrors){const a=e.let("valid",!0);return o(()=>e.assign(a,!1)),a}return e.var(i,!0),o(()=>e.break()),i;function o(a){const c=e.const("len",(0,fe._)`${r}.length`);e.forRange("i",0,c,f=>{t.subschema({keyword:n,dataProp:f,dataPropType:_i.Type.Num},i),e.if((0,fe.not)(i),a)})}}ee.validateArray=cp;function fp(t){const{gen:e,schema:r,keyword:n,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,_i.alwaysValidSchema)(s,c))&&!s.opts.unevaluated)return;const o=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,f)=>{const u=t.subschema({keyword:n,schemaProp:f,compositeRule:!0},a);e.assign(o,(0,fe._)`${o} || ${a}`),t.mergeValidEvaluated(u,a)||e.if((0,fe.not)(o))})),t.result(o,()=>t.reset(),()=>t.error(!0))}ee.validateUnion=fp;var Ho;function lp(){if(Ho)return Ue;Ho=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.validateKeywordUsage=Ue.validSchemaType=Ue.funcKeywordCode=Ue.macroKeywordCode=void 0;const t=W,e=xe,r=ee,n=xr;function s(d,p){const{gen:m,keyword:y,schema:h,parentSchema:$,it:v}=d,w=p.macro.call(v.self,h,$,v),j=f(m,y,w);v.opts.validateSchema!==!1&&v.self.validateSchema(w,!0);const O=m.name("valid");d.subschema({schema:w,schemaPath:t.nil,errSchemaPath:`${v.errSchemaPath}/${y}`,topSchemaRef:j,compositeRule:!0},O),d.pass(O,()=>d.error(!0))}Ue.macroKeywordCode=s;function i(d,p){var m;const{gen:y,keyword:h,schema:$,parentSchema:v,$data:w,it:j}=d;c(j,p);const O=!w&&p.compile?p.compile.call(j.self,$,v,j):p.validate,L=f(y,h,O),M=y.let("valid");d.block$data(M,C),d.ok((m=p.valid)!==null&&m!==void 0?m:M);function C(){if(p.errors===!1)q(),p.modifying&&o(d),F(()=>d.error());else{const K=p.async?G():te();p.modifying&&o(d),F(()=>a(d,K))}}function G(){const K=y.let("ruleErrs",null);return y.try(()=>q((0,t._)`await `),U=>y.assign(M,!1).if((0,t._)`${U} instanceof ${j.ValidationError}`,()=>y.assign(K,(0,t._)`${U}.errors`),()=>y.throw(U))),K}function te(){const K=(0,t._)`${L}.errors`;return y.assign(K,null),q(t.nil),K}function q(K=p.async?(0,t._)`await `:t.nil){const U=j.opts.passContext?e.default.this:e.default.self,se=!("compile"in p&&!w||p.schema===!1);y.assign(M,(0,t._)`${K}${(0,r.callValidateCode)(d,L,U,se)}`,p.modifying)}function F(K){var U;y.if((0,t.not)((U=p.valid)!==null&&U!==void 0?U:M),K)}}Ue.funcKeywordCode=i;function o(d){const{gen:p,data:m,it:y}=d;p.if(y.parentData,()=>p.assign(m,(0,t._)`${y.parentData}[${y.parentDataProperty}]`))}function a(d,p){const{gen:m}=d;m.if((0,t._)`Array.isArray(${p})`,()=>{m.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${p} : ${e.default.vErrors}.concat(${p})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,n.extendErrors)(d)},()=>d.error())}function c({schemaEnv:d},p){if(p.async&&!d.$async)throw new Error("async keyword in sync schema")}function f(d,p,m){if(m===void 0)throw new Error(`keyword "${p}" failed to compile`);return d.scopeValue("keyword",typeof m=="function"?{ref:m}:{ref:m,code:(0,t.stringify)(m)})}function u(d,p,m=!1){return!p.length||p.some(y=>y==="array"?Array.isArray(d):y==="object"?d&&typeof d=="object"&&!Array.isArray(d):typeof d==y||m&&typeof d>"u")}Ue.validSchemaType=u;function l({schema:d,opts:p,self:m,errSchemaPath:y},h,$){if(Array.isArray(h.keyword)?!h.keyword.includes($):h.keyword!==$)throw new Error("ajv implementation error");const v=h.dependencies;if(v!=null&&v.some(w=>!Object.prototype.hasOwnProperty.call(d,w)))throw new Error(`parent schema must have dependencies of ${$}: ${v.join(",")}`);if(h.validateSchema&&!h.validateSchema(d[$])){const j=`keyword "${$}" value is invalid at path "${y}": `+m.errorsText(h.validateSchema.errors);if(p.validateSchema==="log")m.logger.error(j);else throw new Error(j)}}return Ue.validateKeywordUsage=l,Ue}var Qe={},Jo;function up(){if(Jo)return Qe;Jo=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.extendSubschemaMode=Qe.extendSubschemaData=Qe.getSubschema=void 0;const t=W,e=D;function r(i,{keyword:o,schemaProp:a,schema:c,schemaPath:f,errSchemaPath:u,topSchemaRef:l}){if(o!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const d=i.schema[o];return a===void 0?{schema:d,schemaPath:(0,t._)`${i.schemaPath}${(0,t.getProperty)(o)}`,errSchemaPath:`${i.errSchemaPath}/${o}`}:{schema:d[a],schemaPath:(0,t._)`${i.schemaPath}${(0,t.getProperty)(o)}${(0,t.getProperty)(a)}`,errSchemaPath:`${i.errSchemaPath}/${o}/${(0,e.escapeFragment)(a)}`}}if(c!==void 0){if(f===void 0||u===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:f,topSchemaRef:l,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}Qe.getSubschema=r;function n(i,o,{dataProp:a,dataPropType:c,data:f,dataTypes:u,propertyName:l}){if(f!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:d}=o;if(a!==void 0){const{errorPath:m,dataPathArr:y,opts:h}=o,$=d.let("data",(0,t._)`${o.data}${(0,t.getProperty)(a)}`,!0);p($),i.errorPath=(0,t.str)`${m}${(0,e.getErrorPath)(a,c,h.jsPropertySyntax)}`,i.parentDataProperty=(0,t._)`${a}`,i.dataPathArr=[...y,i.parentDataProperty]}if(f!==void 0){const m=f instanceof t.Name?f:d.let("data",f,!0);p(m),l!==void 0&&(i.propertyName=l)}u&&(i.dataTypes=u);function p(m){i.data=m,i.dataLevel=o.dataLevel+1,i.dataTypes=[],o.definedProperties=new Set,i.parentData=o.data,i.dataNames=[...o.dataNames,m]}}Qe.extendSubschemaData=n;function s(i,{jtdDiscriminator:o,jtdMetadata:a,compositeRule:c,createErrors:f,allErrors:u}){c!==void 0&&(i.compositeRule=c),f!==void 0&&(i.createErrors=f),u!==void 0&&(i.allErrors=u),i.jtdDiscriminator=o,i.jtdMetadata=a}return Qe.extendSubschemaMode=s,Qe}var _e={},zc=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,i;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(s=n;s--!==0;)if(!t(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return!1;for(s=n;s--!==0;){var o=i[s];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r},Kc={exports:{}},lt=Kc.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},s=r.post||function(){};pn(e,n,s,t,"",t)};lt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};lt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};lt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};lt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function pn(t,e,r,n,s,i,o,a,c,f){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,s,i,o,a,c,f);for(var u in n){var l=n[u];if(Array.isArray(l)){if(u in lt.arrayKeywords)for(var d=0;d<l.length;d++)pn(t,e,r,l[d],s+"/"+u+"/"+d,i,s,u,n,d)}else if(u in lt.propsKeywords){if(l&&typeof l=="object")for(var p in l)pn(t,e,r,l[p],s+"/"+u+"/"+dp(p),i,s,u,n,p)}else(u in lt.keywords||t.allKeys&&!(u in lt.skipKeywords))&&pn(t,e,r,l,s+"/"+u,i,s,u,n)}r(n,s,i,o,a,c,f)}}function dp(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}var pp=Kc.exports;Object.defineProperty(_e,"__esModule",{value:!0});_e.getSchemaRefs=_e.resolveUrl=_e.normalizeId=_e._getFullPath=_e.getFullPath=_e.inlineRef=void 0;const mp=D,hp=zc,yp=pp,gp=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function $p(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Ls(t):e?Bc(t)<=e:!1}_e.inlineRef=$p;const bp=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ls(t){for(const e in t){if(bp.has(e))return!0;const r=t[e];if(Array.isArray(r)&&r.some(Ls)||typeof r=="object"&&Ls(r))return!0}return!1}function Bc(t){let e=0;for(const r in t){if(r==="$ref")return 1/0;if(e++,!gp.has(r)&&(typeof t[r]=="object"&&(0,mp.eachItem)(t[r],n=>e+=Bc(n)),e===1/0))return 1/0}return e}function Hc(t,e="",r){r!==!1&&(e=Kt(e));const n=t.parse(e);return Jc(t,n)}_e.getFullPath=Hc;function Jc(t,e){return t.serialize(e).split("#")[0]+"#"}_e._getFullPath=Jc;const vp=/#\/?$/;function Kt(t){return t?t.replace(vp,""):""}_e.normalizeId=Kt;function wp(t,e,r){return r=Kt(r),t.resolve(e,r)}_e.resolveUrl=wp;const _p=/^[a-z_][-a-z0-9._]*$/i;function Pp(t,e){if(typeof t=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,s=Kt(t[r]||e),i={"":s},o=Hc(n,s,!1),a={},c=new Set;return yp(t,{allKeys:!0},(l,d,p,m)=>{if(m===void 0)return;const y=o+d;let h=i[m];typeof l[r]=="string"&&(h=$.call(this,l[r])),v.call(this,l.$anchor),v.call(this,l.$dynamicAnchor),i[d]=h;function $(w){const j=this.opts.uriResolver.resolve;if(w=Kt(h?j(h,w):w),c.has(w))throw u(w);c.add(w);let O=this.refs[w];return typeof O=="string"&&(O=this.refs[O]),typeof O=="object"?f(l,O.schema,w):w!==Kt(y)&&(w[0]==="#"?(f(l,a[w],w),a[w]=l):this.refs[w]=y),w}function v(w){if(typeof w=="string"){if(!_p.test(w))throw new Error(`invalid anchor "${w}"`);$.call(this,`#${w}`)}}}),a;function f(l,d,p){if(d!==void 0&&!hp(l,d))throw u(p)}function u(l){return new Error(`reference "${l}" resolves to more than one schema`)}}_e.getSchemaRefs=Pp;var Go;function Cr(){if(Go)return Xe;Go=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.getData=Xe.KeywordCxt=Xe.validateFunctionCode=void 0;const t=Md(),e=$e,r=tt,n=$e,s=Qd(),i=lp(),o=up(),a=W,c=xe,f=_e,u=D,l=xr;function d(_){if(O(_)&&(M(_),j(_))){h(_);return}p(_,()=>(0,t.topBoolOrEmptySchema)(_))}Xe.validateFunctionCode=d;function p({gen:_,validateName:S,schema:A,schemaEnv:x,opts:B},Z){B.code.es5?_.func(S,(0,a._)`${c.default.data}, ${c.default.valCxt}`,x.$async,()=>{_.code((0,a._)`"use strict"; ${v(A,B)}`),y(_,B),_.code(Z)}):_.func(S,(0,a._)`${c.default.data}, ${m(B)}`,x.$async,()=>_.code(v(A,B)).code(Z))}function m(_){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${_.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}}={}`}function y(_,S){_.if(c.default.valCxt,()=>{_.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),_.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),_.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),_.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),S.dynamicRef&&_.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{_.var(c.default.instancePath,(0,a._)`""`),_.var(c.default.parentData,(0,a._)`undefined`),_.var(c.default.parentDataProperty,(0,a._)`undefined`),_.var(c.default.rootData,c.default.data),S.dynamicRef&&_.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function h(_){const{schema:S,opts:A,gen:x}=_;p(_,()=>{A.$comment&&S.$comment&&K(_),te(_),x.let(c.default.vErrors,null),x.let(c.default.errors,0),A.unevaluated&&$(_),C(_),U(_)})}function $(_){const{gen:S,validateName:A}=_;_.evaluated=S.const("evaluated",(0,a._)`${A}.evaluated`),S.if((0,a._)`${_.evaluated}.dynamicProps`,()=>S.assign((0,a._)`${_.evaluated}.props`,(0,a._)`undefined`)),S.if((0,a._)`${_.evaluated}.dynamicItems`,()=>S.assign((0,a._)`${_.evaluated}.items`,(0,a._)`undefined`))}function v(_,S){const A=typeof _=="object"&&_[S.schemaId];return A&&(S.code.source||S.code.process)?(0,a._)`/*# sourceURL=${A} */`:a.nil}function w(_,S){if(O(_)&&(M(_),j(_))){L(_,S);return}(0,t.boolOrEmptySchema)(_,S)}function j({schema:_,self:S}){if(typeof _=="boolean")return!_;for(const A in _)if(S.RULES.all[A])return!0;return!1}function O(_){return typeof _.schema!="boolean"}function L(_,S){const{schema:A,gen:x,opts:B}=_;B.$comment&&A.$comment&&K(_),q(_),F(_);const Z=x.const("_errs",c.default.errors);C(_,Z),x.var(S,(0,a._)`${Z} === ${c.default.errors}`)}function M(_){(0,u.checkUnknownRules)(_),G(_)}function C(_,S){if(_.opts.jtd)return ce(_,[],!1,S);const A=(0,e.getSchemaTypes)(_.schema),x=(0,e.coerceAndCheckDataType)(_,A);ce(_,A,!x,S)}function G(_){const{schema:S,errSchemaPath:A,opts:x,self:B}=_;S.$ref&&x.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(S,B.RULES)&&B.logger.warn(`$ref: keywords ignored in schema at path "${A}"`)}function te(_){const{schema:S,opts:A}=_;S.default!==void 0&&A.useDefaults&&A.strictSchema&&(0,u.checkStrictMode)(_,"default is ignored in the schema root")}function q(_){const S=_.schema[_.opts.schemaId];S&&(_.baseId=(0,f.resolveUrl)(_.opts.uriResolver,_.baseId,S))}function F(_){if(_.schema.$async&&!_.schemaEnv.$async)throw new Error("async schema in sync schema")}function K({gen:_,schemaEnv:S,schema:A,errSchemaPath:x,opts:B}){const Z=A.$comment;if(B.$comment===!0)_.code((0,a._)`${c.default.self}.logger.log(${Z})`);else if(typeof B.$comment=="function"){const ye=(0,a.str)`${x}/$comment`,Re=_.scopeValue("root",{ref:S.root});_.code((0,a._)`${c.default.self}.opts.$comment(${Z}, ${ye}, ${Re}.schema)`)}}function U(_){const{gen:S,schemaEnv:A,validateName:x,ValidationError:B,opts:Z}=_;A.$async?S.if((0,a._)`${c.default.errors} === 0`,()=>S.return(c.default.data),()=>S.throw((0,a._)`new ${B}(${c.default.vErrors})`)):(S.assign((0,a._)`${x}.errors`,c.default.vErrors),Z.unevaluated&&se(_),S.return((0,a._)`${c.default.errors} === 0`))}function se({gen:_,evaluated:S,props:A,items:x}){A instanceof a.Name&&_.assign((0,a._)`${S}.props`,A),x instanceof a.Name&&_.assign((0,a._)`${S}.items`,x)}function ce(_,S,A,x){const{gen:B,schema:Z,data:ye,allErrors:Re,opts:be,self:Pe}=_,{RULES:ge}=Pe;if(Z.$ref&&(be.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(Z,ge))){B.block(()=>z(_,"$ref",ge.all.$ref.definition));return}be.jtd||Ne(_,S),B.block(()=>{for(const je of ge.rules)Ye(je);Ye(ge.post)});function Ye(je){(0,r.shouldUseGroup)(Z,je)&&(je.type?(B.if((0,n.checkDataType)(je.type,ye,be.strictNumbers)),ue(_,je),S.length===1&&S[0]===je.type&&A&&(B.else(),(0,n.reportTypeError)(_)),B.endIf()):ue(_,je),Re||B.if((0,a._)`${c.default.errors} === ${x||0}`))}}function ue(_,S){const{gen:A,schema:x,opts:{useDefaults:B}}=_;B&&(0,s.assignDefaults)(_,S.type),A.block(()=>{for(const Z of S.rules)(0,r.shouldUseRule)(x,Z)&&z(_,Z.keyword,Z.definition,S.type)})}function Ne(_,S){_.schemaEnv.meta||!_.opts.strictTypes||(Ae(_,S),_.opts.allowUnionTypes||R(_,S),P(_,_.dataTypes))}function Ae(_,S){if(S.length){if(!_.dataTypes.length){_.dataTypes=S;return}S.forEach(A=>{E(_.dataTypes,A)||b(_,`type "${A}" not allowed by context "${_.dataTypes.join(",")}"`)}),g(_,S)}}function R(_,S){S.length>1&&!(S.length===2&&S.includes("null"))&&b(_,"use allowUnionTypes to allow union type keyword")}function P(_,S){const A=_.self.RULES.all;for(const x in A){const B=A[x];if(typeof B=="object"&&(0,r.shouldUseRule)(_.schema,B)){const{type:Z}=B.definition;Z.length&&!Z.some(ye=>N(S,ye))&&b(_,`missing type "${Z.join(",")}" for keyword "${x}"`)}}}function N(_,S){return _.includes(S)||S==="number"&&_.includes("integer")}function E(_,S){return _.includes(S)||S==="integer"&&_.includes("number")}function g(_,S){const A=[];for(const x of _.dataTypes)E(S,x)?A.push(x):S.includes("integer")&&x==="number"&&A.push("integer");_.dataTypes=A}function b(_,S){const A=_.schemaEnv.baseId+_.errSchemaPath;S+=` at "${A}" (strictTypes)`,(0,u.checkStrictMode)(_,S,_.opts.strictTypes)}class k{constructor(S,A,x){if((0,i.validateKeywordUsage)(S,A,x),this.gen=S.gen,this.allErrors=S.allErrors,this.keyword=x,this.data=S.data,this.schema=S.schema[x],this.$data=A.$data&&S.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(S,this.schema,x,this.$data),this.schemaType=A.schemaType,this.parentSchema=S.schema,this.params={},this.it=S,this.def=A,this.$data)this.schemaCode=S.gen.const("vSchema",re(this.$data,S));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,A.schemaType,A.allowUndefined))throw new Error(`${x} value must be ${JSON.stringify(A.schemaType)}`);("code"in A?A.trackErrors:A.errors!==!1)&&(this.errsCount=S.gen.const("_errs",c.default.errors))}result(S,A,x){this.failResult((0,a.not)(S),A,x)}failResult(S,A,x){this.gen.if(S),x?x():this.error(),A?(this.gen.else(),A(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(S,A){this.failResult((0,a.not)(S),void 0,A)}fail(S){if(S===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(S),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(S){if(!this.$data)return this.fail(S);const{schemaCode:A}=this;this.fail((0,a._)`${A} !== undefined && (${(0,a.or)(this.invalid$data(),S)})`)}error(S,A,x){if(A){this.setParams(A),this._error(S,x),this.setParams({});return}this._error(S,x)}_error(S,A){(S?l.reportExtraError:l.reportError)(this,this.def.error,A)}$dataError(){(0,l.reportError)(this,this.def.$dataError||l.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,l.resetErrorsCount)(this.gen,this.errsCount)}ok(S){this.allErrors||this.gen.if(S)}setParams(S,A){A?Object.assign(this.params,S):this.params=S}block$data(S,A,x=a.nil){this.gen.block(()=>{this.check$data(S,x),A()})}check$data(S=a.nil,A=a.nil){if(!this.$data)return;const{gen:x,schemaCode:B,schemaType:Z,def:ye}=this;x.if((0,a.or)((0,a._)`${B} === undefined`,A)),S!==a.nil&&x.assign(S,!0),(Z.length||ye.validateSchema)&&(x.elseIf(this.invalid$data()),this.$dataError(),S!==a.nil&&x.assign(S,!1)),x.else()}invalid$data(){const{gen:S,schemaCode:A,schemaType:x,def:B,it:Z}=this;return(0,a.or)(ye(),Re());function ye(){if(x.length){if(!(A instanceof a.Name))throw new Error("ajv implementation error");const be=Array.isArray(x)?x:[x];return(0,a._)`${(0,n.checkDataTypes)(be,A,Z.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function Re(){if(B.validateSchema){const be=S.scopeValue("validate$data",{ref:B.validateSchema});return(0,a._)`!${be}(${A})`}return a.nil}}subschema(S,A){const x=(0,o.getSubschema)(this.it,S);(0,o.extendSubschemaData)(x,this.it,S),(0,o.extendSubschemaMode)(x,S);const B={...this.it,...x,items:void 0,props:void 0};return w(B,A),B}mergeEvaluated(S,A){const{it:x,gen:B}=this;x.opts.unevaluated&&(x.props!==!0&&S.props!==void 0&&(x.props=u.mergeEvaluated.props(B,S.props,x.props,A)),x.items!==!0&&S.items!==void 0&&(x.items=u.mergeEvaluated.items(B,S.items,x.items,A)))}mergeValidEvaluated(S,A){const{it:x,gen:B}=this;if(x.opts.unevaluated&&(x.props!==!0||x.items!==!0))return B.if(A,()=>this.mergeEvaluated(S,a.Name)),!0}}Xe.KeywordCxt=k;function z(_,S,A,x){const B=new k(_,A,S);"code"in A?A.code(B,x):B.$data&&A.validate?(0,i.funcKeywordCode)(B,A):"macro"in A?(0,i.macroKeywordCode)(B,A):(A.compile||A.validate)&&(0,i.funcKeywordCode)(B,A)}const H=/^\/(?:[^~]|~0|~1)*$/,ne=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function re(_,{dataLevel:S,dataNames:A,dataPathArr:x}){let B,Z;if(_==="")return c.default.rootData;if(_[0]==="/"){if(!H.test(_))throw new Error(`Invalid JSON-pointer: ${_}`);B=_,Z=c.default.rootData}else{const Pe=ne.exec(_);if(!Pe)throw new Error(`Invalid JSON-pointer: ${_}`);const ge=+Pe[1];if(B=Pe[2],B==="#"){if(ge>=S)throw new Error(be("property/index",ge));return x[S-ge]}if(ge>S)throw new Error(be("data",ge));if(Z=A[S-ge],!B)return Z}let ye=Z;const Re=B.split("/");for(const Pe of Re)Pe&&(Z=(0,a._)`${Z}${(0,a.getProperty)((0,u.unescapeJsonPointer)(Pe))}`,ye=(0,a._)`${ye} && ${Z}`);return ye;function be(Pe,ge){return`Cannot access ${Pe} ${ge} levels up, current level is ${S}`}}return Xe.getData=re,Xe}var tr={};Object.defineProperty(tr,"__esModule",{value:!0});class Ep extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}tr.default=Ep;var It={};Object.defineProperty(It,"__esModule",{value:!0});const ms=_e;class Sp extends Error{constructor(e,r,n,s){super(s||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,ms.resolveUrl)(e,r,n),this.missingSchema=(0,ms.normalizeId)((0,ms.getFullPath)(e,this.missingRef))}}It.default=Sp;var ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.resolveSchema=ke.getCompilingSchema=ke.resolveRef=ke.compileSchema=ke.SchemaEnv=void 0;const Fe=W,jp=tr,mt=xe,Ke=_e,Wo=D,Op=Cr();class Dn{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,Ke.normalizeId)(n==null?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}ke.SchemaEnv=Dn;function Si(t){const e=Gc.call(this,t);if(e)return e;const r=(0,Ke.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:s}=this.opts.code,{ownProperties:i}=this.opts,o=new Fe.CodeGen(this.scope,{es5:n,lines:s,ownProperties:i});let a;t.$async&&(a=o.scopeValue("Error",{ref:jp.default,code:(0,Fe._)`require("ajv/dist/runtime/validation_error").default`}));const c=o.scopeName("validate");t.validateName=c;const f={gen:o,allErrors:this.opts.allErrors,data:mt.default.data,parentData:mt.default.parentData,parentDataProperty:mt.default.parentDataProperty,dataNames:[mt.default.data],dataPathArr:[Fe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Fe.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Fe.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Fe._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(t),(0,Op.validateFunctionCode)(f),o.optimize(this.opts.code.optimize);const l=o.toString();u=`${o.scopeRefs(mt.default.scope)}return ${l}`,this.opts.code.process&&(u=this.opts.code.process(u,t));const p=new Function(`${mt.default.self}`,`${mt.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:p}),p.errors=null,p.schema=t.schema,p.schemaEnv=t,t.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:c,validateCode:l,scopeValues:o._values}),this.opts.unevaluated){const{props:m,items:y}=f;p.evaluated={props:m instanceof Fe.Name?void 0:m,items:y instanceof Fe.Name?void 0:y,dynamicProps:m instanceof Fe.Name,dynamicItems:y instanceof Fe.Name},p.source&&(p.source.evaluated=(0,Fe.stringify)(p.evaluated))}return t.validate=p,t}catch(l){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),l}finally{this._compilations.delete(t)}}ke.compileSchema=Si;function kp(t,e,r){var n;r=(0,Ke.resolveUrl)(this.opts.uriResolver,e,r);const s=t.refs[r];if(s)return s;let i=Ap.call(this,t,r);if(i===void 0){const o=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;o&&(i=new Dn({schema:o,schemaId:a,root:t,baseId:e}))}if(i!==void 0)return t.refs[r]=Ip.call(this,i)}ke.resolveRef=kp;function Ip(t){return(0,Ke.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Si.call(this,t)}function Gc(t){for(const e of this._compilations)if(Np(e,t))return e}ke.getCompilingSchema=Gc;function Np(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function Ap(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||Ln.call(this,t,e)}function Ln(t,e){const r=this.opts.uriResolver.parse(e),n=(0,Ke._getFullPath)(this.opts.uriResolver,r);let s=(0,Ke.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===s)return hs.call(this,r,t);const i=(0,Ke.normalizeId)(n),o=this.refs[i]||this.schemas[i];if(typeof o=="string"){const a=Ln.call(this,t,o);return typeof(a==null?void 0:a.schema)!="object"?void 0:hs.call(this,r,a)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||Si.call(this,o),i===(0,Ke.normalizeId)(e)){const{schema:a}=o,{schemaId:c}=this.opts,f=a[c];return f&&(s=(0,Ke.resolveUrl)(this.opts.uriResolver,s,f)),new Dn({schema:a,schemaId:c,root:t,baseId:s})}return hs.call(this,r,o)}}ke.resolveSchema=Ln;const Tp=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function hs(t,{baseId:e,schema:r,root:n}){var s;if(((s=t.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(const a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,Wo.unescapeFragment)(a)];if(c===void 0)return;r=c;const f=typeof r=="object"&&r[this.opts.schemaId];!Tp.has(a)&&f&&(e=(0,Ke.resolveUrl)(this.opts.uriResolver,e,f))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,Wo.schemaHasRulesButRef)(r,this.RULES)){const a=(0,Ke.resolveUrl)(this.opts.uriResolver,e,r.$ref);i=Ln.call(this,n,a)}const{schemaId:o}=this.opts;if(i=i||new Dn({schema:r,schemaId:o,root:n,baseId:e}),i.schema!==i.root.schema)return i}const Rp="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",xp="Meta-schema for $data reference (JSON AnySchema extension proposal)",Cp="object",Mp=["$data"],qp={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Dp=!1,Lp={$id:Rp,description:xp,type:Cp,required:Mp,properties:qp,additionalProperties:Dp};var ji={},Vn={exports:{}};const Vp=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Wc=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),Oi=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Yc=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),Up=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function Xc(t){let e="",r=0,n=0;for(n=0;n<t.length;n++)if(r=t[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n<t.length;n++){if(r=t[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}const Fp=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Yo(t){return t.length=0,!0}function zp(t,e,r){if(t.length){const n=Xc(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function Kp(t){let e=0;const r={error:!1,address:"",zone:""},n=[],s=[];let i=!1,o=!1,a=zp;for(let c=0;c<t.length;c++){const f=t[c];if(!(f==="["||f==="]"))if(f===":"){if(i===!0&&(o=!0),!a(s,n,r))break;if(++e>7){r.error=!0;break}c>0&&t[c-1]===":"&&(i=!0),n.push(":");continue}else if(f==="%"){if(!a(s,n,r))break;a=Yo}else{s.push(f);continue}}return s.length&&(a===Yo?r.zone=s.join(""):o?n.push(s.join("")):n.push(Xc(s))),r.address=n.join(""),r}function Qc(t){if(Bp(t,":")<2)return{host:t,isIPV6:!1};const e=Kp(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function Bp(t,e){let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r}function Hp(t){let e=t;const r=[];let n=-1,s=0;for(;s=e.length;){if(s===1){if(e===".")break;if(e==="/"){r.push("/");break}else{r.push(e);break}}else if(s===2){if(e[0]==="."){if(e[1]===".")break;if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&(e[1]==="."||e[1]==="/")){r.push("/");break}}else if(s===3&&e==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(e[0]==="."){if(e[1]==="."){if(e[2]==="/"){e=e.slice(3);continue}}else if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&e[1]==="."){if(e[2]==="/"){e=e.slice(2);continue}else if(e[2]==="."&&e[3]==="/"){e=e.slice(3),r.length!==0&&r.pop();continue}}if((n=e.indexOf("/",1))===-1){r.push(e);break}else r.push(e.slice(0,n)),e=e.slice(n)}return r.join("")}const Jp={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},Gp=/[@/?#:]/g,Wp=/[@/?#]/g;function Zc(t,e){const r=e?Wp:Gp;return r.lastIndex=0,t.replace(r,n=>Jp[n])}function Yp(t,e=!1){if(t.indexOf("%")===-1)return t;let r="";for(let n=0;n<t.length;n++){if(t[n]==="%"&&n+2<t.length){const s=t.slice(n+1,n+3);if(Oi(s)){const i=s.toUpperCase(),o=String.fromCharCode(parseInt(i,16));e&&Yc(o)?r+=o:r+="%"+i,n+=2;continue}}r+=t[n]}return r}function Xp(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){const n=t.slice(r+1,r+3);if(Oi(n)){const s=n.toUpperCase(),i=String.fromCharCode(parseInt(s,16));i!=="."&&Yc(i)?e+=i:e+="%"+s,r+=2;continue}}Up(t[r])?e+=t[r]:e+=escape(t[r])}return e}function Qp(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){const n=t.slice(r+1,r+3);if(Oi(n)){e+="%"+n.toUpperCase(),r+=2;continue}}e+=escape(t[r])}return e}function Zp(t){const e=[];if(t.userinfo!==void 0&&(e.push(t.userinfo),e.push("@")),t.host!==void 0){let r=unescape(t.host);if(!Wc(r)){const n=Qc(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=Zc(r,!1)}e.push(r)}return(typeof t.port=="number"||typeof t.port=="string")&&(e.push(":"),e.push(String(t.port))),e.length?e.join(""):void 0}var ef={nonSimpleDomain:Fp,recomposeAuthority:Zp,reescapeHostDelimiters:Zc,normalizePercentEncoding:Yp,normalizePathEncoding:Xp,escapePreservingEscapes:Qp,removeDotSegments:Hp,isIPv4:Wc,isUUID:Vp,normalizeIPv6:Qc};const{isUUID:em}=ef,tm=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function tf(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function rf(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function nf(t){const e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function rm(t){return t.secure=tf(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function nm(t){if((t.port===(tf(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){const[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function sm(t,e){if(!t.path)return t.error="URN can not be parsed",t;const r=t.path.match(tm);if(r){const n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];const s=`${n}:${e.nid||t.nid}`,i=ki(s);t.path=void 0,i&&(t=i.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function im(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");const r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),s=`${r}:${e.nid||n}`,i=ki(s);i&&(t=i.serialize(t,e));const o=t,a=t.nss;return o.path=`${n||e.nid}:${a}`,e.skipEscape=!0,o}function om(t,e){const r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!em(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function am(t){const e=t;return e.nss=(t.uuid||"").toLowerCase(),e}const sf={scheme:"http",domainHost:!0,parse:rf,serialize:nf},cm={scheme:"https",domainHost:sf.domainHost,parse:rf,serialize:nf},mn={scheme:"ws",domainHost:!0,parse:rm,serialize:nm},fm={scheme:"wss",domainHost:mn.domainHost,parse:mn.parse,serialize:mn.serialize},lm={scheme:"urn",parse:sm,serialize:im,skipNormalize:!0},um={scheme:"urn:uuid",parse:om,serialize:am,skipNormalize:!0},En={http:sf,https:cm,ws:mn,wss:fm,urn:lm,"urn:uuid":um};Object.setPrototypeOf(En,null);function ki(t){return t&&(En[t]||En[t.toLowerCase()])||void 0}var dm={SCHEMES:En,getSchemeHandler:ki};const{normalizeIPv6:pm,removeDotSegments:mr,recomposeAuthority:mm,normalizePercentEncoding:hm,normalizePathEncoding:ym,escapePreservingEscapes:gm,reescapeHostDelimiters:$m,isIPv4:bm,nonSimpleDomain:vm}=ef,{SCHEMES:wm,getSchemeHandler:of}=dm;function _m(t,e){return typeof t=="string"?t=Om(t,e):typeof t=="object"&&(t=Gt(jt(t,e),e)),t}function Pm(t,e,r){const n=r?Object.assign({scheme:"null"},r):{scheme:"null"},s=af(Gt(t,n),Gt(e,n),n,!0);return n.skipEscape=!0,jt(s,n)}function af(t,e,r,n){const s={};return n||(t=Gt(jt(t,r),r),e=Gt(jt(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(s.scheme=e.scheme,s.userinfo=e.userinfo,s.host=e.host,s.port=e.port,s.path=mr(e.path||""),s.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(s.userinfo=e.userinfo,s.host=e.host,s.port=e.port,s.path=mr(e.path||""),s.query=e.query):(e.path?(e.path[0]==="/"?s.path=mr(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?s.path="/"+e.path:t.path?s.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:s.path=e.path,s.path=mr(s.path)),s.query=e.query):(s.path=t.path,e.query!==void 0?s.query=e.query:s.query=t.query),s.userinfo=t.userinfo,s.host=t.host,s.port=t.port),s.scheme=t.scheme),s.fragment=e.fragment,s}function Em(t,e,r){const n=Xo(t,r),s=Xo(e,r);return n!==void 0&&s!==void 0&&n.toLowerCase()===s.toLowerCase()}function jt(t,e){const r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),s=[],i=of(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=hm(r.path):(r.path=gm(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&s.push(r.scheme,":");const o=mm(r);if(o!==void 0&&(n.reference!=="suffix"&&s.push("//"),s.push(o),r.path&&r.path[0]!=="/"&&s.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(a=mr(a)),o===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),s.push(a)}return r.query!==void 0&&s.push("?",r.query),r.fragment!==void 0&&s.push("#",r.fragment),s.join("")}const Sm=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function jm(t,e){if(e[2]!==void 0&&t.path&&t.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof t.port=="number"&&(t.port<0||t.port>65535))return"URI port is malformed."}function cf(t,e){const r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let s=!1,i=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);const o=t.match(Sm);if(o){n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5]);const a=jm(n,o);if(a!==void 0&&(n.error=n.error||a,s=!0),n.host)if(bm(n.host)===!1){const u=pm(n.host);n.host=u.host.toLowerCase(),i=u.isIPV6}else i=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");const c=of(r.scheme||n.scheme);if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&i===!1&&vm(n.host))try{n.host=new URL("http://"+n.host).hostname}catch(f){n.error=n.error||"Host's domain name can not be converted to ASCII: "+f}if((!c||c&&!c.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=$m(unescape(n.host),i))),n.path&&(n.path=ym(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:s}}function Gt(t,e){return cf(t,e).parsed}function Om(t,e){return ff(t,e).normalized}function ff(t,e){const{parsed:r,malformedAuthorityOrPort:n}=cf(t,e);return{normalized:n?t:jt(r,e),malformedAuthorityOrPort:n}}function Xo(t,e){if(typeof t=="string"){const{normalized:r,malformedAuthorityOrPort:n}=ff(t,e);return n?void 0:r}if(typeof t=="object")return jt(t,e)}const Ii={SCHEMES:wm,normalize:_m,resolve:Pm,resolveComponent:af,equal:Em,serialize:jt,parse:Gt};Vn.exports=Ii;Vn.exports.default=Ii;Vn.exports.fastUri=Ii;var km=Vn.exports;Object.defineProperty(ji,"__esModule",{value:!0});const lf=km;lf.code='require("ajv/dist/runtime/uri").default';ji.default=lf;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=Cr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var r=W;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=tr,s=It,i=St,o=ke,a=W,c=_e,f=$e,u=D,l=Lp,d=ji,p=(R,P)=>new RegExp(R,P);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),h={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},v=200;function w(R){var P,N,E,g,b,k,z,H,ne,re,_,S,A,x,B,Z,ye,Re,be,Pe,ge,Ye,je,or,ar;const dt=R.strict,cr=(P=R.code)===null||P===void 0?void 0:P.optimize,Jr=cr===!0||cr===void 0?1:cr||0,Gr=(E=(N=R.code)===null||N===void 0?void 0:N.regExp)!==null&&E!==void 0?E:p,ns=(g=R.uriResolver)!==null&&g!==void 0?g:d.default;return{strictSchema:(k=(b=R.strictSchema)!==null&&b!==void 0?b:dt)!==null&&k!==void 0?k:!0,strictNumbers:(H=(z=R.strictNumbers)!==null&&z!==void 0?z:dt)!==null&&H!==void 0?H:!0,strictTypes:(re=(ne=R.strictTypes)!==null&&ne!==void 0?ne:dt)!==null&&re!==void 0?re:"log",strictTuples:(S=(_=R.strictTuples)!==null&&_!==void 0?_:dt)!==null&&S!==void 0?S:"log",strictRequired:(x=(A=R.strictRequired)!==null&&A!==void 0?A:dt)!==null&&x!==void 0?x:!1,code:R.code?{...R.code,optimize:Jr,regExp:Gr}:{optimize:Jr,regExp:Gr},loopRequired:(B=R.loopRequired)!==null&&B!==void 0?B:v,loopEnum:(Z=R.loopEnum)!==null&&Z!==void 0?Z:v,meta:(ye=R.meta)!==null&&ye!==void 0?ye:!0,messages:(Re=R.messages)!==null&&Re!==void 0?Re:!0,inlineRefs:(be=R.inlineRefs)!==null&&be!==void 0?be:!0,schemaId:(Pe=R.schemaId)!==null&&Pe!==void 0?Pe:"$id",addUsedSchema:(ge=R.addUsedSchema)!==null&&ge!==void 0?ge:!0,validateSchema:(Ye=R.validateSchema)!==null&&Ye!==void 0?Ye:!0,validateFormats:(je=R.validateFormats)!==null&&je!==void 0?je:!0,unicodeRegExp:(or=R.unicodeRegExp)!==null&&or!==void 0?or:!0,int32range:(ar=R.int32range)!==null&&ar!==void 0?ar:!0,uriResolver:ns}}class j{constructor(P={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,P=this.opts={...P,...w(P)};const{es5:N,lines:E}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:y,es5:N,lines:E}),this.logger=F(P.logger);const g=P.validateFormats;P.validateFormats=!1,this.RULES=(0,i.getRules)(),O.call(this,h,P,"NOT SUPPORTED"),O.call(this,$,P,"DEPRECATED","warn"),this._metaOpts=te.call(this),P.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),P.keywords&&G.call(this,P.keywords),typeof P.meta=="object"&&this.addMetaSchema(P.meta),M.call(this),P.validateFormats=g}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:P,meta:N,schemaId:E}=this.opts;let g=l;E==="id"&&(g={...l},g.id=g.$id,delete g.$id),N&&P&&this.addMetaSchema(g,g[E],!1)}defaultMeta(){const{meta:P,schemaId:N}=this.opts;return this.opts.defaultMeta=typeof P=="object"?P[N]||P:void 0}validate(P,N){let E;if(typeof P=="string"){if(E=this.getSchema(P),!E)throw new Error(`no schema with key or ref "${P}"`)}else E=this.compile(P);const g=E(N);return"$async"in E||(this.errors=E.errors),g}compile(P,N){const E=this._addSchema(P,N);return E.validate||this._compileSchemaEnv(E)}compileAsync(P,N){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:E}=this.opts;return g.call(this,P,N);async function g(re,_){await b.call(this,re.$schema);const S=this._addSchema(re,_);return S.validate||k.call(this,S)}async function b(re){re&&!this.getSchema(re)&&await g.call(this,{$ref:re},!0)}async function k(re){try{return this._compileSchemaEnv(re)}catch(_){if(!(_ instanceof s.default))throw _;return z.call(this,_),await H.call(this,_.missingSchema),k.call(this,re)}}function z({missingSchema:re,missingRef:_}){if(this.refs[re])throw new Error(`AnySchema ${re} is loaded but ${_} cannot be resolved`)}async function H(re){const _=await ne.call(this,re);this.refs[re]||await b.call(this,_.$schema),this.refs[re]||this.addSchema(_,re,N)}async function ne(re){const _=this._loading[re];if(_)return _;try{return await(this._loading[re]=E(re))}finally{delete this._loading[re]}}}addSchema(P,N,E,g=this.opts.validateSchema){if(Array.isArray(P)){for(const k of P)this.addSchema(k,void 0,E,g);return this}let b;if(typeof P=="object"){const{schemaId:k}=this.opts;if(b=P[k],b!==void 0&&typeof b!="string")throw new Error(`schema ${k} must be string`)}return N=(0,c.normalizeId)(N||b),this._checkUnique(N),this.schemas[N]=this._addSchema(P,E,N,g,!0),this}addMetaSchema(P,N,E=this.opts.validateSchema){return this.addSchema(P,N,!0,E),this}validateSchema(P,N){if(typeof P=="boolean")return!0;let E;if(E=P.$schema,E!==void 0&&typeof E!="string")throw new Error("$schema must be a string");if(E=E||this.opts.defaultMeta||this.defaultMeta(),!E)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const g=this.validate(E,P);if(!g&&N){const b="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(b);else throw new Error(b)}return g}getSchema(P){let N;for(;typeof(N=L.call(this,P))=="string";)P=N;if(N===void 0){const{schemaId:E}=this.opts,g=new o.SchemaEnv({schema:{},schemaId:E});if(N=o.resolveSchema.call(this,g,P),!N)return;this.refs[P]=N}return N.validate||this._compileSchemaEnv(N)}removeSchema(P){if(P instanceof RegExp)return this._removeAllSchemas(this.schemas,P),this._removeAllSchemas(this.refs,P),this;switch(typeof P){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const N=L.call(this,P);return typeof N=="object"&&this._cache.delete(N.schema),delete this.schemas[P],delete this.refs[P],this}case"object":{const N=P;this._cache.delete(N);let E=P[this.opts.schemaId];return E&&(E=(0,c.normalizeId)(E),delete this.schemas[E],delete this.refs[E]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(P){for(const N of P)this.addKeyword(N);return this}addKeyword(P,N){let E;if(typeof P=="string")E=P,typeof N=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),N.keyword=E);else if(typeof P=="object"&&N===void 0){if(N=P,E=N.keyword,Array.isArray(E)&&!E.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(U.call(this,E,N),!N)return(0,u.eachItem)(E,b=>se.call(this,b)),this;ue.call(this,N);const g={...N,type:(0,f.getJSONTypes)(N.type),schemaType:(0,f.getJSONTypes)(N.schemaType)};return(0,u.eachItem)(E,g.type.length===0?b=>se.call(this,b,g):b=>g.type.forEach(k=>se.call(this,b,g,k))),this}getKeyword(P){const N=this.RULES.all[P];return typeof N=="object"?N.definition:!!N}removeKeyword(P){const{RULES:N}=this;delete N.keywords[P],delete N.all[P];for(const E of N.rules){const g=E.rules.findIndex(b=>b.keyword===P);g>=0&&E.rules.splice(g,1)}return this}addFormat(P,N){return typeof N=="string"&&(N=new RegExp(N)),this.formats[P]=N,this}errorsText(P=this.errors,{separator:N=", ",dataVar:E="data"}={}){return!P||P.length===0?"No errors":P.map(g=>`${E}${g.instancePath} ${g.message}`).reduce((g,b)=>g+N+b)}$dataMetaSchema(P,N){const E=this.RULES.all;P=JSON.parse(JSON.stringify(P));for(const g of N){const b=g.split("/").slice(1);let k=P;for(const z of b)k=k[z];for(const z in E){const H=E[z];if(typeof H!="object")continue;const{$data:ne}=H.definition,re=k[z];ne&&re&&(k[z]=Ae(re))}}return P}_removeAllSchemas(P,N){for(const E in P){const g=P[E];(!N||N.test(E))&&(typeof g=="string"?delete P[E]:g&&!g.meta&&(this._cache.delete(g.schema),delete P[E]))}}_addSchema(P,N,E,g=this.opts.validateSchema,b=this.opts.addUsedSchema){let k;const{schemaId:z}=this.opts;if(typeof P=="object")k=P[z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof P!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(P);if(H!==void 0)return H;E=(0,c.normalizeId)(k||E);const ne=c.getSchemaRefs.call(this,P,E);return H=new o.SchemaEnv({schema:P,schemaId:z,meta:N,baseId:E,localRefs:ne}),this._cache.set(H.schema,H),b&&!E.startsWith("#")&&(E&&this._checkUnique(E),this.refs[E]=H),g&&this.validateSchema(P,!0),H}_checkUnique(P){if(this.schemas[P]||this.refs[P])throw new Error(`schema with key or id "${P}" already exists`)}_compileSchemaEnv(P){if(P.meta?this._compileMetaSchema(P):o.compileSchema.call(this,P),!P.validate)throw new Error("ajv implementation error");return P.validate}_compileMetaSchema(P){const N=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,P)}finally{this.opts=N}}}j.ValidationError=n.default,j.MissingRefError=s.default,t.default=j;function O(R,P,N,E="error"){for(const g in R){const b=g;b in P&&this.logger[E](`${N}: option ${g}. ${R[b]}`)}}function L(R){return R=(0,c.normalizeId)(R),this.schemas[R]||this.refs[R]}function M(){const R=this.opts.schemas;if(R)if(Array.isArray(R))this.addSchema(R);else for(const P in R)this.addSchema(R[P],P)}function C(){for(const R in this.opts.formats){const P=this.opts.formats[R];P&&this.addFormat(R,P)}}function G(R){if(Array.isArray(R)){this.addVocabulary(R);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const P in R){const N=R[P];N.keyword||(N.keyword=P),this.addKeyword(N)}}function te(){const R={...this.opts};for(const P of m)delete R[P];return R}const q={log(){},warn(){},error(){}};function F(R){if(R===!1)return q;if(R===void 0)return console;if(R.log&&R.warn&&R.error)return R;throw new Error("logger must implement log, warn and error methods")}const K=/^[a-z_$][a-z0-9_$:-]*$/i;function U(R,P){const{RULES:N}=this;if((0,u.eachItem)(R,E=>{if(N.keywords[E])throw new Error(`Keyword ${E} is already defined`);if(!K.test(E))throw new Error(`Keyword ${E} has invalid name`)}),!!P&&P.$data&&!("code"in P||"validate"in P))throw new Error('$data keyword must have "code" or "validate" function')}function se(R,P,N){var E;const g=P==null?void 0:P.post;if(N&&g)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:b}=this;let k=g?b.post:b.rules.find(({type:H})=>H===N);if(k||(k={type:N,rules:[]},b.rules.push(k)),b.keywords[R]=!0,!P)return;const z={keyword:R,definition:{...P,type:(0,f.getJSONTypes)(P.type),schemaType:(0,f.getJSONTypes)(P.schemaType)}};P.before?ce.call(this,k,z,P.before):k.rules.push(z),b.all[R]=z,(E=P.implements)===null||E===void 0||E.forEach(H=>this.addKeyword(H))}function ce(R,P,N){const E=R.rules.findIndex(g=>g.keyword===N);E>=0?R.rules.splice(E,0,P):(R.rules.push(P),this.logger.warn(`rule ${N} is not defined`))}function ue(R){let{metaSchema:P}=R;P!==void 0&&(R.$data&&this.opts.$data&&(P=Ae(P)),R.validateSchema=this.compile(P,!0))}const Ne={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ae(R){return{anyOf:[R,Ne]}}})(Pt);var Ni={},Un={},Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});const Im={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Ai.default=Im;var We={};Object.defineProperty(We,"__esModule",{value:!0});We.callRef=We.getValidate=void 0;const Nm=It,Qo=ee,Te=W,xt=xe,Zo=ke,tn=D,Am={keyword:"$ref",schemaType:"string",code(t){const{gen:e,schema:r,it:n}=t,{baseId:s,schemaEnv:i,validateName:o,opts:a,self:c}=n,{root:f}=i;if((r==="#"||r==="#/")&&s===f.baseId)return l();const u=Zo.resolveRef.call(c,f,s,r);if(u===void 0)throw new Nm.default(n.opts.uriResolver,s,r);if(u instanceof Zo.SchemaEnv)return d(u);return p(u);function l(){if(i===f)return hn(t,o,i,i.$async);const m=e.scopeValue("root",{ref:f});return hn(t,(0,Te._)`${m}.validate`,f,f.$async)}function d(m){const y=uf(t,m);hn(t,y,m,m.$async)}function p(m){const y=e.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,Te.stringify)(m)}:{ref:m}),h=e.name("valid"),$=t.subschema({schema:m,dataTypes:[],schemaPath:Te.nil,topSchemaRef:y,errSchemaPath:r},h);t.mergeEvaluated($),t.ok(h)}}};function uf(t,e){const{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,Te._)`${r.scopeValue("wrapper",{ref:e})}.validate`}We.getValidate=uf;function hn(t,e,r,n){const{gen:s,it:i}=t,{allErrors:o,schemaEnv:a,opts:c}=i,f=c.passContext?xt.default.this:Te.nil;n?u():l();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");const m=s.let("valid");s.try(()=>{s.code((0,Te._)`await ${(0,Qo.callValidateCode)(t,e,f)}`),p(e),o||s.assign(m,!0)},y=>{s.if((0,Te._)`!(${y} instanceof ${i.ValidationError})`,()=>s.throw(y)),d(y),o||s.assign(m,!1)}),t.ok(m)}function l(){t.result((0,Qo.callValidateCode)(t,e,f),()=>p(e),()=>d(e))}function d(m){const y=(0,Te._)`${m}.errors`;s.assign(xt.default.vErrors,(0,Te._)`${xt.default.vErrors} === null ? ${y} : ${xt.default.vErrors}.concat(${y})`),s.assign(xt.default.errors,(0,Te._)`${xt.default.vErrors}.length`)}function p(m){var y;if(!i.opts.unevaluated)return;const h=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(i.props!==!0)if(h&&!h.dynamicProps)h.props!==void 0&&(i.props=tn.mergeEvaluated.props(s,h.props,i.props));else{const $=s.var("props",(0,Te._)`${m}.evaluated.props`);i.props=tn.mergeEvaluated.props(s,$,i.props,Te.Name)}if(i.items!==!0)if(h&&!h.dynamicItems)h.items!==void 0&&(i.items=tn.mergeEvaluated.items(s,h.items,i.items));else{const $=s.var("items",(0,Te._)`${m}.evaluated.items`);i.items=tn.mergeEvaluated.items(s,$,i.items,Te.Name)}}}We.callRef=hn;We.default=Am;Object.defineProperty(Un,"__esModule",{value:!0});const Tm=Ai,Rm=We,xm=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Tm.default,Rm.default];Un.default=xm;var Fn={},Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});const Sn=W,it=Sn.operators,jn={maximum:{okStr:"<=",ok:it.LTE,fail:it.GT},minimum:{okStr:">=",ok:it.GTE,fail:it.LT},exclusiveMaximum:{okStr:"<",ok:it.LT,fail:it.GTE},exclusiveMinimum:{okStr:">",ok:it.GT,fail:it.LTE}},Cm={message:({keyword:t,schemaCode:e})=>(0,Sn.str)`must be ${jn[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Sn._)`{comparison: ${jn[t].okStr}, limit: ${e}}`},Mm={keyword:Object.keys(jn),type:"number",schemaType:"number",$data:!0,error:Cm,code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,Sn._)`${r} ${jn[e].fail} ${n} || isNaN(${r})`)}};Ti.default=Mm;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});const $r=W,qm={message:({schemaCode:t})=>(0,$r.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,$r._)`{multipleOf: ${t}}`},Dm={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:qm,code(t){const{gen:e,data:r,schemaCode:n,it:s}=t,i=s.opts.multipleOfPrecision,o=e.let("res"),a=i?(0,$r._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${i}`:(0,$r._)`${o} !== parseInt(${o})`;t.fail$data((0,$r._)`(${n} === 0 || (${o} = ${r}/${n}, ${a}))`)}};zn.default=Dm;var Kn={},Ri={};Object.defineProperty(Ri,"__esModule",{value:!0});function df(t){const e=t.length;let r=0,n=0,s;for(;n<e;)r++,s=t.charCodeAt(n++),s>=55296&&s<=56319&&n<e&&(s=t.charCodeAt(n),(s&64512)===56320&&n++);return r}Ri.default=df;df.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Kn,"__esModule",{value:!0});const yt=W,Lm=D,Vm=Ri,Um={message({keyword:t,schemaCode:e}){const r=t==="maxLength"?"more":"fewer";return(0,yt.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,yt._)`{limit: ${t}}`},Fm={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Um,code(t){const{keyword:e,data:r,schemaCode:n,it:s}=t,i=e==="maxLength"?yt.operators.GT:yt.operators.LT,o=s.opts.unicode===!1?(0,yt._)`${r}.length`:(0,yt._)`${(0,Lm.useFunc)(t.gen,Vm.default)}(${r})`;t.fail$data((0,yt._)`${o} ${i} ${n}`)}};Kn.default=Fm;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});const zm=ee,Km=D,Lt=W,Bm={message:({schemaCode:t})=>(0,Lt.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Lt._)`{pattern: ${t}}`},Hm={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Bm,code(t){const{gen:e,data:r,$data:n,schema:s,schemaCode:i,it:o}=t,a=o.opts.unicodeRegExp?"u":"";if(n){const{regExp:c}=o.opts.code,f=c.code==="new RegExp"?(0,Lt._)`new RegExp`:(0,Km.useFunc)(e,c),u=e.let("valid");e.try(()=>e.assign(u,(0,Lt._)`${f}(${i}, ${a}).test(${r})`),()=>e.assign(u,!1)),t.fail$data((0,Lt._)`!${u}`)}else{const c=(0,zm.usePattern)(t,s);t.fail$data((0,Lt._)`!${c}.test(${r})`)}}};Bn.default=Hm;var Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});const br=W,Jm={message({keyword:t,schemaCode:e}){const r=t==="maxProperties"?"more":"fewer";return(0,br.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,br._)`{limit: ${t}}`},Gm={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Jm,code(t){const{keyword:e,data:r,schemaCode:n}=t,s=e==="maxProperties"?br.operators.GT:br.operators.LT;t.fail$data((0,br._)`Object.keys(${r}).length ${s} ${n}`)}};Hn.default=Gm;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});const ur=ee,vr=W,Wm=D,Ym={message:({params:{missingProperty:t}})=>(0,vr.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,vr._)`{missingProperty: ${t}}`},Xm={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Ym,code(t){const{gen:e,schema:r,schemaCode:n,data:s,$data:i,it:o}=t,{opts:a}=o;if(!i&&r.length===0)return;const c=r.length>=a.loopRequired;if(o.allErrors?f():u(),a.strictRequired){const p=t.parentSchema.properties,{definedProperties:m}=t.it;for(const y of r)if((p==null?void 0:p[y])===void 0&&!m.has(y)){const h=o.schemaEnv.baseId+o.errSchemaPath,$=`required property "${y}" is not defined at "${h}" (strictRequired)`;(0,Wm.checkStrictMode)(o,$,o.opts.strictRequired)}}function f(){if(c||i)t.block$data(vr.nil,l);else for(const p of r)(0,ur.checkReportMissingProp)(t,p)}function u(){const p=e.let("missing");if(c||i){const m=e.let("valid",!0);t.block$data(m,()=>d(p,m)),t.ok(m)}else e.if((0,ur.checkMissingProp)(t,r,p)),(0,ur.reportMissingProp)(t,p),e.else()}function l(){e.forOf("prop",n,p=>{t.setParams({missingProperty:p}),e.if((0,ur.noPropertyInData)(e,s,p,a.ownProperties),()=>t.error())})}function d(p,m){t.setParams({missingProperty:p}),e.forOf(p,n,()=>{e.assign(m,(0,ur.propertyInData)(e,s,p,a.ownProperties)),e.if((0,vr.not)(m),()=>{t.error(),e.break()})},vr.nil)}}};Jn.default=Xm;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});const wr=W,Qm={message({keyword:t,schemaCode:e}){const r=t==="maxItems"?"more":"fewer";return(0,wr.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,wr._)`{limit: ${t}}`},Zm={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Qm,code(t){const{keyword:e,data:r,schemaCode:n}=t,s=e==="maxItems"?wr.operators.GT:wr.operators.LT;t.fail$data((0,wr._)`${r}.length ${s} ${n}`)}};Gn.default=Zm;var Wn={},Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});const pf=zc;pf.code='require("ajv/dist/runtime/equal").default';Mr.default=pf;Object.defineProperty(Wn,"__esModule",{value:!0});const ys=$e,ve=W,eh=D,th=Mr,rh={message:({params:{i:t,j:e}})=>(0,ve.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,ve._)`{i: ${t}, j: ${e}}`},nh={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:rh,code(t){const{gen:e,data:r,$data:n,schema:s,parentSchema:i,schemaCode:o,it:a}=t;if(!n&&!s)return;const c=e.let("valid"),f=i.items?(0,ys.getSchemaTypes)(i.items):[];t.block$data(c,u,(0,ve._)`${o} === false`),t.ok(c);function u(){const m=e.let("i",(0,ve._)`${r}.length`),y=e.let("j");t.setParams({i:m,j:y}),e.assign(c,!0),e.if((0,ve._)`${m} > 1`,()=>(l()?d:p)(m,y))}function l(){return f.length>0&&!f.some(m=>m==="object"||m==="array")}function d(m,y){const h=e.name("item"),$=(0,ys.checkDataTypes)(f,h,a.opts.strictNumbers,ys.DataType.Wrong),v=e.const("indices",(0,ve._)`{}`);e.for((0,ve._)`;${m}--;`,()=>{e.let(h,(0,ve._)`${r}[${m}]`),e.if($,(0,ve._)`continue`),f.length>1&&e.if((0,ve._)`typeof ${h} == "string"`,(0,ve._)`${h} += "_"`),e.if((0,ve._)`typeof ${v}[${h}] == "number"`,()=>{e.assign(y,(0,ve._)`${v}[${h}]`),t.error(),e.assign(c,!1).break()}).code((0,ve._)`${v}[${h}] = ${m}`)})}function p(m,y){const h=(0,eh.useFunc)(e,th.default),$=e.name("outer");e.label($).for((0,ve._)`;${m}--;`,()=>e.for((0,ve._)`${y} = ${m}; ${y}--;`,()=>e.if((0,ve._)`${h}(${r}[${m}], ${r}[${y}])`,()=>{t.error(),e.assign(c,!1).break($)})))}}};Wn.default=nh;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const Vs=W,sh=D,ih=Mr,oh={message:"must be equal to constant",params:({schemaCode:t})=>(0,Vs._)`{allowedValue: ${t}}`},ah={keyword:"const",$data:!0,error:oh,code(t){const{gen:e,data:r,$data:n,schemaCode:s,schema:i}=t;n||i&&typeof i=="object"?t.fail$data((0,Vs._)`!${(0,sh.useFunc)(e,ih.default)}(${r}, ${s})`):t.fail((0,Vs._)`${i} !== ${r}`)}};Yn.default=ah;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});const hr=W,ch=D,fh=Mr,lh={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,hr._)`{allowedValues: ${t}}`},uh={keyword:"enum",schemaType:"array",$data:!0,error:lh,code(t){const{gen:e,data:r,$data:n,schema:s,schemaCode:i,it:o}=t;if(!n&&s.length===0)throw new Error("enum must have non-empty array");const a=s.length>=o.opts.loopEnum;let c;const f=()=>c??(c=(0,ch.useFunc)(e,fh.default));let u;if(a||n)u=e.let("valid"),t.block$data(u,l);else{if(!Array.isArray(s))throw new Error("ajv implementation error");const p=e.const("vSchema",i);u=(0,hr.or)(...s.map((m,y)=>d(p,y)))}t.pass(u);function l(){e.assign(u,!1),e.forOf("v",i,p=>e.if((0,hr._)`${f()}(${r}, ${p})`,()=>e.assign(u,!0).break()))}function d(p,m){const y=s[m];return typeof y=="object"&&y!==null?(0,hr._)`${f()}(${r}, ${p}[${m}])`:(0,hr._)`${r} === ${y}`}}};Xn.default=uh;Object.defineProperty(Fn,"__esModule",{value:!0});const dh=Ti,ph=zn,mh=Kn,hh=Bn,yh=Hn,gh=Jn,$h=Gn,bh=Wn,vh=Yn,wh=Xn,_h=[dh.default,ph.default,mh.default,hh.default,yh.default,gh.default,$h.default,bh.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},vh.default,wh.default];Fn.default=_h;var qr={},rr={};Object.defineProperty(rr,"__esModule",{value:!0});rr.validateAdditionalItems=void 0;const gt=W,Us=D,Ph={message:({params:{len:t}})=>(0,gt.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,gt._)`{limit: ${t}}`},Eh={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Ph,code(t){const{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,Us.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}mf(t,n)}};function mf(t,e){const{gen:r,schema:n,data:s,keyword:i,it:o}=t;o.items=!0;const a=r.const("len",(0,gt._)`${s}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,gt._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,Us.alwaysValidSchema)(o,n)){const f=r.var("valid",(0,gt._)`${a} <= ${e.length}`);r.if((0,gt.not)(f),()=>c(f)),t.ok(f)}function c(f){r.forRange("i",e.length,a,u=>{t.subschema({keyword:i,dataProp:u,dataPropType:Us.Type.Num},f),o.allErrors||r.if((0,gt.not)(f),()=>r.break())})}}rr.validateAdditionalItems=mf;rr.default=Eh;var xi={},nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.validateTuple=void 0;const ea=W,yn=D,Sh=ee,jh={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:e,it:r}=t;if(Array.isArray(e))return hf(t,"additionalItems",e);r.items=!0,!(0,yn.alwaysValidSchema)(r,e)&&t.ok((0,Sh.validateArray)(t))}};function hf(t,e,r=t.schema){const{gen:n,parentSchema:s,data:i,keyword:o,it:a}=t;u(s),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=yn.mergeEvaluated.items(n,r.length,a.items));const c=n.name("valid"),f=n.const("len",(0,ea._)`${i}.length`);r.forEach((l,d)=>{(0,yn.alwaysValidSchema)(a,l)||(n.if((0,ea._)`${f} > ${d}`,()=>t.subschema({keyword:o,schemaProp:d,dataProp:d},c)),t.ok(c))});function u(l){const{opts:d,errSchemaPath:p}=a,m=r.length,y=m===l.minItems&&(m===l.maxItems||l[e]===!1);if(d.strictTuples&&!y){const h=`"${o}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${p}"`;(0,yn.checkStrictMode)(a,h,d.strictTuples)}}}nr.validateTuple=hf;nr.default=jh;Object.defineProperty(xi,"__esModule",{value:!0});const Oh=nr,kh={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,Oh.validateTuple)(t,"items")};xi.default=kh;var Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});const ta=W,Ih=D,Nh=ee,Ah=rr,Th={message:({params:{len:t}})=>(0,ta.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,ta._)`{limit: ${t}}`},Rh={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Th,code(t){const{schema:e,parentSchema:r,it:n}=t,{prefixItems:s}=r;n.items=!0,!(0,Ih.alwaysValidSchema)(n,e)&&(s?(0,Ah.validateAdditionalItems)(t,s):t.ok((0,Nh.validateArray)(t)))}};Ci.default=Rh;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});const Ce=W,rn=D,xh={message:({params:{min:t,max:e}})=>e===void 0?(0,Ce.str)`must contain at least ${t} valid item(s)`:(0,Ce.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Ce._)`{minContains: ${t}}`:(0,Ce._)`{minContains: ${t}, maxContains: ${e}}`},Ch={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:xh,code(t){const{gen:e,schema:r,parentSchema:n,data:s,it:i}=t;let o,a;const{minContains:c,maxContains:f}=n;i.opts.next?(o=c===void 0?1:c,a=f):o=1;const u=e.const("len",(0,Ce._)`${s}.length`);if(t.setParams({min:o,max:a}),a===void 0&&o===0){(0,rn.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,rn.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,rn.alwaysValidSchema)(i,r)){let y=(0,Ce._)`${u} >= ${o}`;a!==void 0&&(y=(0,Ce._)`${y} && ${u} <= ${a}`),t.pass(y);return}i.items=!0;const l=e.name("valid");a===void 0&&o===1?p(l,()=>e.if(l,()=>e.break())):o===0?(e.let(l,!0),a!==void 0&&e.if((0,Ce._)`${s}.length > 0`,d)):(e.let(l,!1),d()),t.result(l,()=>t.reset());function d(){const y=e.name("_valid"),h=e.let("count",0);p(y,()=>e.if(y,()=>m(h)))}function p(y,h){e.forRange("i",0,u,$=>{t.subschema({keyword:"contains",dataProp:$,dataPropType:rn.Type.Num,compositeRule:!0},y),h()})}function m(y){e.code((0,Ce._)`${y}++`),a===void 0?e.if((0,Ce._)`${y} >= ${o}`,()=>e.assign(l,!0).break()):(e.if((0,Ce._)`${y} > ${a}`,()=>e.assign(l,!1).break()),o===1?e.assign(l,!0):e.if((0,Ce._)`${y} >= ${o}`,()=>e.assign(l,!0)))}}};Mi.default=Ch;var Qn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=W,r=D,n=ee;t.error={message:({params:{property:c,depsCount:f,deps:u}})=>{const l=f===1?"property":"properties";return(0,e.str)`must have ${l} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:f,deps:u,missingProperty:l}})=>(0,e._)`{property: ${c},
|
|
137
|
-
missingProperty: ${l},
|
|
138
|
-
depsCount: ${f},
|
|
139
|
-
deps: ${u}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(c){const[f,u]=i(c);o(c,f),a(c,u)}};function i({schema:c}){const f={},u={};for(const l in c){if(l==="__proto__")continue;const d=Array.isArray(c[l])?f:u;d[l]=c[l]}return[f,u]}function o(c,f=c.schema){const{gen:u,data:l,it:d}=c;if(Object.keys(f).length===0)return;const p=u.let("missing");for(const m in f){const y=f[m];if(y.length===0)continue;const h=(0,n.propertyInData)(u,l,m,d.opts.ownProperties);c.setParams({property:m,depsCount:y.length,deps:y.join(", ")}),d.allErrors?u.if(h,()=>{for(const $ of y)(0,n.checkReportMissingProp)(c,$)}):(u.if((0,e._)`${h} && (${(0,n.checkMissingProp)(c,y,p)})`),(0,n.reportMissingProp)(c,p),u.else())}}t.validatePropertyDeps=o;function a(c,f=c.schema){const{gen:u,data:l,keyword:d,it:p}=c,m=u.name("valid");for(const y in f)(0,r.alwaysValidSchema)(p,f[y])||(u.if((0,n.propertyInData)(u,l,y,p.opts.ownProperties),()=>{const h=c.subschema({keyword:d,schemaProp:y},m);c.mergeValidEvaluated(h,m)},()=>u.var(m,!0)),c.ok(m))}t.validateSchemaDeps=a,t.default=s})(Qn);var qi={};Object.defineProperty(qi,"__esModule",{value:!0});const yf=W,Mh=D,qh={message:"property name must be valid",params:({params:t})=>(0,yf._)`{propertyName: ${t.propertyName}}`},Dh={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:qh,code(t){const{gen:e,schema:r,data:n,it:s}=t;if((0,Mh.alwaysValidSchema)(s,r))return;const i=e.name("valid");e.forIn("key",n,o=>{t.setParams({propertyName:o}),t.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},i),e.if((0,yf.not)(i),()=>{t.error(!0),s.allErrors||e.break()})}),t.ok(i)}};qi.default=Dh;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});const nn=ee,ze=W,Lh=xe,sn=D,Vh={message:"must NOT have additional properties",params:({params:t})=>(0,ze._)`{additionalProperty: ${t.additionalProperty}}`},Uh={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Vh,code(t){const{gen:e,schema:r,parentSchema:n,data:s,errsCount:i,it:o}=t;if(!i)throw new Error("ajv implementation error");const{allErrors:a,opts:c}=o;if(o.props=!0,c.removeAdditional!=="all"&&(0,sn.alwaysValidSchema)(o,r))return;const f=(0,nn.allSchemaProperties)(n.properties),u=(0,nn.allSchemaProperties)(n.patternProperties);l(),t.ok((0,ze._)`${i} === ${Lh.default.errors}`);function l(){e.forIn("key",s,h=>{!f.length&&!u.length?m(h):e.if(d(h),()=>m(h))})}function d(h){let $;if(f.length>8){const v=(0,sn.schemaRefOrVal)(o,n.properties,"properties");$=(0,nn.isOwnProperty)(e,v,h)}else f.length?$=(0,ze.or)(...f.map(v=>(0,ze._)`${h} === ${v}`)):$=ze.nil;return u.length&&($=(0,ze.or)($,...u.map(v=>(0,ze._)`${(0,nn.usePattern)(t,v)}.test(${h})`))),(0,ze.not)($)}function p(h){e.code((0,ze._)`delete ${s}[${h}]`)}function m(h){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){p(h);return}if(r===!1){t.setParams({additionalProperty:h}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,sn.alwaysValidSchema)(o,r)){const $=e.name("valid");c.removeAdditional==="failing"?(y(h,$,!1),e.if((0,ze.not)($),()=>{t.reset(),p(h)})):(y(h,$),a||e.if((0,ze.not)($),()=>e.break()))}}function y(h,$,v){const w={keyword:"additionalProperties",dataProp:h,dataPropType:sn.Type.Str};v===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(w,$)}}};Zn.default=Uh;var Di={};Object.defineProperty(Di,"__esModule",{value:!0});const Fh=Cr(),ra=ee,gs=D,na=Zn,zh={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,parentSchema:n,data:s,it:i}=t;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&na.default.code(new Fh.KeywordCxt(i,na.default,"additionalProperties"));const o=(0,ra.allSchemaProperties)(r);for(const l of o)i.definedProperties.add(l);i.opts.unevaluated&&o.length&&i.props!==!0&&(i.props=gs.mergeEvaluated.props(e,(0,gs.toHash)(o),i.props));const a=o.filter(l=>!(0,gs.alwaysValidSchema)(i,r[l]));if(a.length===0)return;const c=e.name("valid");for(const l of a)f(l)?u(l):(e.if((0,ra.propertyInData)(e,s,l,i.opts.ownProperties)),u(l),i.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(l),t.ok(c);function f(l){return i.opts.useDefaults&&!i.compositeRule&&r[l].default!==void 0}function u(l){t.subschema({keyword:"properties",schemaProp:l,dataProp:l},c)}}};Di.default=zh;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});const sa=ee,on=W,ia=D,oa=D,Kh={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,data:n,parentSchema:s,it:i}=t,{opts:o}=i,a=(0,sa.allSchemaProperties)(r),c=a.filter(y=>(0,ia.alwaysValidSchema)(i,r[y]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;const f=o.strictSchema&&!o.allowMatchingProperties&&s.properties,u=e.name("valid");i.props!==!0&&!(i.props instanceof on.Name)&&(i.props=(0,oa.evaluatedPropsToName)(e,i.props));const{props:l}=i;d();function d(){for(const y of a)f&&p(y),i.allErrors?m(y):(e.var(u,!0),m(y),e.if(u))}function p(y){for(const h in f)new RegExp(y).test(h)&&(0,ia.checkStrictMode)(i,`property ${h} matches pattern ${y} (use allowMatchingProperties)`)}function m(y){e.forIn("key",n,h=>{e.if((0,on._)`${(0,sa.usePattern)(t,y)}.test(${h})`,()=>{const $=c.includes(y);$||t.subschema({keyword:"patternProperties",schemaProp:y,dataProp:h,dataPropType:oa.Type.Str},u),i.opts.unevaluated&&l!==!0?e.assign((0,on._)`${l}[${h}]`,!0):!$&&!i.allErrors&&e.if((0,on.not)(u),()=>e.break())})})}}};Li.default=Kh;var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});const Bh=D,Hh={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:r,it:n}=t;if((0,Bh.alwaysValidSchema)(n,r)){t.fail();return}const s=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.failResult(s,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Vi.default=Hh;var Ui={};Object.defineProperty(Ui,"__esModule",{value:!0});const Jh=ee,Gh={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Jh.validateUnion,error:{message:"must match a schema in anyOf"}};Ui.default=Gh;var Fi={};Object.defineProperty(Fi,"__esModule",{value:!0});const gn=W,Wh=D,Yh={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,gn._)`{passingSchemas: ${t.passing}}`},Xh={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Yh,code(t){const{gen:e,schema:r,parentSchema:n,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&n.discriminator)return;const i=r,o=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(f),t.result(o,()=>t.reset(),()=>t.error(!0));function f(){i.forEach((u,l)=>{let d;(0,Wh.alwaysValidSchema)(s,u)?e.var(c,!0):d=t.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},c),l>0&&e.if((0,gn._)`${c} && ${o}`).assign(o,!1).assign(a,(0,gn._)`[${a}, ${l}]`).else(),e.if(c,()=>{e.assign(o,!0),e.assign(a,l),d&&t.mergeEvaluated(d,gn.Name)})})}}};Fi.default=Xh;var zi={};Object.defineProperty(zi,"__esModule",{value:!0});const Qh=D,Zh={keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=e.name("valid");r.forEach((i,o)=>{if((0,Qh.alwaysValidSchema)(n,i))return;const a=t.subschema({keyword:"allOf",schemaProp:o},s);t.ok(s),t.mergeEvaluated(a)})}};zi.default=Zh;var Ki={};Object.defineProperty(Ki,"__esModule",{value:!0});const On=W,gf=D,ey={message:({params:t})=>(0,On.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,On._)`{failingKeyword: ${t.ifClause}}`},ty={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:ey,code(t){const{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,gf.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const s=aa(n,"then"),i=aa(n,"else");if(!s&&!i)return;const o=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),s&&i){const u=e.let("ifClause");t.setParams({ifClause:u}),e.if(a,f("then",u),f("else",u))}else s?e.if(a,f("then")):e.if((0,On.not)(a),f("else"));t.pass(o,()=>t.error(!0));function c(){const u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(u)}function f(u,l){return()=>{const d=t.subschema({keyword:u},a);e.assign(o,a),t.mergeValidEvaluated(d,o),l?e.assign(l,(0,On._)`${u}`):t.setParams({ifClause:u})}}}};function aa(t,e){const r=t.schema[e];return r!==void 0&&!(0,gf.alwaysValidSchema)(t,r)}Ki.default=ty;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});const ry=D,ny={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,ry.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};Bi.default=ny;Object.defineProperty(qr,"__esModule",{value:!0});const sy=rr,iy=xi,oy=nr,ay=Ci,cy=Mi,fy=Qn,ly=qi,uy=Zn,dy=Di,py=Li,my=Vi,hy=Ui,yy=Fi,gy=zi,$y=Ki,by=Bi;function vy(t=!1){const e=[my.default,hy.default,yy.default,gy.default,$y.default,by.default,ly.default,uy.default,fy.default,dy.default,py.default];return t?e.push(iy.default,ay.default):e.push(sy.default,oy.default),e.push(cy.default),e}qr.default=vy;var Dr={},Hi={};Object.defineProperty(Hi,"__esModule",{value:!0});const de=W,wy={message:({schemaCode:t})=>(0,de.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,de._)`{format: ${t}}`},_y={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:wy,code(t,e){const{gen:r,data:n,$data:s,schema:i,schemaCode:o,it:a}=t,{opts:c,errSchemaPath:f,schemaEnv:u,self:l}=a;if(!c.validateFormats)return;s?d():p();function d(){const m=r.scopeValue("formats",{ref:l.formats,code:c.code.formats}),y=r.const("fDef",(0,de._)`${m}[${o}]`),h=r.let("fType"),$=r.let("format");r.if((0,de._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(h,(0,de._)`${y}.type || "string"`).assign($,(0,de._)`${y}.validate`),()=>r.assign(h,(0,de._)`"string"`).assign($,y)),t.fail$data((0,de.or)(v(),w()));function v(){return c.strictSchema===!1?de.nil:(0,de._)`${o} && !${$}`}function w(){const j=u.$async?(0,de._)`(${y}.async ? await ${$}(${n}) : ${$}(${n}))`:(0,de._)`${$}(${n})`,O=(0,de._)`(typeof ${$} == "function" ? ${j} : ${$}.test(${n}))`;return(0,de._)`${$} && ${$} !== true && ${h} === ${e} && !${O}`}}function p(){const m=l.formats[i];if(!m){v();return}if(m===!0)return;const[y,h,$]=w(m);y===e&&t.pass(j());function v(){if(c.strictSchema===!1){l.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${i}" ignored in schema at path "${f}"`}}function w(O){const L=O instanceof RegExp?(0,de.regexpCode)(O):c.code.formats?(0,de._)`${c.code.formats}${(0,de.getProperty)(i)}`:void 0,M=r.scopeValue("formats",{key:i,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,de._)`${M}.validate`]:["string",O,M]}function j(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!u.$async)throw new Error("async format in sync schema");return(0,de._)`await ${$}(${n})`}return typeof h=="function"?(0,de._)`${$}(${n})`:(0,de._)`${$}.test(${n})`}}}};Hi.default=_y;Object.defineProperty(Dr,"__esModule",{value:!0});const Py=Hi,Ey=[Py.default];Dr.default=Ey;var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.contentVocabulary=Ot.metadataVocabulary=void 0;Ot.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ot.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(Ni,"__esModule",{value:!0});const Sy=Un,jy=Fn,Oy=qr,ky=Dr,ca=Ot,Iy=[Sy.default,jy.default,(0,Oy.default)(),ky.default,ca.metadataVocabulary,ca.contentVocabulary];Ni.default=Iy;var Lr={},es={};Object.defineProperty(es,"__esModule",{value:!0});es.DiscrError=void 0;var fa;(function(t){t.Tag="tag",t.Mapping="mapping"})(fa||(es.DiscrError=fa={}));Object.defineProperty(Lr,"__esModule",{value:!0});const Ct=W,Fs=es,la=ke,Ny=It,Ay=D,Ty={message:({params:{discrError:t,tagName:e}})=>t===Fs.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,Ct._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},Ry={keyword:"discriminator",type:"object",schemaType:"object",error:Ty,code(t){const{gen:e,data:r,schema:n,parentSchema:s,it:i}=t,{oneOf:o}=s;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const c=e.let("valid",!1),f=e.const("tag",(0,Ct._)`${r}${(0,Ct.getProperty)(a)}`);e.if((0,Ct._)`typeof ${f} == "string"`,()=>u(),()=>t.error(!1,{discrError:Fs.DiscrError.Tag,tag:f,tagName:a})),t.ok(c);function u(){const p=d();e.if(!1);for(const m in p)e.elseIf((0,Ct._)`${f} === ${m}`),e.assign(c,l(p[m]));e.else(),t.error(!1,{discrError:Fs.DiscrError.Mapping,tag:f,tagName:a}),e.endIf()}function l(p){const m=e.name("valid"),y=t.subschema({keyword:"oneOf",schemaProp:p},m);return t.mergeEvaluated(y,Ct.Name),m}function d(){var p;const m={},y=$(s);let h=!0;for(let j=0;j<o.length;j++){let O=o[j];if(O!=null&&O.$ref&&!(0,Ay.schemaHasRulesButRef)(O,i.self.RULES)){const M=O.$ref;if(O=la.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,M),O instanceof la.SchemaEnv&&(O=O.schema),O===void 0)throw new Ny.default(i.opts.uriResolver,i.baseId,M)}const L=(p=O==null?void 0:O.properties)===null||p===void 0?void 0:p[a];if(typeof L!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);h=h&&(y||$(O)),v(L,j)}if(!h)throw new Error(`discriminator: "${a}" must be required`);return m;function $({required:j}){return Array.isArray(j)&&j.includes(a)}function v(j,O){if(j.const)w(j.const,O);else if(j.enum)for(const L of j.enum)w(L,O);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function w(j,O){if(typeof j!="string"||j in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[j]=O}}}};Lr.default=Ry;const xy="http://json-schema.org/draft-07/schema#",Cy="http://json-schema.org/draft-07/schema#",My="Core schema meta-schema",qy={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Dy=["object","boolean"],Ly={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Vy={$schema:xy,$id:Cy,title:My,definitions:qy,type:Dy,properties:Ly,default:!0};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const r=Pt,n=Ni,s=Lr,i=Vy,o=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(i,o):i;this.addMetaSchema(m,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var f=Cr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var u=W;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var l=tr;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return l.default}});var d=It;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return d.default}})})(Cs,Cs.exports);var $f=Cs.exports;const Uy=kn.getDefaultExportFromCjs($f);var zs={exports:{}},Ji={},Gi={},sr={};Object.defineProperty(sr,"__esModule",{value:!0});sr.dynamicAnchor=void 0;const $s=W,Fy=xe,ua=ke,zy=We,Ky={keyword:"$dynamicAnchor",schemaType:"string",code:t=>bf(t,t.schema)};function bf(t,e){const{gen:r,it:n}=t;n.schemaEnv.root.dynamicAnchors[e]=!0;const s=(0,$s._)`${Fy.default.dynamicAnchors}${(0,$s.getProperty)(e)}`,i=n.errSchemaPath==="#"?n.validateName:By(t);r.if((0,$s._)`!${s}`,()=>r.assign(s,i))}sr.dynamicAnchor=bf;function By(t){const{schemaEnv:e,schema:r,self:n}=t.it,{root:s,baseId:i,localRefs:o,meta:a}=e.root,{schemaId:c}=n.opts,f=new ua.SchemaEnv({schema:r,schemaId:c,root:s,baseId:i,localRefs:o,meta:a});return ua.compileSchema.call(n,f),(0,zy.getValidate)(t,f)}sr.default=Ky;var ir={};Object.defineProperty(ir,"__esModule",{value:!0});ir.dynamicRef=void 0;const da=W,Hy=xe,pa=We,Jy={keyword:"$dynamicRef",schemaType:"string",code:t=>vf(t,t.schema)};function vf(t,e){const{gen:r,keyword:n,it:s}=t;if(e[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);const i=e.slice(1);if(s.allErrors)o();else{const c=r.let("valid",!1);o(c),t.ok(c)}function o(c){if(s.schemaEnv.root.dynamicAnchors[i]){const f=r.let("_v",(0,da._)`${Hy.default.dynamicAnchors}${(0,da.getProperty)(i)}`);r.if(f,a(f,c),a(s.validateName,c))}else a(s.validateName,c)()}function a(c,f){return f?()=>r.block(()=>{(0,pa.callRef)(t,c),r.let(f,!0)}):()=>(0,pa.callRef)(t,c)}}ir.dynamicRef=vf;ir.default=Jy;var Wi={};Object.defineProperty(Wi,"__esModule",{value:!0});const Gy=sr,Wy=D,Yy={keyword:"$recursiveAnchor",schemaType:"boolean",code(t){t.schema?(0,Gy.dynamicAnchor)(t,""):(0,Wy.checkStrictMode)(t.it,"$recursiveAnchor: false is ignored")}};Wi.default=Yy;var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});const Xy=ir,Qy={keyword:"$recursiveRef",schemaType:"string",code:t=>(0,Xy.dynamicRef)(t,t.schema)};Yi.default=Qy;Object.defineProperty(Gi,"__esModule",{value:!0});const Zy=sr,eg=ir,tg=Wi,rg=Yi,ng=[Zy.default,eg.default,tg.default,rg.default];Gi.default=ng;var Xi={},Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});const ma=Qn,sg={keyword:"dependentRequired",type:"object",schemaType:"object",error:ma.error,code:t=>(0,ma.validatePropertyDeps)(t)};Qi.default=sg;var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0});const ig=Qn,og={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t=>(0,ig.validateSchemaDeps)(t)};Zi.default=og;var eo={};Object.defineProperty(eo,"__esModule",{value:!0});const ag=D,cg={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:t,parentSchema:e,it:r}){e.contains===void 0&&(0,ag.checkStrictMode)(r,`"${t}" without "contains" is ignored`)}};eo.default=cg;Object.defineProperty(Xi,"__esModule",{value:!0});const fg=Qi,lg=Zi,ug=eo,dg=[fg.default,lg.default,ug.default];Xi.default=dg;var to={},ro={};Object.defineProperty(ro,"__esModule",{value:!0});const at=W,ha=D,pg=xe,mg={message:"must NOT have unevaluated properties",params:({params:t})=>(0,at._)`{unevaluatedProperty: ${t.unevaluatedProperty}}`},hg={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:mg,code(t){const{gen:e,schema:r,data:n,errsCount:s,it:i}=t;if(!s)throw new Error("ajv implementation error");const{allErrors:o,props:a}=i;a instanceof at.Name?e.if((0,at._)`${a} !== true`,()=>e.forIn("key",n,l=>e.if(f(a,l),()=>c(l)))):a!==!0&&e.forIn("key",n,l=>a===void 0?c(l):e.if(u(a,l),()=>c(l))),i.props=!0,t.ok((0,at._)`${s} === ${pg.default.errors}`);function c(l){if(r===!1){t.setParams({unevaluatedProperty:l}),t.error(),o||e.break();return}if(!(0,ha.alwaysValidSchema)(i,r)){const d=e.name("valid");t.subschema({keyword:"unevaluatedProperties",dataProp:l,dataPropType:ha.Type.Str},d),o||e.if((0,at.not)(d),()=>e.break())}}function f(l,d){return(0,at._)`!${l} || !${l}[${d}]`}function u(l,d){const p=[];for(const m in l)l[m]===!0&&p.push((0,at._)`${d} !== ${m}`);return(0,at.and)(...p)}}};ro.default=hg;var no={};Object.defineProperty(no,"__esModule",{value:!0});const $t=W,ya=D,yg={message:({params:{len:t}})=>(0,$t.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,$t._)`{limit: ${t}}`},gg={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:yg,code(t){const{gen:e,schema:r,data:n,it:s}=t,i=s.items||0;if(i===!0)return;const o=e.const("len",(0,$t._)`${n}.length`);if(r===!1)t.setParams({len:i}),t.fail((0,$t._)`${o} > ${i}`);else if(typeof r=="object"&&!(0,ya.alwaysValidSchema)(s,r)){const c=e.var("valid",(0,$t._)`${o} <= ${i}`);e.if((0,$t.not)(c),()=>a(c,i)),t.ok(c)}s.items=!0;function a(c,f){e.forRange("i",f,o,u=>{t.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:ya.Type.Num},c),s.allErrors||e.if((0,$t.not)(c),()=>e.break())})}}};no.default=gg;Object.defineProperty(to,"__esModule",{value:!0});const $g=ro,bg=no,vg=[$g.default,bg.default];to.default=vg;Object.defineProperty(Ji,"__esModule",{value:!0});const wg=Un,_g=Fn,Pg=qr,Eg=Gi,Sg=Xi,jg=to,Og=Dr,ga=Ot,kg=[Eg.default,wg.default,_g.default,(0,Pg.default)(!0),Og.default,ga.metadataVocabulary,ga.contentVocabulary,Sg.default,jg.default];Ji.default=kg;var so={};const Ig="https://json-schema.org/draft/2020-12/schema",Ng="https://json-schema.org/draft/2020-12/schema",Ag={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},Tg="meta",Rg="Core and Validation specifications meta-schema",xg=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],Cg=["object","boolean"],Mg="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",qg={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},Dg={$schema:Ig,$id:Ng,$vocabulary:Ag,$dynamicAnchor:Tg,title:Rg,allOf:xg,type:Cg,$comment:Mg,properties:qg},Lg="https://json-schema.org/draft/2020-12/schema",Vg="https://json-schema.org/draft/2020-12/meta/applicator",Ug={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Fg="meta",zg="Applicator vocabulary meta-schema",Kg=["object","boolean"],Bg={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},Hg={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Jg={$schema:Lg,$id:Vg,$vocabulary:Ug,$dynamicAnchor:Fg,title:zg,type:Kg,properties:Bg,$defs:Hg},Gg="https://json-schema.org/draft/2020-12/schema",Wg="https://json-schema.org/draft/2020-12/meta/unevaluated",Yg={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},Xg="meta",Qg="Unevaluated applicator vocabulary meta-schema",Zg=["object","boolean"],e$={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},t$={$schema:Gg,$id:Wg,$vocabulary:Yg,$dynamicAnchor:Xg,title:Qg,type:Zg,properties:e$},r$="https://json-schema.org/draft/2020-12/schema",n$="https://json-schema.org/draft/2020-12/meta/content",s$={"https://json-schema.org/draft/2020-12/vocab/content":!0},i$="meta",o$="Content vocabulary meta-schema",a$=["object","boolean"],c$={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},f$={$schema:r$,$id:n$,$vocabulary:s$,$dynamicAnchor:i$,title:o$,type:a$,properties:c$},l$="https://json-schema.org/draft/2020-12/schema",u$="https://json-schema.org/draft/2020-12/meta/core",d$={"https://json-schema.org/draft/2020-12/vocab/core":!0},p$="meta",m$="Core vocabulary meta-schema",h$=["object","boolean"],y$={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},g$={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},$$={$schema:l$,$id:u$,$vocabulary:d$,$dynamicAnchor:p$,title:m$,type:h$,properties:y$,$defs:g$},b$="https://json-schema.org/draft/2020-12/schema",v$="https://json-schema.org/draft/2020-12/meta/format-annotation",w$={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},_$="meta",P$="Format vocabulary meta-schema for annotation results",E$=["object","boolean"],S$={format:{type:"string"}},j$={$schema:b$,$id:v$,$vocabulary:w$,$dynamicAnchor:_$,title:P$,type:E$,properties:S$},O$="https://json-schema.org/draft/2020-12/schema",k$="https://json-schema.org/draft/2020-12/meta/meta-data",I$={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},N$="meta",A$="Meta-data vocabulary meta-schema",T$=["object","boolean"],R$={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},x$={$schema:O$,$id:k$,$vocabulary:I$,$dynamicAnchor:N$,title:A$,type:T$,properties:R$},C$="https://json-schema.org/draft/2020-12/schema",M$="https://json-schema.org/draft/2020-12/meta/validation",q$={"https://json-schema.org/draft/2020-12/vocab/validation":!0},D$="meta",L$="Validation vocabulary meta-schema",V$=["object","boolean"],U$={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},F$={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},z$={$schema:C$,$id:M$,$vocabulary:q$,$dynamicAnchor:D$,title:L$,type:V$,properties:U$,$defs:F$};Object.defineProperty(so,"__esModule",{value:!0});const K$=Dg,B$=Jg,H$=t$,J$=f$,G$=$$,W$=j$,Y$=x$,X$=z$,Q$=["/properties"];function Z$(t){return[K$,B$,H$,J$,G$,e(this,W$),Y$,e(this,X$)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function e(r,n){return t?r.$dataMetaSchema(n,Q$):n}}so.default=Z$;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2020=void 0;const r=Pt,n=Ji,s=Lr,i=so,o="https://json-schema.org/draft/2020-12/schema";class a extends r.default{constructor(p={}){super({...p,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:p,meta:m}=this.opts;m&&(i.default.call(this,p),this.refs["http://json-schema.org/schema"]=o)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}e.Ajv2020=a,t.exports=e=a,t.exports.Ajv2020=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var c=Cr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var f=W;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var u=tr;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var l=It;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return l.default}})})(zs,zs.exports);var eb=zs.exports;const tb=kn.getDefaultExportFromCjs(eb);var Ks={exports:{}},io={},oo={};Object.defineProperty(oo,"__esModule",{value:!0});const rb=We,nb=["$schema","id","$defs",{keyword:"$comment"},"definitions",rb.default];oo.default=nb;var ao={},co={};Object.defineProperty(co,"__esModule",{value:!0});const Bs=Pt,sb=W,ot=sb.operators,Hs={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:ot.LTE,fail:ot.GT},{okStr:"<",ok:ot.LT,fail:ot.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:ot.GTE,fail:ot.LT},{okStr:">",ok:ot.GT,fail:ot.LTE}]}},ib={message:t=>Bs.str`must be ${Js(t).okStr} ${t.schemaCode}`,params:t=>Bs._`{comparison: ${Js(t).okStr}, limit: ${t.schemaCode}}`},ob={keyword:Object.keys(Hs),type:"number",schemaType:"number",$data:!0,error:ib,code(t){const{data:e,schemaCode:r}=t;t.fail$data(Bs._`${e} ${Js(t).fail} ${r} || isNaN(${e})`)}};function Js(t){var e;const r=t.keyword,n=!((e=t.parentSchema)===null||e===void 0)&&e[Hs[r].exclusive]?1:0;return Hs[r].ops[n]}co.default=ob;var fo={};Object.defineProperty(fo,"__esModule",{value:!0});const $a={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},ab={keyword:Object.keys($a),type:"number",schemaType:"boolean",code({keyword:t,parentSchema:e}){const r=$a[t];if(e[r]===void 0)throw new Error(`${t} can only be used with ${r}`)}};fo.default=ab;Object.defineProperty(ao,"__esModule",{value:!0});const cb=co,fb=fo,lb=zn,ub=Kn,db=Bn,pb=Hn,mb=Jn,hb=Gn,yb=Wn,gb=Yn,$b=Xn,bb=[cb.default,fb.default,lb.default,ub.default,db.default,pb.default,mb.default,hb.default,yb.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},gb.default,$b.default];ao.default=bb;Object.defineProperty(io,"__esModule",{value:!0});const vb=oo,wb=ao,_b=qr,Pb=Dr,Eb=["title","description","default"],Sb=[vb.default,wb.default,_b.default(),Pb.default,Eb];io.default=Sb;const jb="http://json-schema.org/draft-04/schema#",Ob="http://json-schema.org/draft-04/schema#",kb="Core schema meta-schema",Ib={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},Nb="object",Ab={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Tb={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},Rb={id:jb,$schema:Ob,description:kb,definitions:Ib,type:Nb,properties:Ab,dependencies:Tb,default:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const r=Pt,n=io,s=Lr,i=Rb,o=["/properties"],a="http://json-schema.org/draft-04/schema";class c extends r.default{constructor(d={}){super({...d,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),n.default.forEach(d=>this.addVocabulary(d)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const d=this.opts.$data?this.$dataMetaSchema(i,o):i;this.addMetaSchema(d,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var f=Pt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var u=Pt;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})})(Ks,Ks.exports);var xb=Ks.exports;const Cb=kn.getDefaultExportFromCjs(xb);var Gs={exports:{}},wf={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(q,F){return{validate:q,compare:F}}t.fullFormats={date:e(i,o),time:e(c(!0),f),"date-time":e(d(!0),p),"iso-time":e(c(),u),"iso-date-time":e(d(),m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:$,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:te,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:w,int32:{type:"number",validate:L},int64:{type:"number",validate:M},float:{type:"number",validate:C},double:{type:"number",validate:C},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function r(q){return q%4===0&&(q%100!==0||q%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(q){const F=n.exec(q);if(!F)return!1;const K=+F[1],U=+F[2],se=+F[3];return U>=1&&U<=12&&se>=1&&se<=(U===2&&r(K)?29:s[U])}function o(q,F){if(q&&F)return q>F?1:q<F?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(q){return function(K){const U=a.exec(K);if(!U)return!1;const se=+U[1],ce=+U[2],ue=+U[3],Ne=U[4],Ae=U[5]==="-"?-1:1,R=+(U[6]||0),P=+(U[7]||0);if(R>23||P>59||q&&!Ne)return!1;if(se<=23&&ce<=59&&ue<60)return!0;const N=ce-P*Ae,E=se-R*Ae-(N<0?1:0);return(E===23||E===-1)&&(N===59||N===-1)&&ue<61}}function f(q,F){if(!(q&&F))return;const K=new Date("2020-01-01T"+q).valueOf(),U=new Date("2020-01-01T"+F).valueOf();if(K&&U)return K-U}function u(q,F){if(!(q&&F))return;const K=a.exec(q),U=a.exec(F);if(K&&U)return q=K[1]+K[2]+K[3],F=U[1]+U[2]+U[3],q>F?1:q<F?-1:0}const l=/t|\s/i;function d(q){const F=c(q);return function(U){const se=U.split(l);return se.length===2&&i(se[0])&&F(se[1])}}function p(q,F){if(!(q&&F))return;const K=new Date(q).valueOf(),U=new Date(F).valueOf();if(K&&U)return K-U}function m(q,F){if(!(q&&F))return;const[K,U]=q.split(l),[se,ce]=F.split(l),ue=o(K,se);if(ue!==void 0)return ue||f(U,ce)}const y=/\/|:/,h=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function $(q){return y.test(q)&&h.test(q)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function w(q){return v.lastIndex=0,v.test(q)}const j=-2147483648,O=2**31-1;function L(q){return Number.isInteger(q)&&q<=O&&q>=j}function M(q){return Number.isInteger(q)}function C(){return!0}const G=/[^\\]\\Z/;function te(q){if(G.test(q))return!1;try{return new RegExp(q),!0}catch{return!1}}})(wf);var _f={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=$f,r=W,n=r.operators,s={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},i={message:({keyword:a,schemaCode:c})=>(0,r.str)`should be ${s[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>(0,r._)`{comparison: ${s[a].okStr}, limit: ${c}}`};t.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:i,code(a){const{gen:c,data:f,schemaCode:u,keyword:l,it:d}=a,{opts:p,self:m}=d;if(!p.validateFormats)return;const y=new e.KeywordCxt(d,m.RULES.all.format.definition,"format");y.$data?h():$();function h(){const w=c.scopeValue("formats",{ref:m.formats,code:p.code.formats}),j=c.const("fmt",(0,r._)`${w}[${y.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${j} != "object"`,(0,r._)`${j} instanceof RegExp`,(0,r._)`typeof ${j}.compare != "function"`,v(j)))}function $(){const w=y.schema,j=m.formats[w];if(!j||j===!0)return;if(typeof j!="object"||j instanceof RegExp||typeof j.compare!="function")throw new Error(`"${l}": format "${w}" does not define "compare" function`);const O=c.scopeValue("formats",{key:w,ref:j,code:p.code.formats?(0,r._)`${p.code.formats}${(0,r.getProperty)(w)}`:void 0});a.fail$data(v(O))}function v(w){return(0,r._)`${w}.compare(${f}, ${u}) ${s[l].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(t.formatLimitDefinition),a);t.default=o})(_f);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=wf,n=_f,s=W,i=new s.Name("fullFormats"),o=new s.Name("fastFormats"),a=(f,u={keywords:!0})=>{if(Array.isArray(u))return c(f,u,r.fullFormats,i),f;const[l,d]=u.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,i],p=u.formats||r.formatNames;return c(f,p,l,d),u.keywords&&(0,n.default)(f),f};a.get=(f,u="full")=>{const d=(u==="fast"?r.fastFormats:r.fullFormats)[f];if(!d)throw new Error(`Unknown format "${f}"`);return d};function c(f,u,l,d){var p,m;(p=(m=f.opts.code).formats)!==null&&p!==void 0||(m.formats=(0,s._)`require("ajv-formats/dist/formats").${d}`);for(const y of u)f.addFormat(y,l[y])}t.exports=e=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a})(Gs,Gs.exports);var Mb=Gs.exports;const qb=kn.getDefaultExportFromCjs(Mb),Db=t=>e=>t===e,Lb=t=>e=>!t(e),Vb=t=>Object.values(t),Ub=t=>t!==void 0,Nt=t=>e=>e.keyword===t,bs=Nt("required"),Fb=Nt("anyOf"),an=Nt("oneOf"),ba=Nt("if"),Pf=Nt("enum"),zb=Nt("additionalProperties"),Kb=Nt("unevaluatedProperties"),$n=t=>(t==null?void 0:t.errors)||[],Ef=t=>t&&Vb(t.children)||[],Bb=t=>e=>Ef(t).filter(Lb(Db(e))),va=t=>e=>e.reduce((r,n)=>r.concat(n),t);class At{constructor(e={isIdentifierLocation:!1},{data:r,schema:n,jsonAst:s,jsonRaw:i}){this.options=e,this.data=r,this.schema=n,this.jsonAst=s,this.jsonRaw=i}get instancePath(){return typeof this.options.instancePath<"u"?this.options.instancePath:this.options.dataPath}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}}class Hb extends At{constructor(...e){super(...e),this.name="AdditionalPropValidationError",this.options.isIdentifierLocation=!0}getError(){const{params:e}=this.options;return{message:`Property ${e.additionalProperty} is not expected to be here`,path:this.instancePath}}}class Jb extends At{constructor(...e){super(...e),this.name="DefaultValidationError",this.options.isSkipEndLocation=!0}getError(){const{keyword:e,message:r}=this.options;return{message:`${e} ${r}`,path:this.instancePath}}}var ts={},Gb=/~/,Wb=/~[01]/g;function Yb(t){switch(t){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+t)}function Sf(t){return Gb.test(t)?t.replace(Wb,Yb):t}function Xb(t,e,r){for(var n,s,i=1,o=e.length;i<o;){if(e[i]==="constructor"||e[i]==="prototype"||e[i]==="__proto__")return t;if(n=Sf(e[i++]),s=o>i,typeof t[n]>"u"&&(Array.isArray(t)&&n==="-"&&(n=t.length),s&&(e[i]!==""&&e[i]<1/0||e[i]==="-"?t[n]=[]:t[n]={})),!s)break;t=t[n]}var a=t[n];return r===void 0?delete t[n]:t[n]=r,a}function lo(t){if(typeof t=="string"){if(t=t.split("/"),t[0]==="")return t;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(t)){for(const e of t)if(typeof e!="string"&&typeof e!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return t}throw new Error("Invalid JSON pointer.")}function jf(t,e){if(typeof t!="object")throw new Error("Invalid input object.");e=lo(e);var r=e.length;if(r===1)return t;for(var n=1;n<r;){if(t=t[Sf(e[n++])],r===n)return t;if(typeof t!="object"||t===null)return}}function Of(t,e,r){if(typeof t!="object")throw new Error("Invalid input object.");if(e=lo(e),e.length===0)throw new Error("Invalid JSON pointer for set.");return Xb(t,e,r)}function Qb(t){var e=lo(t);return{get:function(r){return jf(r,e)},set:function(r,n){return Of(r,e,n)}}}ts.get=jf;ts.set=Of;ts.compile=Qb;const cn=[],vs=[];function Zb(t,e,r){if(t===e)return 0;const n=r==null?void 0:r.maxDistance,s=t;t.length>e.length&&(t=e,e=s);let i=t.length,o=e.length;for(;i>0&&t.charCodeAt(~-i)===e.charCodeAt(~-o);)i--,o--;let a=0;for(;a<i&&t.charCodeAt(a)===e.charCodeAt(a);)a++;if(i-=a,o-=a,i===0)return n!==void 0&&o>n?n:o;let c,f,u,l,d=0,p=0;for(;d<i;)vs[d]=t.charCodeAt(a+d),cn[d]=++d;for(;p<o;)for(c=e.charCodeAt(a+p),u=p++,f=p,d=0;d<i;d++)l=c===vs[d]?u:u+1,u=cn[d],f=cn[d]=u>f?l>f?f+1:l:l>u?u+1:l;return cn.length=i,vs.length=i,n!==void 0&&f>n?n:f}class e0 extends At{constructor(...e){super(...e),this.name="EnumValidationError"}getError(){const{message:e,params:r}=this.options,n=this.findBestMatch(),s=r.allowedValues.join(", "),i={message:`${e}: ${s}`,path:this.instancePath};return n!==null&&(i.suggestion=`Did you mean ${n}?`),i}findBestMatch(){const{params:{allowedValues:e}}=this.options,r=this.instancePath===""?this.data:ts.get(this.data,this.instancePath);if(!r)return null;const n=e.map(s=>({value:s,weight:Zb(s,r.toString())})).sort((s,i)=>s.weight>i.weight?1:s.weight<i.weight?-1:0)[0];return e.length===1||n.weight<n.value.length?n.value:null}}class t0 extends At{constructor(...e){super(...e),this.name="FormatValidationError",this.options.isSkipEndLocation=!0}getError(){const{keyword:e,message:r,params:n,instancePath:s}=this.options,i=this.instancePath;return(n==null?void 0:n.format)==="uri-reference"&&(i!=null&&i.endsWith("/$ref"))?{message:this._getUriReferenceMessage(),path:i}:{message:`${e} ${r}`,path:i}}_getUriReferenceMessage(){const e=this._extractRefValue();return e&&/[^\x00-\x7F]/.test(e)?`$ref "${e}" contains non-ASCII characters`:e?`$ref "${e}" is not a valid URI reference`:"$ref is not a valid URI reference"}_extractRefValue(){const e=this.schema;if(!e||typeof e!="object")return null;const r=this.instancePath;if(!r)return null;const n=r.split("/").filter(Boolean).map(i=>i.replace(/~1/g,"/").replace(/~0/g,"~"));let s=e;for(const i of n){if(s==null||typeof s!="object")return null;s=s[i]}return typeof s=="string"?s:null}}class r0 extends At{constructor(...e){super(...e),this.name="PatternValidationError",this.options.isIdentifierLocation=!0}getError(){const{params:e,propertyName:r}=this.options;return{message:`Property "${r}" must match pattern ${e.pattern}`,path:this.instancePath}}}class n0 extends At{constructor(...e){super(...e),this.name="RequiredValidationError"}getError(){const{message:e}=this.options;return{message:`${e}`,path:this.instancePath}}}class s0 extends At{constructor(...e){super(...e),this.name="UnevaluatedPropValidationError",this.options.isIdentifierLocation=!0}getError(){const{params:e}=this.options;return{message:`Property ${e.unevaluatedProperty} is not expected to be here`,path:this.instancePath}}}const i0=/\/[\w$_-]+(\/\d+)?/g;function o0(t=[]){const e={children:{}};return t.forEach(r=>{const n=typeof r.instancePath<"u"?r.instancePath:r.dataPath,s=n===""?[""]:n.match(i0);s&&s.reduce((i,o,a)=>(i.children[o]=i.children[o]||{children:{},errors:[]},a===s.length-1&&i.children[o].errors.push(r),i.children[o]),e)}),e}function kf(t,e,r){var l;const n=$n(t),s=n.some(an),i=n.some(Fb),o=n.some(bs),a=n.some(ba),c=n.some(zb),f=n.some(Kb),u=Object.keys(t.children||{}).length>0;if(a&&(c||f)&&(t.errors=n.filter(d=>!ba(d))),s&&o)c||f?t.errors=n.filter(d=>!bs(d)&&!an(d)):u?delete t.errors:t.errors=n.filter(d=>an(d));else if(s&&!o&&u)delete t.errors;else if(s&&!o&&!u){const d=n.filter(an);d.length>1&&(t.errors=[d[0]])}else o&&!s&&(t.errors=n.filter(bs),t.children={});i&&Object.keys(t.children).length>0&&delete t.errors,(l=t.errors)!=null&&l.length&&$n(t).every(Pf)&&Bb(e)(t).filter(Ub).some($n)&&delete e.children[r],Object.entries(t.children).forEach(([d,p])=>kf(p,t,d))}function If(t,e){const r=$n(t);if(r.length&&r.every(Pf)){const s=[...new Set(va([])(r.map(o=>o.params.allowedValues)))],i=r[0];return[new e0({...i,params:{allowedValues:s}},e)]}return va(r.reduce((n,s)=>{switch(s.keyword){case"additionalProperties":return n.concat(new Hb(s,e));case"pattern":return n.concat(new r0(s,e));case"format":return n.concat(new t0(s,e));case"required":return n.concat(new n0(s,e));case"unevaluatedProperties":return n.concat(new s0(s,e));default:return n.concat(new Jb(s,e))}},[]))(Ef(t).map(n=>If(n,e)))}function a0(t,e){const r=o0(t||[]);return kf(r),If(r,e)}function c0(t,e,r,n={}){const{indent:s=null,json:i=null}=n,o=i||JSON.stringify(e,null,s),a=f=>f.getError();return a0(r,{data:e,schema:t,jsonRaw:o}).map(a)}function fn(t,e){if(typeof e=="string")return[{message:e}];if(!t||typeof t!="object")return[{message:"Invalid specification"}];let r;try{r=c0(t,null,e,{indent:2}).map(s=>(s.message=s.message.trim(),s))}catch(s){return console.error(s),Array.isArray(e)?e.map(i=>{var a;let o=i.message||"Validation error";return i.keyword==="additionalProperties"&&((a=i.params)!=null&&a.additionalProperty)&&(o=`Property ${i.params.additionalProperty} is not expected to be here`),{message:o,path:i.dataPath||i.instancePath}}):[{message:"Validation failed"}]}const n=new Set;return r.filter(s=>{const i=`${s.message}||${s.path}`;return n.has(i)?!1:(n.add(i),!0)})}const f0=new Set(["get","put","post","delete","options","head","patch","trace"]),l0=/{([^}]+)}/g;function u0(t){const e=t==null?void 0:t.paths;if(!e||typeof e!="object")return[];const r=[];for(const[n,s]of Object.entries(e)){if(!Ws(s))continue;const i=Object.entries(s).filter(([c,f])=>f0.has(c)&&Ws(f));if(i.length===0)continue;const o=new Set(d0(n)),a=wa(s.parameters,["paths",n,"parameters"]);for(const c of a)o.has(c.name)||r.push({path:c.path,message:`Path parameter "${c.name}" must have the corresponding {${c.name}} segment in the "${n}" path`});for(const[c,f]of i){const u=wa(f.parameters,["paths",n,c,"parameters"]);for(const d of u)o.has(d.name)||r.push({path:d.path,message:`Path parameter "${d.name}" must have the corresponding {${d.name}} segment in the "${n}" path`});const l=new Set([...a,...u].map(d=>d.name));for(const d of o)l.has(d)||r.push({path:["paths",n,c],message:`Declared path parameter "${d}" needs to be defined as a path parameter at either the path or operation level`})}}return m0(r)}function d0(t){return[...t.matchAll(l0)].map(e=>p0(e[1]))}function p0(t){return t.endsWith("+")?t.slice(0,-1):t}function wa(t,e){return Array.isArray(t)?t.flatMap((r,n)=>!Ws(r)||r.in!=="path"||typeof r.name!="string"?[]:[{name:r.name,path:[...e,String(n),"name"]}]):[]}function m0(t){const e=new Set;return t.filter(r=>{var s;const n=`${r.message}||${((s=r.path)==null?void 0:s.join("."))??""}`;return e.has(n)?!1:(e.add(n),!0)})}function Ws(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const h0={"http://json-schema.org/draft-04/schema#":Cb,"http://json-schema.org/draft-07/schema#":Uy,"https://json-schema.org/draft/2020-12/schema":tb};class Nf{constructor(){rt(this,"version");rt(this,"ajvValidators",{});rt(this,"errors");rt(this,"specificationVersion");rt(this,"specificationType");rt(this,"specification")}isMutableRecord(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}validate(e,r){const n=e.find(i=>i.isEntrypoint),s=n==null?void 0:n.specification;this.specification=s,this.isMutableRecord(this.specification)&&this.isMutableRecord(this.specification.info)&&typeof this.specification.info.version!="string"&&(this.specification.info.version="0.0.1");try{if(s==null){if(r!=null&&r.throwOnError)throw new Error(Se.EMPTY_OR_INVALID);return{valid:!1,errors:fn(s,Se.EMPTY_OR_INVALID)}}const{version:i,specificationType:o,specificationVersion:a}=Ys(s);if(this.version=i,this.specificationVersion=a,this.specificationType=o,!i){if(r!=null&&r.throwOnError)throw new Error(Se.OPENAPI_VERSION_NOT_SUPPORTED);return{valid:!1,errors:fn(s,Se.OPENAPI_VERSION_NOT_SUPPORTED)}}const c=this.getAjvValidator(i),f=c(s);if(c.errors&&c.errors.length>0){if(r!=null&&r.throwOnError)throw new Error(c.errors[0].message);return{valid:!1,errors:fn(s,c.errors)}}const u=$c(e,r),l=u0(u.schema),d=[...u.errors,...l];return f&&u.valid&&l.length===0?{valid:!0,errors:d,schema:u.schema}:{valid:!1,errors:d,schema:u.schema}}catch(i){if(r!=null&&r.throwOnError)throw i;return{valid:!1,errors:fn(s,i.message??i)}}}getAjvValidator(e){if(this.ajvValidators[e])return this.ajvValidators[e];const r=Ia[e],n=h0[r.$schema],s=new n({strict:!1,discriminator:!0,allErrors:!0});return qb(s),(e==="3.1"||e==="3.2")&&s.addFormat("media-range",!0),this.ajvValidators[e]=s.compile(r)}}rt(Nf,"supportedVersions",Na);const y0=(t,e)=>{if(!(!t||typeof t!="object")&&(e==="2.0"&&t.swagger==="2.0"||(e==="3.0"||e==="3.1"||e==="3.2")&&typeof t.openapi=="string"))return t};function Af(t,e){try{const r=Rr(t),n=new Nf,s=n.validate(r,e);if(s.valid){const i=y0(n.specification,n.version);return i?Promise.resolve({...s,specification:i,version:n.version}):Promise.resolve({valid:!1,errors:[{message:`Validated OpenAPI ${n.version} document is missing required top-level version field.`}],schema:s.schema,specification:n.specification,version:n.version})}return Promise.resolve({valid:!1,errors:s.errors,schema:s.schema,specification:n.specification,version:n.version})}catch(r){return Promise.reject(r)}}async function Vr(t){const{input:e}={...t};let r={};for(const n of t.tasks){const s=n.name,i="options"in n?n.options:void 0,o=r.specification?r.specification:typeof e=="object"?structuredClone(e):e;s==="load"?r={...r,...await gi(e,i)}:s==="filter"?r={...r,...wc(o,i)}:s==="dereference"?r={...r,...vc(o,i)}:s==="upgrade"?r={...r,...yi(o)}:s==="validate"&&(r={...r,...await Af(o,i)})}return r}async function Ur(t){const{filesystem:e}=await Vr(t);return Ys(Be(e).specification)}async function Fr(t){const{filesystem:e}=await Vr(t);return e}async function zr(t){return{filesystem:[],...await Vr(t)}}const Tf=t=>JSON.stringify(t,null,2);async function Kr(t){const{filesystem:e}=await Vr(t);return Tf(Be(e).specification)}const Rf=t=>Mu(t);async function Br(t){const{filesystem:e}=await Vr(t);return Rf(Be(e).specification)}function Hr(t,e){return{...t,tasks:[...t.tasks,e]}}function rs(t,e){var s;const r={name:"dereference",options:{throwOnError:(s=t.options)==null?void 0:s.throwOnError,...e??{}}},n=Hr(t,r);return{details:()=>Ur(n),files:()=>Fr(n),get:()=>zr(n),toJson:()=>Kr(n),toYaml:()=>Br(n)}}function uo(t,e){const n=Hr(t,{name:"filter",options:e});return{dereference:s=>rs(n,s),details:()=>Ur(n),files:()=>Fr(n),get:()=>zr(n),toJson:()=>Kr(n),toYaml:()=>Br(n)}}function xf(t,e){var s;const r={name:"validate",options:{throwOnError:(s=t.options)==null?void 0:s.throwOnError,...e??{}}},n=Hr(t,r);return{dereference:i=>rs(n,i),details:()=>Ur(n),files:()=>Fr(n),filter:i=>uo(n,i),get:()=>zr(n),toJson:()=>Kr(n),toYaml:()=>Br(n),upgrade:()=>Cf(n)}}function Cf(t){const r=Hr(t,{name:"upgrade"});return{dereference:n=>rs(r,n),details:()=>Ur(r),files:()=>Fr(r),filter:n=>uo(r,n),get:()=>zr(r),toJson:()=>Kr(r),toYaml:()=>Br(r),validate:n=>xf(r,n)}}function g0(t,e,r){var i;const n={name:"load",options:{throwOnError:(i=t.options)==null?void 0:i.throwOnError,...r}},s={...Hr(t,n),input:e};return{dereference:o=>rs(s,o),details:()=>Ur(s),files:()=>Fr(s),filter:o=>uo(s,o),get:()=>zr(s),upgrade:()=>Cf(s),toJson:()=>Kr(s),toYaml:()=>Br(s),validate:o=>xf(s,o)}}function $0(t){const e={input:null,options:t,tasks:[]};return{load:(r,n)=>g0(e,r,n)}}const b0="API",v0="1.0",w0=t=>{var e,r;return{...t,info:{...t.info,title:((e=t.info)==null?void 0:e.title)??b0,version:((r=t.info)==null?void 0:r.version)??v0}}},_0="3.1.1",P0=t=>({openapi:t.openapi??_0,...t}),E0=t=>{if(!t.paths)return t;const e=new Set;for(const s of Object.values(t.paths))if(typeof s=="object"&&s!==null){for(const i of Object.values(s))if(typeof i=="object"&&i!==null&&"tags"in i){const o=i.tags;Array.isArray(o)&&o.forEach(a=>e.add(String(a)))}}const r=new Set((Array.isArray(t.tags)?t.tags:[]).map(s=>typeof s=="object"&&s!==null?String(s.name):null).filter(Boolean)),n=[...e].filter(s=>!r.has(s)).map(s=>({name:s}));return{...t,tags:[...Array.isArray(t.tags)?t.tags:[],...n]}},S0=t=>{var r;if(!((r=t.components)!=null&&r.securitySchemes))return t;const e={...t.components.securitySchemes};for(const n of Object.values(e))if(typeof n=="object"&&n!==null&&"type"in n){const s=String(n.type).toLowerCase();n.type={apikey:"apiKey",oauth2:"oauth2",http:"http",mutualtls:"mutualTLS",openidconnect:"openIdConnect"}[s]??s}for(const n of Object.values(e))if(typeof n=="object"&&n!==null&&"type"in n&&n.type==="oauth2"&&"flows"in n){const s=n.flows;for(const i of Object.values(s))typeof i=="object"&&i!==null&&"scopes"in i&&Array.isArray(i.scopes)&&(i.scopes=i.scopes.reduce((o,a)=>(o[a]="",o),{}))}return{...t,components:{...t.components,securitySchemes:e}}},j0=t=>{if("swagger"in t)throw new Error("Swagger 2.0 documents are not supported. Please upgrade to OpenAPI 3.x.");return t};function O0(t){return[j0,P0,w0,E0,S0].reduce((r,n)=>n(r),t)}exports.dereference=vc;exports.escapeJsonPointer=In;exports.filter=wc;exports.isJson=Du;exports.isYaml=Lu;exports.join=Ed;exports.load=gi;exports.normalize=Sr;exports.openapi=$0;exports.sanitize=O0;exports.toJson=Tf;exports.toYaml=Rf;exports.traverse=_r;exports.unescapeJsonPointer=gc;exports.upgrade=yi;exports.upgradeFromThreeToThreeOne=ka;exports.upgradeFromTwoToThree=Ea;exports.validate=Af;
|