@speclynx/apidom-ns-openapi-3-0 2.13.0 → 3.0.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/CHANGELOG.md +19 -0
- package/dist/apidom-ns-openapi-3-0.browser.js +287 -130
- package/dist/apidom-ns-openapi-3-0.browser.min.js +1 -1
- package/package.json +7 -7
- package/src/refractor/index.cjs +4 -2
- package/src/refractor/index.mjs +4 -2
- package/src/refractor/plugins/replace-empty-element.cjs +3 -2
- package/src/refractor/plugins/replace-empty-element.mjs +3 -2
- package/src/refractor/visitors/FallbackVisitor.cjs +1 -1
- package/src/refractor/visitors/FallbackVisitor.mjs +1 -1
- package/src/refractor/visitors/SpecificationVisitor.cjs +3 -2
- package/src/refractor/visitors/SpecificationVisitor.mjs +3 -2
- package/src/refractor/visitors/Visitor.cjs +10 -8
- package/src/refractor/visitors/Visitor.mjs +11 -9
- package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +8 -3
- package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +8 -3
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +4 -2
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +4 -2
- package/src/refractor/visitors/open-api-3-0/components/index.cjs +1 -0
- package/src/refractor/visitors/open-api-3-0/components/index.mjs +1 -0
- package/src/refractor/visitors/open-api-3-0/index.cjs +1 -0
- package/src/refractor/visitors/open-api-3-0/index.mjs +1 -0
- package/src/refractor/visitors/open-api-3-0/path-item/index.cjs +2 -3
- package/src/refractor/visitors/open-api-3-0/path-item/index.mjs +3 -4
- package/src/refractor/visitors/open-api-3-0/paths/index.cjs +3 -2
- package/src/refractor/visitors/open-api-3-0/paths/index.mjs +3 -2
- package/types/apidom-ns-openapi-3-0.d.ts +8 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsOpenApi3_0=t():e.apidomNsOpenApi3_0=t()}(self,()=>(()=>{"use strict";var e={d:(t,s)=>{for(var n in s)e.o(s,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:s[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{AlternatingVisitor:()=>Zc,BaseAlternatingVisitor:()=>la,BaseFixedFieldsVisitor:()=>oa,BaseMapVisitor:()=>aa,BaseMixedFieldsVisitor:()=>ua,BasePatternedFieldsVisitor:()=>ca,BaseSpecificationVisitor:()=>ia,CallbackElement:()=>U,ComponentsCallbacksElement:()=>wo,ComponentsElement:()=>H,ComponentsExamplesElement:()=>uo,ComponentsHeadersElement:()=>fo,ComponentsLinksElement:()=>vo,ComponentsParametersElement:()=>ao,ComponentsRequestBodiesElement:()=>ho,ComponentsResponsesElement:()=>oo,ComponentsSchemasElement:()=>ro,ComponentsSecuritySchemesElement:()=>go,ContactElement:()=>G,DiscriminatorElement:()=>z,DiscriminatorMappingElement:()=>tc,EncodingElement:()=>X,EncodingHeadersElement:()=>Xo,ExampleElement:()=>J,ExternalDocumentationElement:()=>K,FallbackVisitor:()=>_c,FixedFieldsVisitor:()=>Wc,HeaderContentElement:()=>lc,HeaderElement:()=>Q,HeaderExamplesElement:()=>cc,InfoElement:()=>Z,LicenseElement:()=>ee,LinkElement:()=>de,LinkParametersElement:()=>ic,MapVisitor:()=>Qc,MediaTypeElement:()=>me,MediaTypeEncodingElement:()=>Go,MediaTypeExamplesElement:()=>Uo,MixedFieldsVisitor:()=>ra,MixedFieldsVisitorBase:()=>na,OAuthFlowElement:()=>fe,OAuthFlowScopesElement:()=>nc,OAuthFlowsElement:()=>ye,OpenAPIMediaTypes:()=>f,OpenApi3_0Element:()=>xe,OpenapiElement:()=>ge,OperationCallbacksElement:()=>Do,OperationElement:()=>ve,OperationParametersElement:()=>Ao,OperationSecurityElement:()=>No,OperationServersElement:()=>Bo,OperationTagsElement:()=>To,ParameterContentElement:()=>Io,ParameterElement:()=>we,ParameterExamplesElement:()=>Fo,PathItemElement:()=>Ee,PathItemParametersElement:()=>jo,PathItemServersElement:()=>Oo,PathsElement:()=>Oe,PatternedFieldsVisitor:()=>Yc,ReferenceElement:()=>Se,RequestBodyContentElement:()=>Lo,RequestBodyElement:()=>je,ResponseContentElement:()=>Yo,ResponseElement:()=>ke,ResponseHeadersElement:()=>Ko,ResponseLinksElement:()=>Zo,ResponsesElement:()=>Ae,SchemaElement:()=>Li,SecurityElement:()=>Qi,SecurityRequirementElement:()=>Vi,SecuritySchemeElement:()=>Ui,ServerElement:()=>Hi,ServerVariableElement:()=>Gi,ServerVariablesElement:()=>so,ServersElement:()=>Wi,SpecificationExtensionVisitor:()=>da,SpecificationVisitor:()=>Lc,TagElement:()=>zi,TagsElement:()=>eo,Visitor:()=>Bc,XmlElement:()=>Xi,default:()=>Ji,isCallbackElement:()=>Pa,isComponentsElement:()=>Fa,isContactElement:()=>Ca,isExampleElement:()=>Ia,isExternalDocumentationElement:()=>Ma,isInfoElement:()=>$a,isLicenseElement:()=>Da,isLinkElement:()=>Ra,isMediaTypeElement:()=>Qa,isOpenApi3_0Element:()=>qa,isOpenApiExtension:()=>Kc,isOpenapiElement:()=>Na,isOperationElement:()=>Ba,isParameterElement:()=>_a,isPathItemElement:()=>La,isPathsElement:()=>Va,isReferenceElement:()=>Ua,isReferenceLikeElement:()=>zc,isRequestBodyElement:()=>Ha,isResponseElement:()=>Ga,isResponsesElement:()=>za,isSchemaElement:()=>Xa,isSecurityRequirementElement:()=>Ja,isSecuritySchemeElement:()=>Ka,isServerElement:()=>Wa,isServerLikeElement:()=>Xc,isServerVariableElement:()=>Ya,isServersElement:()=>Za,isTagLikeElement:()=>Jc,mediaTypes:()=>y,refract:()=>op,refractCallback:()=>Xu,refractComponents:()=>Ru,refractContact:()=>Mu,refractDiscriminator:()=>ep,refractEncoding:()=>Hu,refractExample:()=>Ju,refractExternalDocumentation:()=>_u,refractHeader:()=>Wu,refractInfo:()=>Iu,refractLicense:()=>Tu,refractLink:()=>Ku,refractMediaType:()=>Uu,refractOAuthFlow:()=>rp,refractOAuthFlows:()=>np,refractOpenApi3_0:()=>Cu,refractOperation:()=>Bu,refractParameter:()=>Lu,refractPathItem:()=>qu,refractPaths:()=>Nu,refractReference:()=>Qu,refractRequestBody:()=>Vu,refractResponse:()=>zu,refractResponses:()=>Gu,refractSchema:()=>Zu,refractSecurityRequirement:()=>ip,refractSecurityScheme:()=>sp,refractServer:()=>$u,refractServerVariable:()=>Du,refractTag:()=>Yu,refractXml:()=>tp,refractorPluginReplaceEmptyElement:()=>hc,specificationObj:()=>Au});var s={};e.r(s),e.d(s,{isOpenApiExtension:()=>Kc,isReferenceLikeElement:()=>zc,isServerLikeElement:()=>Xc,isTagLikeElement:()=>Jc});var n={};function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(s){return 0===arguments.length||r(s)?t:e.apply(this,arguments)}}function o(e,t){return t[e<0?t.length+e:e]}e.r(n),e.d(n,{isCallbackElement:()=>Pa,isComponentsElement:()=>Fa,isContactElement:()=>Ca,isExampleElement:()=>Ia,isExternalDocumentationElement:()=>Ma,isHeaderElement:()=>Ta,isInfoElement:()=>$a,isLicenseElement:()=>Da,isLinkElement:()=>Ra,isMediaTypeElement:()=>Qa,isOpenApi3_0Element:()=>qa,isOpenapiElement:()=>Na,isOperationElement:()=>Ba,isParameterElement:()=>_a,isPathItemElement:()=>La,isPathsElement:()=>Va,isReferenceElement:()=>Ua,isRequestBodyElement:()=>Ha,isResponseElement:()=>Ga,isResponsesElement:()=>za,isSchemaElement:()=>Xa,isSecurityRequirementElement:()=>Ja,isSecuritySchemeElement:()=>Ka,isServerElement:()=>Wa,isServerVariableElement:()=>Ya,isServersElement:()=>Za});const c=i(function(e){return o(-1,e)});class a extends AggregateError{constructor(e,t,s){super(e,t,s),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const l=a;class u extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(l,e)}constructor(e,t){super(e,t),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const p=u;const h=class extends p{};const d=class extends h{};const m=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new d("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new d("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new d("latest method in MediaTypes class is not yet implemented.")}};class f extends m{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="3.0.4",t="generic"){const s="generic"===t?`openapi;version=${e}`:`openapi+${t};version=${e}`;return this.find(e=>e.includes(s))||this.unknownMediaType}latest(e="generic"){return c(this.filterByFormat(e))}}const y=new f("application/openapi;version=3.0.0","application/openapi+json;version=3.0.0","application/openapi+yaml;version=3.0.0","application/openapi;version=3.0.1","application/openapi+json;version=3.0.1","application/openapi+yaml;version=3.0.1","application/openapi;version=3.0.2","application/openapi+json;version=3.0.2","application/openapi+yaml;version=3.0.2","application/openapi;version=3.0.3","application/openapi+json;version=3.0.3","application/openapi+yaml;version=3.0.3","application/openapi;version=3.0.4","application/openapi+json;version=3.0.4","application/openapi+yaml;version=3.0.4");function g(e){return function t(s,n){switch(arguments.length){case 0:return t;case 1:return r(s)?t:i(function(t){return e(s,t)});default:return r(s)&&r(n)?t:r(s)?i(function(t){return e(t,n)}):r(n)?i(function(t){return e(s,t)}):e(s,n)}}}function x(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function v(e,t,s){for(var n=0,r=s.length;n<r;){if(e(t,s[n]))return!0;n+=1}return!1}function b(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const w="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var E=Object.prototype.toString;const O=function(){return"[object Arguments]"===E.call(arguments)?function(e){return"[object Arguments]"===E.call(e)}:function(e){return b("callee",e)}}();var S=!{toString:null}.propertyIsEnumerable("toString"),j=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),A=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},P="function"!=typeof Object.keys||k?i(function(e){if(Object(e)!==e)return[];var t,s,n=[],r=k&&O(e);for(t in e)!b(t,e)||r&&"length"===t||(n[n.length]=t);if(S)for(s=j.length-1;s>=0;)b(t=j[s],e)&&!A(n,t)&&(n[n.length]=t),s-=1;return n}):i(function(e){return Object(e)!==e?[]:Object.keys(e)});const F=P;const C=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function I(e,t,s,n){var r=x(e);function i(e,t){return M(e,t,s.slice(),n.slice())}return!v(function(e,t){return!v(i,t,e)},x(t),r)}function M(e,t,s,n){if(w(e,t))return!0;var r=C(e);if(r!==C(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(r){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var i=s.length-1;i>=0;){if(s[i]===e)return n[i]===t;i-=1}switch(r){case"Map":return e.size===t.size&&I(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&I(e.values(),t.values(),s.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=F(e);if(o.length!==F(t).length)return!1;var c=s.concat([e]),a=n.concat([t]);for(i=o.length-1;i>=0;){var l=o[i];if(!b(l,t)||!M(t[l],e[l],c,a))return!1;i-=1}return!0}const T=g(function(e,t){return M(e,t,[],[])});const $=class{key;value;constructor(e,t){this.key=e,this.value=t}toValue(){return{key:this.key?.toValue(),value:this.value?.toValue()}}};class D{elements;constructor(e){this.elements=e??[]}toValue(){return this.elements.map(e=>({key:e.key?.toValue(),value:e.value?.toValue()}))}map(e,t){return this.elements.map(s=>{const n=s.value,r=s.key;if(void 0===n||void 0===r)throw new Error("MemberElement must have both key and value");return void 0!==t?e.call(t,n,r,s):e(n,r,s)})}filter(e,t){const s=this.elements.filter(s=>{const n=s.value,r=s.key;return void 0!==n&&void 0!==r&&(void 0!==t?e.call(t,n,r,s):e(n,r,s))});return new D(s)}reject(e,t){const s=[];for(const n of this.elements){const r=n.value,i=n.key;void 0!==r&&void 0!==i&&(e.call(t,r,i,n)||s.push(n))}return new D(s)}forEach(e,t){this.elements.forEach((s,n)=>{const r=s.value,i=s.key;void 0!==r&&void 0!==i&&(void 0!==t?e.call(t,r,i,s,n):e(r,i,s,n))})}find(e,t){return this.elements.find(s=>{const n=s.value,r=s.key;return void 0!==n&&void 0!==r&&(void 0!==t?e.call(t,n,r,s):e(n,r,s))})}keys(){return this.elements.map(e=>e.key?.toValue()).filter(e=>void 0!==e)}values(){return this.elements.map(e=>e.value?.toValue()).filter(e=>void 0!==e)}get length(){return this.elements.length}get isEmpty(){return 0===this.length}get first(){return this.elements[0]}get(e){return this.elements[e]}push(e){return this.elements.push(e),this}includesKey(e){return this.elements.some(t=>t.key?.equals(e))}[Symbol.iterator](){return this.elements[Symbol.iterator]()}}const R=D;class N{parent;style;startLine;startCharacter;startOffset;endLine;endCharacter;endOffset;_storedElement="element";_content;_meta;_attributes;constructor(e,t,s){void 0!==t&&(this.meta=t),void 0!==s&&(this.attributes=s),void 0!==e&&(this.content=e)}get element(){return this._storedElement}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof N)this._content=e;else if(null!=e&&"string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e&&"bigint"!=typeof e&&"symbol"!=typeof e)if(e instanceof $)this._content=e;else if(e instanceof R)this._content=e.elements;else if(Array.isArray(e))this._content=e.map(e=>this.refract(e));else{if("object"!=typeof e)throw new Error("Cannot set content to value of type "+typeof e);this._content=Object.entries(e).map(([e,t])=>new this.MemberElement(e,t))}else this._content=e}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof N?this._meta=e:this.meta.set(e??{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof N?this._attributes=e:this.attributes.set(e??{})}get id(){return this.isFrozen?this.getMetaProperty("id",""):(this.hasMetaProperty("id")||this.setMetaProperty("id",""),this.meta.get("id"))}set id(e){this.setMetaProperty("id",e)}get classes(){return this.isFrozen?this.getMetaProperty("classes",[]):(this.hasMetaProperty("classes")||this.setMetaProperty("classes",[]),this.meta.get("classes"))}set classes(e){this.setMetaProperty("classes",e)}get links(){return this.isFrozen?this.getMetaProperty("links",[]):(this.hasMetaProperty("links")||this.setMetaProperty("links",[]),this.meta.get("links"))}set links(e){this.setMetaProperty("links",e)}get children(){const{_content:e}=this;if(Array.isArray(e))return e;if(e instanceof $){const t=[];return e.key&&t.push(e.key),e.value&&t.push(e.value),t}return e instanceof N?[e]:[]}get isFrozen(){return Object.isFrozen(this)}freeze(){if(!this.isFrozen){this._meta&&(this._meta.parent=this,this._meta.freeze()),this._attributes&&(this._attributes.parent=this,this._attributes.freeze());for(const e of this.children)e.parent=this,e.freeze();Array.isArray(this._content)&&Object.freeze(this._content),Object.freeze(this)}}toValue(){const{_content:e}=this;return e instanceof N||e instanceof $?e.toValue():Array.isArray(e)?e.map(e=>e.toValue()):e}equals(e){const t=e instanceof N?e.toValue():e;return T(this.toValue(),t)}primitive(){}set(e){return this.content=e,this}toRef(e){const t=this.id.toValue();if(""===t)throw new Error("Cannot create reference to an element without an ID");const s=new this.RefElement(t);return"string"==typeof e&&(s.path=this.refract(e)),s}getMetaProperty(e,t){if(!this.hasMetaProperty(e)){if(void 0===t)return;const e=this.refract(t);return e&&this.isFrozen&&e.freeze(),e}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}hasMetaProperty(e){return!this.isMetaEmpty&&this.meta.hasKey(e)}get isMetaEmpty(){return void 0===this._meta||this.meta.isEmpty}getAttributesProperty(e,t){if(!this.hasAttributesProperty(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.attributes.set(e,t)}return this.attributes.get(e)}setAttributesProperty(e,t){this.attributes.set(e,t)}hasAttributesProperty(e){return!this.isAttributesEmpty&&this.attributes.hasKey(e)}get isAttributesEmpty(){return void 0===this._attributes||this.attributes.isEmpty}}const q=N;class B extends q{constructor(e,t,s){super(e||[],t,s)}get length(){return this._content.length}get isEmpty(){return 0===this.length}get first(){return this._content[0]}get second(){return this._content[1]}get last(){return this._content.at(-1)}push(...e){for(const t of e)this._content.push(this.refract(t));return this}shift(){return this._content.shift()}unshift(e){this._content.unshift(this.refract(e))}includes(e){return this._content.some(t=>t.equals(e))}findElements(e,t){const s=t||{},n=!!s.recursive,r=void 0===s.results?[]:s.results;for(let t=0;t<this._content.length;t+=1){const s=this._content[t],i=s;n&&"function"==typeof i.findElements&&i.findElements(e,{results:r,recursive:n}),e(s,t,void 0)&&r.push(s)}return r}find(e){const t=this.findElements(e,{recursive:!0});return new this.ArrayElement(t)}findByElement(e){return this.find(t=>t.element===e)}findByClass(e){return this.find(t=>{const s=t.classes;return"function"==typeof s.includes&&s.includes(e)})}getById(e){return this.find(t=>t.id.toValue()===e).first}concat(e){return new(0,this.constructor)(this._content.concat(e._content))}[Symbol.iterator](){return this._content[Symbol.iterator]()}}const _=B;const L=class extends q{constructor(e,t,s,n){super(new $,s,n),this.element="member",void 0!==e&&(this.key=e),arguments.length>=2&&(this.value=t)}primitive(){return"member"}get key(){return this._content.key}set key(e){this._content.key=this.refract(e)}get value(){return this._content.value}set value(e){this._content.value=void 0===e?void 0:this.refract(e)}};const V=class extends _{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this._content.reduce((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e),{})}get(e){const t=this.getMember(e);if(t)return t.value}getValue(e){const t=this.get(e);if(t)return t.toValue()}getMember(e){if(void 0!==e)return this._content.find(t=>t.key.toValue()===e)}remove(e){let t=null;return this.content=this._content.filter(s=>s.key.toValue()!==e||(t=s,!1)),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if("string"==typeof e){const s=this.getMember(e);s?s.value=t:this._content.push(new L(e,t))}else if("object"==typeof e&&!Array.isArray(e))for(const t of Object.keys(e))this.set(t,e[t]);return this}keys(){return this._content.map(e=>e.key.toValue())}values(){return this._content.map(e=>e.value.toValue())}hasKey(e){return this._content.some(t=>t.key.equals(e))}items(){return this._content.map(e=>[e.key.toValue(),e.value.toValue()])}map(e,t){return this._content.map(s=>e.call(t,s.value,s.key,s))}compactMap(e,t){const s=[];return this.forEach((n,r,i)=>{const o=e.call(t,n,r,i);o&&s.push(o)}),s}filter(e,t){return new R(this._content).filter(e,t)}reject(e,t){const s=[];for(const n of this._content)e.call(t,n.value,n.key,n)||s.push(n);return new R(s)}forEach(e,t){this._content.forEach(s=>e.call(t,s.value,s.key,s))}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n=this._content[0]?.value);for(let t=s;t<this._content.length;t+=1){const s=this._content[t],r=e(n,s.value,s.key,s,this);n=void 0===r?r:this.refract(r)}return n}empty(){return new this.constructor([])}};const U=class extends V{constructor(e,t,s){super(e,t,s),this.element="callback"}};const H=class extends V{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}};const G=class extends V{constructor(e,t,s){super(e,t,s),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}};const z=class extends V{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}};const X=class extends V{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get styleField(){return this.get("style")}set styleField(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}};const J=class extends V{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}};const K=class extends V{constructor(e,t,s){super(e,t,s),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}};const W=class extends q{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}};class Y extends V{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new W(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new W(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get styleField(){return this.get("style")}set styleField(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}}Object.defineProperty(Y.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Q=Y;const Z=class extends V{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}};const ee=class extends V{constructor(e,t,s){super(e,t,s),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}};const te=class extends q{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content?.length??0}};const se=class extends q{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}};const ne=class extends q{constructor(e,t,s){super(e??null,t,s),this.element="null"}primitive(){return"null"}set(e){throw new Error("Cannot set the value of null")}};const re=class extends _{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this._content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}set(e,t){return"number"==typeof e&&void 0!==t?this._content[e]=this.refract(t):this.content=e,this}remove(e){return this._content.splice(e,1)[0]??null}map(e,t){return this._content.map(e,t)}flatMap(e,t){return this._content.flatMap(e,t)}compactMap(e,t){const s=[];for(const n of this._content){const r=e.call(t,n);r&&s.push(r)}return s}filter(e,t){const s=this._content.filter(e,t);return new this.constructor(s)}reject(e,t){const s=[];for(const n of this._content)e.call(t,n)||s.push(n);return new this.constructor(s)}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n=this.first);for(let t=s;t<this.length;t+=1){const s=e(n,this._content[t],t,this);n=void 0===s?s:this.refract(s)}return n}forEach(e,t){this._content.forEach((s,n)=>{e.call(t,s,n)})}empty(){return new this.constructor([])}},ie=e=>e instanceof q,oe=e=>e instanceof te,ce=e=>e instanceof se,ae=e=>e instanceof ne,le=e=>e instanceof W,ue=e=>e instanceof re,pe=e=>e instanceof V,he=e=>e instanceof L;const de=class extends V{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){return oe(this.operationRef)?this.operationRef?.meta.get("operation"):oe(this.operationId)?this.operationId?.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}};const me=class extends V{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}};const fe=class extends V{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}};const ye=class extends V{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}};const ge=class extends te{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};const xe=class extends V{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}};const ve=class extends V{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new W(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}};class be extends V{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new W(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new W(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get styleField(){return this.get("style")}set styleField(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}}Object.defineProperty(be.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const we=be;const Ee=class extends V{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get getField(){return this.get("get")}set getField(e){this.set("get",e)}get put(){return this.get("put")}set put(e){this.set("put",e)}get post(){return this.get("post")}set post(e){this.set("post",e)}get deleteField(){return this.get("delete")}set deleteField(e){this.set("delete",e)}get options(){return this.get("options")}set options(e){this.set("options",e)}get head(){return this.get("head")}set head(e){this.set("head",e)}get patch(){return this.get("patch")}set patch(e){this.set("patch",e)}get trace(){return this.get("trace")}set trace(e){this.set("trace",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}};const Oe=class extends V{constructor(e,t,s){super(e,t,s),this.element="paths"}};const Se=class extends V{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}};const je=class extends V{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new W(!1)}set required(e){this.set("required",e)}};const ke=class extends V{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}};const Ae=class extends V{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}};function Pe(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}var Fe=g(function(e,t){return Pe(function(s,n){return s[n]=e(t[n],n,t),s},{},F(t))});const Ce=Fe;const Ie=i(function(e){return null==e});var Me=g(function(e,t){if(0===e.length||Ie(t))return!1;for(var s=t,n=0;n<e.length;){if(Ie(s)||!b(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const Te=Me;var $e=g(function(e,t){return Te([e],t)});const De=$e;function Re(e){return function t(s,n,o){switch(arguments.length){case 0:return t;case 1:return r(s)?t:g(function(t,n){return e(s,t,n)});case 2:return r(s)&&r(n)?t:r(s)?g(function(t,s){return e(t,n,s)}):r(n)?g(function(t,n){return e(s,t,n)}):i(function(t){return e(s,n,t)});default:return r(s)&&r(n)&&r(o)?t:r(s)&&r(n)?g(function(t,s){return e(t,s,o)}):r(s)&&r(o)?g(function(t,s){return e(t,n,s)}):r(n)&&r(o)?g(function(t,n){return e(s,t,n)}):r(s)?i(function(t){return e(t,n,o)}):r(n)?i(function(t){return e(s,t,o)}):r(o)?i(function(t){return e(s,n,t)}):e(s,n,o)}}}const Ne=Number.isInteger||function(e){return(e|0)===e};const qe=g(function(e,t){if(null!=t)return Ne(e)?o(e,t):t[e]});const Be=Re(function(e,t,s){return e(qe(t,s))});function _e(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var r=e[n];s=Ne(r)?o(r,s):s[r]}return s}const Le=g(_e);function Ve(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,s){return t.apply(this,arguments)};case 3:return function(e,s,n){return t.apply(this,arguments)};case 4:return function(e,s,n,r){return t.apply(this,arguments)};case 5:return function(e,s,n,r,i){return t.apply(this,arguments)};case 6:return function(e,s,n,r,i,o){return t.apply(this,arguments)};case 7:return function(e,s,n,r,i,o,c){return t.apply(this,arguments)};case 8:return function(e,s,n,r,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,s,n,r,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,s,n,r,i,o,c,a,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Ue(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const He=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Ge(e){return"[object String]"===Object.prototype.toString.call(e)}const ze=i(function(e){return!!He(e)||!!e&&("object"==typeof e&&(!Ge(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Xe="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Je(e,t,s){return function(n,r,i){if(ze(i))return e(n,r,i);if(null==i)return r;if("function"==typeof i["fantasy-land/reduce"])return t(n,r,i,"fantasy-land/reduce");if(null!=i[Xe])return s(n,r,i[Xe]());if("function"==typeof i.next)return s(n,r,i);if("function"==typeof i.reduce)return t(n,r,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ke(e,t,s){for(var n=0,r=s.length;n<r;){if((t=e["@@transducer/step"](t,s[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var We=g(function(e,t){return Ve(e.length,function(){return e.apply(t,arguments)})});const Ye=We;function Qe(e,t,s){for(var n=s.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=s.next()}return e["@@transducer/result"](t)}function Ze(e,t,s,n){return e["@@transducer/result"](s[n](Ye(e["@@transducer/step"],e),t))}const et=Je(Ke,Ze,Qe);var tt=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const st=Re(function(e,t,s){return et("function"==typeof e?new tt(e):e,t,s)});function nt(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return He(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const rt=Re(nt("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const it=i(nt("tail",rt(1,1/0)));function ot(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Ve(arguments[0].length,st(Ue,arguments[0],it(arguments)))}var ct=function(e,t){switch(arguments.length){case 0:return ct;case 1:return function t(s){return 0===arguments.length?t:w(e,s)};default:return w(e,t)}};const at=ct;function lt(e,t){return function(e,t,s){var n,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;s<e.length;){if(0===(r=e[s])&&1/r===n)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(r=e[s])&&r!=r)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(T(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function ut(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}function pt(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ht=function(e){return(e<10?"0":"")+e};const dt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ht(e.getUTCMonth()+1)+"-"+ht(e.getUTCDate())+"T"+ht(e.getUTCHours())+":"+ht(e.getUTCMinutes())+":"+ht(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function mt(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!He(n)){for(var r=0;r<e.length;){if("function"==typeof n[e[r]])return n[e[r]].apply(n,Array.prototype.slice.call(arguments,0,-1));r+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return s.apply(this,arguments)}}function ft(e){return"[object Object]"===Object.prototype.toString.call(e)}const yt=function(){return this.xf["@@transducer/init"]()},gt=function(e){return this.xf["@@transducer/result"](e)};var xt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=yt,e.prototype["@@transducer/result"]=gt,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function vt(e){return function(t){return new xt(e,t)}}var bt=g(mt(["fantasy-land/filter","filter"],vt,function(e,t){return ft(t)?Pe(function(s,n){return e(t[n])&&(s[n]=t[n]),s},{},F(t)):(s=t,"[object Map]"===Object.prototype.toString.call(s)?function(e,t){for(var s=new Map,n=t.entries(),r=n.next();!r.done;)e(r.value[1])&&s.set(r.value[0],r.value[1]),r=n.next();return s}(e,t):function(e,t){for(var s=0,n=t.length,r=[];s<n;)e(t[s])&&(r[r.length]=t[s]),s+=1;return r}(e,t));var s}));const wt=bt;const Et=g(function(e,t){return wt((s=e,function(){return!s.apply(this,arguments)}),t);var s});function Ot(e,t){var s=function(s){var n=t.concat([e]);return lt(s,n)?"<Circular>":Ot(s,n)},n=function(e,t){return ut(function(t){return pt(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+ut(s,e).join(", ")+"))";case"[object Array]":return"["+ut(s,e).concat(n(e,Et(function(e){return/^\d+$/.test(e)},F(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):pt(dt(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":pt(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var r=e.toString();if("[object Object]"!==r)return r}return"{"+n(e,F(e)).join(", ")+"}"}}const St=i(function(e){return Ot(e,[])});const jt=Re(function(e,t,s){return e(_e(t,s))});function kt(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const At=g(function(e,t){return e&&t});function Pt(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function Ft(e,t,s,n){return s[n](e,t)}const Ct=Je(Pe,Ft,Pt);var It=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=yt,e.prototype["@@transducer/result"]=gt,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Mt=function(e){return function(t){return new It(e,t)}};function Tt(e,t,s){return function(){for(var n=[],i=0,o=e,c=0,a=!1;c<t.length||i<arguments.length;){var l;c<t.length&&(!r(t[c])||i>=arguments.length)?l=t[c]:(l=arguments[i],i+=1),n[c]=l,r(l)?a=!0:o-=1,c+=1}return!a&&o<=0?s.apply(this,n):Ve(Math.max(0,o),Tt(e,n,s))}}var $t=g(function(e,t){return 1===e?i(t):Ve(e,Tt(e,[],t))});const Dt=$t;var Rt=g(mt(["fantasy-land/map","map"],Mt,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Dt(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return Pe(function(s,n){return s[n]=e(t[n]),s},{},F(t));default:return ut(e,t)}}));const Nt=Rt;const qt=g(function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:Ct(function(e,s){return function(e,t){var s;t=t||[];var n=(e=e||[]).length,r=t.length,i=[];for(s=0;s<n;)i[i.length]=e[s],s+=1;for(s=0;s<r;)i[i.length]=t[s],s+=1;return i}(e,Nt(s,t))},[],e)});var Bt=g(function(e,t){var s=Dt(e,t);return Dt(e,function(){return Pe(qt,Nt(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const _t=Bt;var Lt=i(function(e){return _t(e.length,e)});const Vt=Lt;const Ut=g(function(e,t){return kt(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Vt(At)(e,t)});const Ht=T(null);const Gt=Vt(i(function(e){return!e}));const zt=Gt(Ht);function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}const Jt=function(e){return"object"===Xt(e)};const Kt=Dt(1,Ut(zt,Jt));const Wt=g(function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var n=s(e,t);if(void 0!==n)return n;var r=s(typeof e,typeof t);if(void 0!==r)return r===typeof e?e:t;var i=St(e),o=s(i,St(t));return void 0!==o&&o===i?e:t});const Yt=g(function(e,t){return Nt(qe(e),t)});const Qt=i(function(e){return Dt(st(Wt,0,Yt("length",e)),function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});const Zt=Dt(1,ot(C,at("GeneratorFunction")));const es=Dt(1,ot(C,at("AsyncFunction")));const ts=Qt([ot(C,at("Function")),Zt,es]);var ss=ot(C,at("Object")),ns=ot(St,T(St(Object))),rs=jt(Ut(ts,ns),["constructor"]);const is=Dt(1,function(e){if(!Kt(e)||!ss(e))return!1;var t=Object.getPrototypeOf(e);return!!Ht(t)||rs(t)});const os=Dt(1,ot(C,at("String")));var cs=i(function(e){return Dt(e.length,e)});const as=cs;const ls=g(function(e,t){return Dt(e+1,function(){var s=arguments[e];if(null!=s&&kt(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(St(s)+' does not have a method named "'+t+'"')})});const us=ls(1,"split");var ps=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=yt,e.prototype["@@transducer/result"]=gt,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function hs(e){return function(t){return new ps(e,t)}}const ds=g(mt(["dropWhile"],hs,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return rt(s,1/0,t)}));const ms=ls(1,"join");var fs=i(function(e){return Dt(e.length,function(t,s){var n=Array.prototype.slice.call(arguments,0);return n[0]=s,n[1]=t,e.apply(this,n)})});const ys=fs(g(lt));const gs=as(function(e,t){return ot(us(""),ds(ys(e)),ms(""))(t)}),xs=new WeakMap,vs=e=>{if(xs.has(e))return xs.get(e);const t={},s=(e,n,r)=>("string"==typeof e.element&&(t[e.element]=e.$visitor?[...r,"$visitor"]:r),Ce((e,t)=>{const i=[...r,t];if(is(e)&&De("$ref",e)&&Be(os,"$ref",e)){const t=Le(["$ref"],e),s=gs("#/",t),r=Le(s.split("/"),n),{$ref:i,...o}=e;return Object.keys(o).length>0&&is(r)?{...r,...o}:r}return is(e)?s(e,n,i):e},e)),n=s(e,e,[]);return n.elementMap=t,xs.set(e,n),n};const bs=class extends V{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idField(){return this.get("id")}set idField(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}};const ws=class extends V{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}};const Es=class extends V{constructor(e,t,s){super(e,t,s),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}};const Os=class extends V{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};function Ss(e,t,s){if(s||(s=new js),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n,r=function(n){var r=s.get(e);if(r)return r;for(var i in s.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?Ss(e[i],!0,s):e[i]);return n};switch(C(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return n=e,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var js=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var s=this.hash(e),n=this.map[s];n||(this.map[s]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var s in e)t.push(Object.prototype.toString.call(e[s]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var s=this.map[t],n=0;n<s.length;n+=1){if((i=s[n])[0]===e)return i[1]}else{var r=this.hash(e);if(s=this.map[r])for(n=0;n<s.length;n+=1){var i;if((i=s[n])[0]===e)return i[1]}}},e}();const ks=i(function(e){return null!=e&&"function"==typeof e.clone?e.clone():Ss(e,!0)}),As=e=>void 0!==e.style,Ps=e=>"number"==typeof e.startLine&&"number"==typeof e.startCharacter&&"number"==typeof e.startOffset&&"number"==typeof e.endLine&&"number"==typeof e.endCharacter&&"number"==typeof e.endOffset,Fs=(e,t)=>0===t.length||!!ie(e)&&(!e.isMetaEmpty&&(!!e.hasMetaProperty("classes")&&t.every(t=>e.classes.includes(t))));class Cs extends te{constructor(e,t,s){super(e,t,s),this.element="sourceMap"}static transfer(e,t){t.startLine=e.startLine,t.startCharacter=e.startCharacter,t.startOffset=e.startOffset,t.endLine=e.endLine,t.endCharacter=e.endCharacter,t.endOffset=e.endOffset}static from(e){const{startLine:t,startCharacter:s,startOffset:n,endLine:r,endCharacter:i,endOffset:o}=e;if("number"!=typeof t||"number"!=typeof s||"number"!=typeof n||"number"!=typeof r||"number"!=typeof i||"number"!=typeof o)return;const c="sm1:"+[t,s,n,r,i,o].map(Ms).join("");const a=new Cs(c);return a.startLine=t,a.startCharacter=s,a.startOffset=n,a.endLine=r,a.endCharacter=i,a.endOffset=o,a}applyTo(e){this.content&&([e.startLine,e.startCharacter,e.startOffset,e.endLine,e.endCharacter,e.endOffset]=function(e){const t=e.startsWith("sm1:")?e.slice(4):e,s=[];let n=0;for(let e=0;e<6;e++){const e=Ts(t,n);s.push(e.value),n=e.next}return s}(this.content))}}const Is="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ms(e){let t=e>>>0,s="";do{let e=31&t;t>>>=5,0!==t&&(e|=32),s+=Is[e]}while(0!==t);return s}function Ts(e,t=0){let s=0,n=0,r=t;for(;;){const t=e[r++],i=Is.indexOf(t);if(-1===i)throw new Error(`Invalid Base64 VLQ char: ${t}`);if(s|=(31&i)<<n,n+=5,!!!(32&i))break}return{value:s>>>0,next:r}}const $s=Cs;const Ds=class extends p{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const Rs=class extends Ds{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Ns=class extends Rs{};const qs=class extends Rs{},Bs=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=Us(e);s.set(e,r);const{content:i}=e;return Array.isArray(i)?r.content=i.map(e=>Bs(e,n)):ie(i)?r.content=Bs(i,n):r.content=i instanceof $?_s(i,n):i,r},_s=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const{key:r,value:i}=e,o=void 0!==r?Bs(r,n):void 0,c=void 0!==i?Bs(i,n):void 0,a=new $(o,c);return s.set(e,a),a},Ls=(e,t={})=>{if(e instanceof $)return _s(e,t);if(e instanceof R)return((e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=[...e].map(e=>Bs(e,n)),i=new R(r);return s.set(e,i),i})(e,t);if(ie(e))return Bs(e,t);throw new Ns("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ls.safe=e=>{try{return Ls(e)}catch{return e}};const Vs=e=>{const{key:t,value:s}=e;return new $(t,s)},Us=e=>{const t=new(0,e.constructor);t.element=e.element,e.isMetaEmpty||(t.meta=Ls(e.meta)),e.isAttributesEmpty||(t.attributes=Ls(e.attributes)),Ps(e)&&$s.transfer(e,t),As(e)&&(t.style=ks(e.style));const{content:s}=e;return ie(s)?t.content=Us(s):Array.isArray(s)?t.content=[...s]:t.content=s instanceof $?Vs(s):s,t},Hs=e=>{if(e instanceof $)return Vs(e);if(e instanceof R)return(e=>{const t=[...e];return new R(t)})(e);if(ie(e))return Us(e);throw new qs("Value provided to cloneShallow function couldn't be cloned",{value:e})};Hs.safe=e=>{try{return Hs(e)}catch{return e}};const Gs=class extends q{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){if(this.hasAttributesProperty("relation"))return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){if(this.hasAttributesProperty("href"))return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}};const zs=class extends q{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){if(this.hasAttributesProperty("path"))return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}};const Xs=class extends te{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){if(this.hasAttributesProperty("code"))return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}};const Js=class extends te{constructor(e,t,s){super(e,t,s),this.element="comment"}};const Ks=class extends re{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.filter(e=>Fs(e,["api"])).first}get results(){return this.filter(e=>Fs(e,["result"]))}get result(){return this.results.first}get annotations(){return this.filter(e=>"annotation"===e.element)}get warnings(){return this.filter(e=>"annotation"===e.element&&Fs(e,["warning"]))}get errors(){return this.filter(e=>"annotation"===e.element&&Fs(e,["error"]))}get isEmpty(){return 0===this.reject(e=>"annotation"===e.element).length}replaceResult(e){const{result:t}=this;if(void 0===t)return!1;const s=this._content,n=s.findIndex(e=>e===t);return-1!==n&&(s[n]=e,!0)}},Ws=e=>e instanceof Gs,Ys=e=>e instanceof zs,Qs=e=>{if(!ie(e))return e;if(oe(e)||ce(e)||le(e)||ae(e))return e.toValue();const t=new WeakMap,s=e=>{if(!ie(e))return e;if(pe(e)){if(t.has(e))return t.get(e);const n={};return t.set(e,n),e.forEach((e,t)=>{const r=s(t),i=s(e);"string"==typeof r&&(n[r]=i)}),n}if(ue(e)){if(t.has(e))return t.get(e);const n=[];return t.set(e,n),e.forEach(e=>n.push(s(e))),n}return Ys(e)?String(e.toValue()):Ws(e)?oe(e.href)?e.href.toValue():"":e.toValue()};return s(e)},Zs=e=>{const t=e.isMetaEmpty?void 0:Ls(e.meta),s=e.isAttributesEmpty?void 0:Ls(e.attributes);return new e.constructor(void 0,t,s)},en=(e,t)=>t.clone&&t.isMergeableElement(e)?sn(Zs(e),e,t):e,tn={clone:!0,isMergeableElement:e=>pe(e)||ue(e),arrayElementMerge:(e,t,s)=>new(0,e.constructor)(e.concat(t).map(e=>en(e,s))),objectElementMerge:(e,t,s)=>{const n=pe(e)?Zs(e):Zs(t);return pe(e)&&e.forEach((e,t,r)=>{const i=Hs(r);i.value=en(e,s),n.content.push(i)}),t.forEach((t,r,i)=>{const o=Qs(r);let c;if(pe(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=Hs(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return sn;const s=t.customMerge(e,t);return"function"==typeof s?s:sn})(r,s)(n,t,s)}else c=Hs(i),c.value=en(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},sn=(e,t,s)=>{const n={...tn,...s};n.isMergeableElement=n.isMergeableElement??tn.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??tn.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??tn.objectElementMerge;const r=ue(t);if(!(r===ue(e)))return en(t,n);const i=r&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(e,t,n):n.objectElementMerge(e,t,n);return i.meta=(e=>"function"!=typeof e.customMetaMerge?e=>Ls(e):e.customMetaMerge)(n)(e.meta,t.meta),i.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Ls(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),i};sn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new V:e.reduce((e,s)=>sn(e,s,t),Zs(e[0]))};const nn=sn;class rn extends V{constructor(e,t,s){super(e,t,s),this.element="__styles__"}static transfer(e,t){t.style=e.style}static from(e){if(e.style)return new rn(e.style)}applyTo(e){e.style=this.toValue()}}const on=rn;const cn=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){if(!e.isMetaEmpty||!t.isMetaEmpty){const s=t.isMetaEmpty?new V:t.meta,n=e.isMetaEmpty?new V:e.meta;t.meta=nn(s,n)}if(!e.isAttributesEmpty||!t.isAttributesEmpty){const s=t.isAttributesEmpty?new V:t.attributes,n=e.isAttributesEmpty?new V:e.attributes;t.attributes=nn(s,n)}$s.transfer(e,t),on.transfer(e,t)}};const an=class extends cn{enter(e){this.element=Ls(e.node),e.stop()}};const ln=i(function(e){return function(){return e}});const un=g(function(e,t){return null==t||t!=t?e:t});const pn=ln(void 0);const hn=T(pn());const dn=i(function(e){return Dt(st(Wt,0,Yt("length",e)),function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});var mn=i(function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():e==Set||e instanceof Set?new Set:e==Map||e instanceof Map?new Map:He(e)?[]:Ge(e)?"":ft(e)?{}:O(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0});const fn=mn;const yn=i(function(e){return null!=e&&T(e,fn(e))});const gn=i(function(e){return!yn(e)});const xn=g(function(e,t){return e||t});const vn=Dt(1,Ut(zt,g(function(e,t){return kt(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Vt(xn)(e,t)})(Jt,ts)));var bn=Gt(vn);const wn=dn([os,bn,gn]);const En=g(function(e,t){for(var s={},n=0;n<e.length;)e[n]in t&&(s[e[n]]=t[e[n]]),n+=1;return s}),On=function(){const e=jn,t=Sn,s=this,n="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let r,i,o,c,a,l,u,p=0,h=0,d=0,m=0,f=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,x,b,w)=>{const E=`${n}parse(): `;p=0,h=0,d=0,m=0,f=0,r=void 0,i=void 0,o=void 0,c=void 0,y.refresh(),a=void 0,l=void 0,u=void 0,c=t.stringToChars(b),r=g.rules,i=g.udts;const O=x.toLowerCase();let S;for(const e in r)if(r.hasOwnProperty(e)&&O===r[e].lower){S=r[e].index;break}if(void 0===S)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(a=[],l=[],t=0;t<r.length;t+=1)a[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const c=[];for(t=0;t<r.length;t+=1)c.push(r[t].lower);for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(const n in s.callbacks)if(s.callbacks.hasOwnProperty(n)){if(t=c.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=s.callbacks[n]?s.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<r.length?a[t]=o:l[t-r.length]=o}})(),s.trace&&s.trace.init(r,i,c),s.stats&&s.stats.init(r,i),s.ast&&s.ast.init(r,i,c),u=w,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(y.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:j=!1;break;case e.EMPTY:case e.MATCH:j=y.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:j,state:y.state,stateName:e.idName(y.state),length:c.length,matched:y.phraseLength,maxMatched:f,maxTreeDepth:d,nodeHits:m}};const g=(t,s,r,i)=>{if(s.phraseLength>r){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${r}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},x=(t,a)=>{let h,d,m;const f=o[t],g=i[f.index];y.UdtIndex=g.index,p||(m=s.ast&&s.ast.udtDefined(f.index),m&&(d=r.length+f.index,h=s.ast.getLength(),s.ast.down(d,g.name)));const x=c.length-a;l[f.index](y,c,a,u),((t,s,r)=>{if(s.phraseLength>r){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${r}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,y,x),p||m&&(y.state===e.NOMATCH?s.ast.setLength(h):s.ast.up(d,g.name,a,y.phraseLength))},v=(t,i)=>{const l=`${n}opExecute(): `,b=o[t];switch(m+=1,h>d&&(d=h),h+=1,y.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const n=o[t];for(let t=0;t<n.children.length&&(v(n.children[t],s),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,n)=>{let r,i,c,a;const l=o[t];s.ast&&(i=s.ast.getLength()),r=!0,c=n,a=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],c),y.state===e.NOMATCH){r=!1;break}c+=y.phraseLength,a+=y.phraseLength}r?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,n)=>{let r,i,a,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=n,a=0,l=0,s.ast&&(r=s.ast.getLength());!(i>=c.length)&&(v(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,a+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,s.ast&&s.ast.setLength(r))})(t,i);break;case e.RNM:((t,n)=>{let i,l,h;const d=o[t],m=r[d.index],f=a[m.index];if(p||(l=s.ast&&s.ast.ruleDefined(d.index),l&&(i=s.ast.getLength(),s.ast.down(d.index,r[d.index].name))),f){const t=c.length-n;f(y,c,n,u),g(m,y,t,!0),y.state===e.ACTIVE&&(h=o,o=m.opcodes,v(0,n),o=h,f(y,c,n,u),g(m,y,t,!1))}else h=o,o=m.opcodes,v(0,n,y),o=h;p||l&&(y.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(d.index,m.name,n,y.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const n=o[t];y.state=e.NOMATCH,s<c.length&&n.min<=c[s]&&c[s]<=n.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const n=o[t],r=n.string.length;if(y.state=e.NOMATCH,s+r<=c.length){for(let e=0;e<r;e+=1)if(c[s+e]!==n.string[e])return;y.state=e.MATCH,y.phraseLength=r}})(t,i);break;case e.TLS:((t,s)=>{let n;const r=o[t];y.state=e.NOMATCH;const i=r.string.length;if(0!==i){if(s+i<=c.length){for(let e=0;e<i;e+=1)if(n=c[s+e],n>=65&&n<=90&&(n+=32),n!==r.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:x(t,i);break;case e.AND:((t,s)=>{switch(p+=1,v(t+1,s),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(p+=1,v(t+1,s),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>f&&(f=i+y.phraseLength),s.stats&&s.stats.collect(b,y),s.trace&&s.trace.up(b,y.state,i,y.phraseLength),h-=1}},Sn={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,s)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===s){n=e.slice(t);break}if(s<=0)return"";n=e.slice(t,t+s);break}return String.fromCodePoint(...n)}},jn={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case jn.ALT:return"ALT";case jn.CAT:return"CAT";case jn.REP:return"REP";case jn.RNM:return"RNM";case jn.TRG:return"TRG";case jn.TBS:return"TBS";case jn.TLS:return"TLS";case jn.UDT:return"UDT";case jn.AND:return"AND";case jn.NOT:return"NOT";case jn.ACTIVE:return"ACTIVE";case jn.EMPTY:return"EMPTY";case jn.MATCH:return"MATCH";case jn.NOMATCH:return"NOMATCH";case jn.SEM_PRE:return"SEM_PRE";case jn.SEM_POST:return"SEM_POST";case jn.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function kn(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class An extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const Pn=An;new kn;new kn,new On,new kn,new On,new kn,new On,new kn,new On;const Fn=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const Cn=class extends Pn{},In=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map(e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return Fn(String(e))}).join("/")}`}catch(t){throw new Cn("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class Mn extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const Tn=Mn;new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"jsonpath-query",lower:"jsonpath-query",index:0,isBkr:!1},this.rules[1]={name:"segments",lower:"segments",index:1,isBkr:!1},this.rules[2]={name:"B",lower:"b",index:2,isBkr:!1},this.rules[3]={name:"S",lower:"s",index:3,isBkr:!1},this.rules[4]={name:"root-identifier",lower:"root-identifier",index:4,isBkr:!1},this.rules[5]={name:"selector",lower:"selector",index:5,isBkr:!1},this.rules[6]={name:"name-selector",lower:"name-selector",index:6,isBkr:!1},this.rules[7]={name:"string-literal",lower:"string-literal",index:7,isBkr:!1},this.rules[8]={name:"double-quoted",lower:"double-quoted",index:8,isBkr:!1},this.rules[9]={name:"single-quoted",lower:"single-quoted",index:9,isBkr:!1},this.rules[10]={name:"ESC",lower:"esc",index:10,isBkr:!1},this.rules[11]={name:"unescaped",lower:"unescaped",index:11,isBkr:!1},this.rules[12]={name:"escapable",lower:"escapable",index:12,isBkr:!1},this.rules[13]={name:"hexchar",lower:"hexchar",index:13,isBkr:!1},this.rules[14]={name:"non-surrogate",lower:"non-surrogate",index:14,isBkr:!1},this.rules[15]={name:"high-surrogate",lower:"high-surrogate",index:15,isBkr:!1},this.rules[16]={name:"low-surrogate",lower:"low-surrogate",index:16,isBkr:!1},this.rules[17]={name:"HEXDIG",lower:"hexdig",index:17,isBkr:!1},this.rules[18]={name:"wildcard-selector",lower:"wildcard-selector",index:18,isBkr:!1},this.rules[19]={name:"index-selector",lower:"index-selector",index:19,isBkr:!1},this.rules[20]={name:"int",lower:"int",index:20,isBkr:!1},this.rules[21]={name:"DIGIT1",lower:"digit1",index:21,isBkr:!1},this.rules[22]={name:"slice-selector",lower:"slice-selector",index:22,isBkr:!1},this.rules[23]={name:"start",lower:"start",index:23,isBkr:!1},this.rules[24]={name:"end",lower:"end",index:24,isBkr:!1},this.rules[25]={name:"step",lower:"step",index:25,isBkr:!1},this.rules[26]={name:"filter-selector",lower:"filter-selector",index:26,isBkr:!1},this.rules[27]={name:"logical-expr",lower:"logical-expr",index:27,isBkr:!1},this.rules[28]={name:"logical-or-expr",lower:"logical-or-expr",index:28,isBkr:!1},this.rules[29]={name:"logical-and-expr",lower:"logical-and-expr",index:29,isBkr:!1},this.rules[30]={name:"basic-expr",lower:"basic-expr",index:30,isBkr:!1},this.rules[31]={name:"paren-expr",lower:"paren-expr",index:31,isBkr:!1},this.rules[32]={name:"logical-not-op",lower:"logical-not-op",index:32,isBkr:!1},this.rules[33]={name:"test-expr",lower:"test-expr",index:33,isBkr:!1},this.rules[34]={name:"filter-query",lower:"filter-query",index:34,isBkr:!1},this.rules[35]={name:"rel-query",lower:"rel-query",index:35,isBkr:!1},this.rules[36]={name:"current-node-identifier",lower:"current-node-identifier",index:36,isBkr:!1},this.rules[37]={name:"comparison-expr",lower:"comparison-expr",index:37,isBkr:!1},this.rules[38]={name:"literal",lower:"literal",index:38,isBkr:!1},this.rules[39]={name:"comparable",lower:"comparable",index:39,isBkr:!1},this.rules[40]={name:"comparison-op",lower:"comparison-op",index:40,isBkr:!1},this.rules[41]={name:"singular-query",lower:"singular-query",index:41,isBkr:!1},this.rules[42]={name:"rel-singular-query",lower:"rel-singular-query",index:42,isBkr:!1},this.rules[43]={name:"abs-singular-query",lower:"abs-singular-query",index:43,isBkr:!1},this.rules[44]={name:"singular-query-segments",lower:"singular-query-segments",index:44,isBkr:!1},this.rules[45]={name:"name-segment",lower:"name-segment",index:45,isBkr:!1},this.rules[46]={name:"index-segment",lower:"index-segment",index:46,isBkr:!1},this.rules[47]={name:"number",lower:"number",index:47,isBkr:!1},this.rules[48]={name:"frac",lower:"frac",index:48,isBkr:!1},this.rules[49]={name:"exp",lower:"exp",index:49,isBkr:!1},this.rules[50]={name:"true",lower:"true",index:50,isBkr:!1},this.rules[51]={name:"false",lower:"false",index:51,isBkr:!1},this.rules[52]={name:"null",lower:"null",index:52,isBkr:!1},this.rules[53]={name:"function-name",lower:"function-name",index:53,isBkr:!1},this.rules[54]={name:"function-name-first",lower:"function-name-first",index:54,isBkr:!1},this.rules[55]={name:"function-name-char",lower:"function-name-char",index:55,isBkr:!1},this.rules[56]={name:"LCALPHA",lower:"lcalpha",index:56,isBkr:!1},this.rules[57]={name:"function-expr",lower:"function-expr",index:57,isBkr:!1},this.rules[58]={name:"function-argument",lower:"function-argument",index:58,isBkr:!1},this.rules[59]={name:"segment",lower:"segment",index:59,isBkr:!1},this.rules[60]={name:"child-segment",lower:"child-segment",index:60,isBkr:!1},this.rules[61]={name:"bracketed-selection",lower:"bracketed-selection",index:61,isBkr:!1},this.rules[62]={name:"member-name-shorthand",lower:"member-name-shorthand",index:62,isBkr:!1},this.rules[63]={name:"name-first",lower:"name-first",index:63,isBkr:!1},this.rules[64]={name:"name-char",lower:"name-char",index:64,isBkr:!1},this.rules[65]={name:"DIGIT",lower:"digit",index:65,isBkr:!1},this.rules[66]={name:"ALPHA",lower:"alpha",index:66,isBkr:!1},this.rules[67]={name:"descendant-segment",lower:"descendant-segment",index:67,isBkr:!1},this.rules[68]={name:"normalized-path",lower:"normalized-path",index:68,isBkr:!1},this.rules[69]={name:"normal-index-segment",lower:"normal-index-segment",index:69,isBkr:!1},this.rules[70]={name:"normal-selector",lower:"normal-selector",index:70,isBkr:!1},this.rules[71]={name:"normal-name-selector",lower:"normal-name-selector",index:71,isBkr:!1},this.rules[72]={name:"normal-single-quoted",lower:"normal-single-quoted",index:72,isBkr:!1},this.rules[73]={name:"normal-unescaped",lower:"normal-unescaped",index:73,isBkr:!1},this.rules[74]={name:"normal-escapable",lower:"normal-escapable",index:74,isBkr:!1},this.rules[75]={name:"normal-hexchar",lower:"normal-hexchar",index:75,isBkr:!1},this.rules[76]={name:"normal-HEXDIG",lower:"normal-hexdig",index:76,isBkr:!1},this.rules[77]={name:"normal-index-selector",lower:"normal-index-selector",index:77,isBkr:!1},this.rules[78]={name:"dot-prefix",lower:"dot-prefix",index:78,isBkr:!1},this.rules[79]={name:"double-dot-prefix",lower:"double-dot-prefix",index:79,isBkr:!1},this.rules[80]={name:"left-bracket",lower:"left-bracket",index:80,isBkr:!1},this.rules[81]={name:"right-bracket",lower:"right-bracket",index:81,isBkr:!1},this.rules[82]={name:"left-paren",lower:"left-paren",index:82,isBkr:!1},this.rules[83]={name:"right-paren",lower:"right-paren",index:83,isBkr:!1},this.rules[84]={name:"comma",lower:"comma",index:84,isBkr:!1},this.rules[85]={name:"colon",lower:"colon",index:85,isBkr:!1},this.rules[86]={name:"dquote",lower:"dquote",index:86,isBkr:!1},this.rules[87]={name:"squote",lower:"squote",index:87,isBkr:!1},this.rules[88]={name:"questionmark",lower:"questionmark",index:88,isBkr:!1},this.rules[89]={name:"disjunction",lower:"disjunction",index:89,isBkr:!1},this.rules[90]={name:"conjunction",lower:"conjunction",index:90,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:4},this.rules[0].opcodes[2]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:2,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:59},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[2].opcodes[1]={type:6,string:[32]},this.rules[2].opcodes[2]={type:6,string:[9]},this.rules[2].opcodes[3]={type:6,string:[10]},this.rules[2].opcodes[4]={type:6,string:[13]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:2},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:7,string:[36]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[5].opcodes[1]={type:4,index:6},this.rules[5].opcodes[2]={type:4,index:18},this.rules[5].opcodes[3]={type:4,index:22},this.rules[5].opcodes[4]={type:4,index:19},this.rules[5].opcodes[5]={type:4,index:26},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,6]},this.rules[7].opcodes[1]={type:2,children:[2,3,5]},this.rules[7].opcodes[2]={type:4,index:86},this.rules[7].opcodes[3]={type:3,min:0,max:1/0},this.rules[7].opcodes[4]={type:4,index:8},this.rules[7].opcodes[5]={type:4,index:86},this.rules[7].opcodes[6]={type:2,children:[7,8,10]},this.rules[7].opcodes[7]={type:4,index:87},this.rules[7].opcodes[8]={type:3,min:0,max:1/0},this.rules[7].opcodes[9]={type:4,index:9},this.rules[7].opcodes[10]={type:4,index:87},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3,6]},this.rules[8].opcodes[1]={type:4,index:11},this.rules[8].opcodes[2]={type:6,string:[39]},this.rules[8].opcodes[3]={type:2,children:[4,5]},this.rules[8].opcodes[4]={type:4,index:10},this.rules[8].opcodes[5]={type:6,string:[34]},this.rules[8].opcodes[6]={type:2,children:[7,8]},this.rules[8].opcodes[7]={type:4,index:10},this.rules[8].opcodes[8]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,6]},this.rules[9].opcodes[1]={type:4,index:11},this.rules[9].opcodes[2]={type:6,string:[34]},this.rules[9].opcodes[3]={type:2,children:[4,5]},this.rules[9].opcodes[4]={type:4,index:10},this.rules[9].opcodes[5]={type:6,string:[39]},this.rules[9].opcodes[6]={type:2,children:[7,8]},this.rules[9].opcodes[7]={type:4,index:10},this.rules[9].opcodes[8]={type:4,index:12},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:6,string:[92]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[11].opcodes[1]={type:5,min:32,max:33},this.rules[11].opcodes[2]={type:5,min:35,max:38},this.rules[11].opcodes[3]={type:5,min:40,max:91},this.rules[11].opcodes[4]={type:5,min:93,max:55295},this.rules[11].opcodes[5]={type:5,min:57344,max:1114111},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8]},this.rules[12].opcodes[1]={type:6,string:[98]},this.rules[12].opcodes[2]={type:6,string:[102]},this.rules[12].opcodes[3]={type:6,string:[110]},this.rules[12].opcodes[4]={type:6,string:[114]},this.rules[12].opcodes[5]={type:6,string:[116]},this.rules[12].opcodes[6]={type:7,string:[47]},this.rules[12].opcodes[7]={type:7,string:[92]},this.rules[12].opcodes[8]={type:2,children:[9,10]},this.rules[12].opcodes[9]={type:6,string:[117]},this.rules[12].opcodes[10]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2]},this.rules[13].opcodes[1]={type:4,index:14},this.rules[13].opcodes[2]={type:2,children:[3,4,5,6]},this.rules[13].opcodes[3]={type:4,index:15},this.rules[13].opcodes[4]={type:7,string:[92]},this.rules[13].opcodes[5]={type:6,string:[117]},this.rules[13].opcodes[6]={type:4,index:16},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:1,children:[1,11]},this.rules[14].opcodes[1]={type:2,children:[2,9]},this.rules[14].opcodes[2]={type:1,children:[3,4,5,6,7,8]},this.rules[14].opcodes[3]={type:4,index:65},this.rules[14].opcodes[4]={type:7,string:[97]},this.rules[14].opcodes[5]={type:7,string:[98]},this.rules[14].opcodes[6]={type:7,string:[99]},this.rules[14].opcodes[7]={type:7,string:[101]},this.rules[14].opcodes[8]={type:7,string:[102]},this.rules[14].opcodes[9]={type:3,min:3,max:3},this.rules[14].opcodes[10]={type:4,index:17},this.rules[14].opcodes[11]={type:2,children:[12,13,14]},this.rules[14].opcodes[12]={type:7,string:[100]},this.rules[14].opcodes[13]={type:5,min:48,max:55},this.rules[14].opcodes[14]={type:3,min:2,max:2},this.rules[14].opcodes[15]={type:4,index:17},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2,7]},this.rules[15].opcodes[1]={type:7,string:[100]},this.rules[15].opcodes[2]={type:1,children:[3,4,5,6]},this.rules[15].opcodes[3]={type:7,string:[56]},this.rules[15].opcodes[4]={type:7,string:[57]},this.rules[15].opcodes[5]={type:7,string:[97]},this.rules[15].opcodes[6]={type:7,string:[98]},this.rules[15].opcodes[7]={type:3,min:2,max:2},this.rules[15].opcodes[8]={type:4,index:17},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:2,children:[1,2,7]},this.rules[16].opcodes[1]={type:7,string:[100]},this.rules[16].opcodes[2]={type:1,children:[3,4,5,6]},this.rules[16].opcodes[3]={type:7,string:[99]},this.rules[16].opcodes[4]={type:7,string:[100]},this.rules[16].opcodes[5]={type:7,string:[101]},this.rules[16].opcodes[6]={type:7,string:[102]},this.rules[16].opcodes[7]={type:3,min:2,max:2},this.rules[16].opcodes[8]={type:4,index:17},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[17].opcodes[1]={type:4,index:65},this.rules[17].opcodes[2]={type:7,string:[97]},this.rules[17].opcodes[3]={type:7,string:[98]},this.rules[17].opcodes[4]={type:7,string:[99]},this.rules[17].opcodes[5]={type:7,string:[100]},this.rules[17].opcodes[6]={type:7,string:[101]},this.rules[17].opcodes[7]={type:7,string:[102]},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:7,string:[42]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:4,index:20},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,2]},this.rules[20].opcodes[1]={type:7,string:[48]},this.rules[20].opcodes[2]={type:2,children:[3,5,6]},this.rules[20].opcodes[3]={type:3,min:0,max:1},this.rules[20].opcodes[4]={type:7,string:[45]},this.rules[20].opcodes[5]={type:4,index:21},this.rules[20].opcodes[6]={type:3,min:0,max:1/0},this.rules[20].opcodes[7]={type:4,index:65},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:5,min:49,max:57},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:2,children:[1,5,6,7,11]},this.rules[22].opcodes[1]={type:3,min:0,max:1},this.rules[22].opcodes[2]={type:2,children:[3,4]},this.rules[22].opcodes[3]={type:4,index:23},this.rules[22].opcodes[4]={type:4,index:3},this.rules[22].opcodes[5]={type:4,index:85},this.rules[22].opcodes[6]={type:4,index:3},this.rules[22].opcodes[7]={type:3,min:0,max:1},this.rules[22].opcodes[8]={type:2,children:[9,10]},this.rules[22].opcodes[9]={type:4,index:24},this.rules[22].opcodes[10]={type:4,index:3},this.rules[22].opcodes[11]={type:3,min:0,max:1},this.rules[22].opcodes[12]={type:2,children:[13,14]},this.rules[22].opcodes[13]={type:4,index:85},this.rules[22].opcodes[14]={type:3,min:0,max:1},this.rules[22].opcodes[15]={type:2,children:[16,17]},this.rules[22].opcodes[16]={type:4,index:3},this.rules[22].opcodes[17]={type:4,index:25},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:4,index:20},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:4,index:20},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:4,index:20},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:2,children:[1,2,3]},this.rules[26].opcodes[1]={type:4,index:88},this.rules[26].opcodes[2]={type:4,index:3},this.rules[26].opcodes[3]={type:4,index:27},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:4,index:28},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:2,children:[1,2]},this.rules[28].opcodes[1]={type:4,index:29},this.rules[28].opcodes[2]={type:3,min:0,max:1/0},this.rules[28].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[28].opcodes[4]={type:4,index:3},this.rules[28].opcodes[5]={type:4,index:89},this.rules[28].opcodes[6]={type:4,index:3},this.rules[28].opcodes[7]={type:4,index:29},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:2,children:[1,2]},this.rules[29].opcodes[1]={type:4,index:30},this.rules[29].opcodes[2]={type:3,min:0,max:1/0},this.rules[29].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[29].opcodes[4]={type:4,index:3},this.rules[29].opcodes[5]={type:4,index:90},this.rules[29].opcodes[6]={type:4,index:3},this.rules[29].opcodes[7]={type:4,index:30},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:1,children:[1,2,3]},this.rules[30].opcodes[1]={type:4,index:31},this.rules[30].opcodes[2]={type:4,index:37},this.rules[30].opcodes[3]={type:4,index:33},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:2,children:[1,5,6,7,8,9]},this.rules[31].opcodes[1]={type:3,min:0,max:1},this.rules[31].opcodes[2]={type:2,children:[3,4]},this.rules[31].opcodes[3]={type:4,index:32},this.rules[31].opcodes[4]={type:4,index:3},this.rules[31].opcodes[5]={type:4,index:82},this.rules[31].opcodes[6]={type:4,index:3},this.rules[31].opcodes[7]={type:4,index:27},this.rules[31].opcodes[8]={type:4,index:3},this.rules[31].opcodes[9]={type:4,index:83},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:7,string:[33]},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:2,children:[1,5]},this.rules[33].opcodes[1]={type:3,min:0,max:1},this.rules[33].opcodes[2]={type:2,children:[3,4]},this.rules[33].opcodes[3]={type:4,index:32},this.rules[33].opcodes[4]={type:4,index:3},this.rules[33].opcodes[5]={type:1,children:[6,7]},this.rules[33].opcodes[6]={type:4,index:34},this.rules[33].opcodes[7]={type:4,index:57},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:1,children:[1,2]},this.rules[34].opcodes[1]={type:4,index:35},this.rules[34].opcodes[2]={type:4,index:0},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:2,children:[1,2]},this.rules[35].opcodes[1]={type:4,index:36},this.rules[35].opcodes[2]={type:4,index:1},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:7,string:[64]},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:2,children:[1,2,3,4,5]},this.rules[37].opcodes[1]={type:4,index:39},this.rules[37].opcodes[2]={type:4,index:3},this.rules[37].opcodes[3]={type:4,index:40},this.rules[37].opcodes[4]={type:4,index:3},this.rules[37].opcodes[5]={type:4,index:39},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[38].opcodes[1]={type:4,index:47},this.rules[38].opcodes[2]={type:4,index:7},this.rules[38].opcodes[3]={type:4,index:50},this.rules[38].opcodes[4]={type:4,index:51},this.rules[38].opcodes[5]={type:4,index:52},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:1,children:[1,2,3]},this.rules[39].opcodes[1]={type:4,index:41},this.rules[39].opcodes[2]={type:4,index:57},this.rules[39].opcodes[3]={type:4,index:38},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[40].opcodes[1]={type:7,string:[61,61]},this.rules[40].opcodes[2]={type:7,string:[33,61]},this.rules[40].opcodes[3]={type:7,string:[60,61]},this.rules[40].opcodes[4]={type:7,string:[62,61]},this.rules[40].opcodes[5]={type:7,string:[60]},this.rules[40].opcodes[6]={type:7,string:[62]},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:1,children:[1,2]},this.rules[41].opcodes[1]={type:4,index:42},this.rules[41].opcodes[2]={type:4,index:43},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:2,children:[1,2]},this.rules[42].opcodes[1]={type:4,index:36},this.rules[42].opcodes[2]={type:4,index:44},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:2,children:[1,2]},this.rules[43].opcodes[1]={type:4,index:4},this.rules[43].opcodes[2]={type:4,index:44},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:3,min:0,max:1/0},this.rules[44].opcodes[1]={type:2,children:[2,3]},this.rules[44].opcodes[2]={type:4,index:3},this.rules[44].opcodes[3]={type:1,children:[4,5]},this.rules[44].opcodes[4]={type:4,index:45},this.rules[44].opcodes[5]={type:4,index:46},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:1,children:[1,5]},this.rules[45].opcodes[1]={type:2,children:[2,3,4]},this.rules[45].opcodes[2]={type:4,index:80},this.rules[45].opcodes[3]={type:4,index:6},this.rules[45].opcodes[4]={type:4,index:81},this.rules[45].opcodes[5]={type:2,children:[6,7]},this.rules[45].opcodes[6]={type:4,index:78},this.rules[45].opcodes[7]={type:4,index:62},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:2,children:[1,2,3]},this.rules[46].opcodes[1]={type:4,index:80},this.rules[46].opcodes[2]={type:4,index:19},this.rules[46].opcodes[3]={type:4,index:81},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:2,children:[1,4,6]},this.rules[47].opcodes[1]={type:1,children:[2,3]},this.rules[47].opcodes[2]={type:4,index:20},this.rules[47].opcodes[3]={type:7,string:[45,48]},this.rules[47].opcodes[4]={type:3,min:0,max:1},this.rules[47].opcodes[5]={type:4,index:48},this.rules[47].opcodes[6]={type:3,min:0,max:1},this.rules[47].opcodes[7]={type:4,index:49},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:2,children:[1,2]},this.rules[48].opcodes[1]={type:7,string:[46]},this.rules[48].opcodes[2]={type:3,min:1,max:1/0},this.rules[48].opcodes[3]={type:4,index:65},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:2,children:[1,2,6]},this.rules[49].opcodes[1]={type:7,string:[101]},this.rules[49].opcodes[2]={type:3,min:0,max:1},this.rules[49].opcodes[3]={type:1,children:[4,5]},this.rules[49].opcodes[4]={type:7,string:[45]},this.rules[49].opcodes[5]={type:7,string:[43]},this.rules[49].opcodes[6]={type:3,min:1,max:1/0},this.rules[49].opcodes[7]={type:4,index:65},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:6,string:[116,114,117,101]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:6,string:[102,97,108,115,101]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:6,string:[110,117,108,108]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:2,children:[1,2]},this.rules[53].opcodes[1]={type:4,index:54},this.rules[53].opcodes[2]={type:3,min:0,max:1/0},this.rules[53].opcodes[3]={type:4,index:55},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:4,index:56},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:1,children:[1,2,3]},this.rules[55].opcodes[1]={type:4,index:54},this.rules[55].opcodes[2]={type:7,string:[95]},this.rules[55].opcodes[3]={type:4,index:65},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:5,min:97,max:122},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:2,children:[1,2,3,4,13,14]},this.rules[57].opcodes[1]={type:4,index:53},this.rules[57].opcodes[2]={type:4,index:82},this.rules[57].opcodes[3]={type:4,index:3},this.rules[57].opcodes[4]={type:3,min:0,max:1},this.rules[57].opcodes[5]={type:2,children:[6,7]},this.rules[57].opcodes[6]={type:4,index:58},this.rules[57].opcodes[7]={type:3,min:0,max:1/0},this.rules[57].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[57].opcodes[9]={type:4,index:3},this.rules[57].opcodes[10]={type:4,index:84},this.rules[57].opcodes[11]={type:4,index:3},this.rules[57].opcodes[12]={type:4,index:58},this.rules[57].opcodes[13]={type:4,index:3},this.rules[57].opcodes[14]={type:4,index:83},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[58].opcodes[1]={type:4,index:27},this.rules[58].opcodes[2]={type:4,index:34},this.rules[58].opcodes[3]={type:4,index:57},this.rules[58].opcodes[4]={type:4,index:38},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:1,children:[1,2]},this.rules[59].opcodes[1]={type:4,index:60},this.rules[59].opcodes[2]={type:4,index:67},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:1,children:[1,2]},this.rules[60].opcodes[1]={type:4,index:61},this.rules[60].opcodes[2]={type:2,children:[3,4]},this.rules[60].opcodes[3]={type:4,index:78},this.rules[60].opcodes[4]={type:1,children:[5,6]},this.rules[60].opcodes[5]={type:4,index:18},this.rules[60].opcodes[6]={type:4,index:62},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:2,children:[1,2,3,4,10,11]},this.rules[61].opcodes[1]={type:4,index:80},this.rules[61].opcodes[2]={type:4,index:3},this.rules[61].opcodes[3]={type:4,index:5},this.rules[61].opcodes[4]={type:3,min:0,max:1/0},this.rules[61].opcodes[5]={type:2,children:[6,7,8,9]},this.rules[61].opcodes[6]={type:4,index:3},this.rules[61].opcodes[7]={type:4,index:84},this.rules[61].opcodes[8]={type:4,index:3},this.rules[61].opcodes[9]={type:4,index:5},this.rules[61].opcodes[10]={type:4,index:3},this.rules[61].opcodes[11]={type:4,index:81},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:2,children:[1,2]},this.rules[62].opcodes[1]={type:4,index:63},this.rules[62].opcodes[2]={type:3,min:0,max:1/0},this.rules[62].opcodes[3]={type:4,index:64},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[63].opcodes[1]={type:4,index:66},this.rules[63].opcodes[2]={type:7,string:[95]},this.rules[63].opcodes[3]={type:5,min:128,max:55295},this.rules[63].opcodes[4]={type:5,min:57344,max:1114111},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:1,children:[1,2]},this.rules[64].opcodes[1]={type:4,index:63},this.rules[64].opcodes[2]={type:4,index:65},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:5,min:48,max:57},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:1,children:[1,2]},this.rules[66].opcodes[1]={type:5,min:65,max:90},this.rules[66].opcodes[2]={type:5,min:97,max:122},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:2,children:[1,2]},this.rules[67].opcodes[1]={type:4,index:79},this.rules[67].opcodes[2]={type:1,children:[3,4,5]},this.rules[67].opcodes[3]={type:4,index:61},this.rules[67].opcodes[4]={type:4,index:18},this.rules[67].opcodes[5]={type:4,index:62},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:2,children:[1,2]},this.rules[68].opcodes[1]={type:4,index:4},this.rules[68].opcodes[2]={type:3,min:0,max:1/0},this.rules[68].opcodes[3]={type:4,index:69},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:2,children:[1,2,3]},this.rules[69].opcodes[1]={type:4,index:80},this.rules[69].opcodes[2]={type:4,index:70},this.rules[69].opcodes[3]={type:4,index:81},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:1,children:[1,2]},this.rules[70].opcodes[1]={type:4,index:71},this.rules[70].opcodes[2]={type:4,index:77},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:2,children:[1,2,4]},this.rules[71].opcodes[1]={type:4,index:87},this.rules[71].opcodes[2]={type:3,min:0,max:1/0},this.rules[71].opcodes[3]={type:4,index:72},this.rules[71].opcodes[4]={type:4,index:87},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:1,children:[1,2]},this.rules[72].opcodes[1]={type:4,index:73},this.rules[72].opcodes[2]={type:2,children:[3,4]},this.rules[72].opcodes[3]={type:4,index:10},this.rules[72].opcodes[4]={type:4,index:74},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[73].opcodes[1]={type:5,min:32,max:38},this.rules[73].opcodes[2]={type:5,min:40,max:91},this.rules[73].opcodes[3]={type:5,min:93,max:55295},this.rules[73].opcodes[4]={type:5,min:57344,max:1114111},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8]},this.rules[74].opcodes[1]={type:6,string:[98]},this.rules[74].opcodes[2]={type:6,string:[102]},this.rules[74].opcodes[3]={type:6,string:[110]},this.rules[74].opcodes[4]={type:6,string:[114]},this.rules[74].opcodes[5]={type:6,string:[116]},this.rules[74].opcodes[6]={type:7,string:[39]},this.rules[74].opcodes[7]={type:7,string:[92]},this.rules[74].opcodes[8]={type:2,children:[9,10]},this.rules[74].opcodes[9]={type:6,string:[117]},this.rules[74].opcodes[10]={type:4,index:75},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:2,children:[1,2,3]},this.rules[75].opcodes[1]={type:7,string:[48]},this.rules[75].opcodes[2]={type:7,string:[48]},this.rules[75].opcodes[3]={type:1,children:[4,7,10,13]},this.rules[75].opcodes[4]={type:2,children:[5,6]},this.rules[75].opcodes[5]={type:7,string:[48]},this.rules[75].opcodes[6]={type:5,min:48,max:55},this.rules[75].opcodes[7]={type:2,children:[8,9]},this.rules[75].opcodes[8]={type:7,string:[48]},this.rules[75].opcodes[9]={type:6,string:[98]},this.rules[75].opcodes[10]={type:2,children:[11,12]},this.rules[75].opcodes[11]={type:7,string:[48]},this.rules[75].opcodes[12]={type:5,min:101,max:102},this.rules[75].opcodes[13]={type:2,children:[14,15]},this.rules[75].opcodes[14]={type:7,string:[49]},this.rules[75].opcodes[15]={type:4,index:76},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:1,children:[1,2]},this.rules[76].opcodes[1]={type:4,index:65},this.rules[76].opcodes[2]={type:5,min:97,max:102},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:7,string:[48]},this.rules[77].opcodes[2]={type:2,children:[3,4]},this.rules[77].opcodes[3]={type:4,index:21},this.rules[77].opcodes[4]={type:3,min:0,max:1/0},this.rules[77].opcodes[5]={type:4,index:65},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:7,string:[46]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:7,string:[46,46]},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:7,string:[91]},this.rules[81].opcodes=[],this.rules[81].opcodes[0]={type:7,string:[93]},this.rules[82].opcodes=[],this.rules[82].opcodes[0]={type:7,string:[40]},this.rules[83].opcodes=[],this.rules[83].opcodes[0]={type:7,string:[41]},this.rules[84].opcodes=[],this.rules[84].opcodes[0]={type:7,string:[44]},this.rules[85].opcodes=[],this.rules[85].opcodes[0]={type:7,string:[58]},this.rules[86].opcodes=[],this.rules[86].opcodes[0]={type:6,string:[34]},this.rules[87].opcodes=[],this.rules[87].opcodes[0]={type:6,string:[39]},this.rules[88].opcodes=[],this.rules[88].opcodes[0]={type:7,string:[63]},this.rules[89].opcodes=[],this.rules[89].opcodes[0]={type:7,string:[124,124]},this.rules[90].opcodes=[],this.rules[90].opcodes[0]={type:7,string:[38,38]},this.toString=function(){let e="";return e+="; JSONPath: Query Expressions for JSON\n",e+="; https://www.rfc-editor.org/rfc/rfc9535\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\n",e+="jsonpath-query = root-identifier segments\n",e+="segments = *(S segment)\n",e+="\n",e+="B = %x20 / ; Space\n",e+=" %x09 / ; Horizontal tab\n",e+=" %x0A / ; Line feed or New line\n",e+=" %x0D ; Carriage return\n",e+="S = *B ; optional blank space\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\n",e+='root-identifier = "$"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\n",e+="selector = name-selector /\n",e+=" wildcard-selector /\n",e+=" slice-selector /\n",e+=" index-selector /\n",e+=" filter-selector\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\n",e+="name-selector = string-literal\n",e+="\n",e+='string-literal = dquote *double-quoted dquote / ; "string", MODIFICATION: surrogate text rule used\n',e+=" squote *single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n",e+="\n",e+="double-quoted = unescaped /\n",e+=" %x27 / ; '\n",e+=' ESC %x22 / ; \\"\n',e+=" ESC escapable\n",e+="\n",e+="single-quoted = unescaped /\n",e+=' %x22 / ; "\n',e+=" ESC %x27 / ; \\'\n",e+=" ESC escapable\n",e+="\n",e+="ESC = %x5C ; \\ backslash\n",e+="\n",e+="unescaped = %x20-21 / ; see RFC 8259\n",e+=' ; omit 0x22 "\n',e+=" %x23-26 /\n",e+=" ; omit 0x27 '\n",e+=" %x28-5B /\n",e+=" ; omit 0x5C \\\n",e+=" %x5D-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="\n",e+="escapable = %x62 / ; b BS backspace U+0008\n",e+=" %x66 / ; f FF form feed U+000C\n",e+=" %x6E / ; n LF line feed U+000A\n",e+=" %x72 / ; r CR carriage return U+000D\n",e+=" %x74 / ; t HT horizontal tab U+0009\n",e+=' "/" / ; / slash (solidus) U+002F\n',e+=' "\\" / ; \\ backslash (reverse solidus) U+005C\n',e+=" (%x75 hexchar) ; uXXXX U+XXXX\n",e+="\n",e+="hexchar = non-surrogate /\n",e+=' (high-surrogate "\\" %x75 low-surrogate)\n',e+='non-surrogate = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /\n',e+=' ("D" %x30-37 2HEXDIG )\n',e+='high-surrogate = "D" ("8"/"9"/"A"/"B") 2HEXDIG\n',e+='low-surrogate = "D" ("C"/"D"/"E"/"F") 2HEXDIG\n',e+="\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\n",e+='wildcard-selector = "*"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\n",e+="index-selector = int ; decimal integer\n",e+="\n",e+='int = "0" /\n',e+=' (["-"] DIGIT1 *DIGIT) ; - optional\n',e+="DIGIT1 = %x31-39 ; 1-9 non-zero digit\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\n",e+="slice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="start = int ; included in selection\n",e+="end = int ; not included in selection\n",e+="step = int ; default: 1\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\n",e+="filter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="logical-expr = logical-or-expr\n",e+="logical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n",e+=" ; disjunction\n",e+=" ; binds less tightly than conjunction\n",e+="logical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n",e+=" ; conjunction\n",e+=" ; binds more tightly than disjunction\n",e+="\n",e+="basic-expr = paren-expr /\n",e+=" comparison-expr /\n",e+=" test-expr\n",e+="\n",e+="paren-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n",e+=" ; parenthesized expression\n",e+='logical-not-op = "!" ; logical NOT operator\n',e+="\n",e+="test-expr = [logical-not-op S]\n",e+=" (filter-query / ; existence/non-existence\n",e+=" function-expr) ; LogicalType or NodesType\n",e+="filter-query = rel-query / jsonpath-query\n",e+="rel-query = current-node-identifier segments\n",e+='current-node-identifier = "@"\n',e+="\n",e+="comparison-expr = comparable S comparison-op S comparable\n",e+="literal = number / string-literal /\n",e+=" true / false / null\n",e+="comparable = singular-query / ; singular query value\n",e+=" function-expr / ; ValueType\n",e+=" literal\n",e+=" ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\n",e+='comparison-op = "==" / "!=" /\n',e+=' "<=" / ">=" /\n',e+=' "<" / ">"\n',e+="\n",e+="singular-query = rel-singular-query / abs-singular-query\n",e+="rel-singular-query = current-node-identifier singular-query-segments\n",e+="abs-singular-query = root-identifier singular-query-segments\n",e+="singular-query-segments = *(S (name-segment / index-segment))\n",e+="name-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n",e+=" (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\n",e+="index-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n",e+="\n",e+='number = (int / "-0") [ frac ] [ exp ] ; decimal number\n',e+='frac = "." 1*DIGIT ; decimal fraction\n',e+='exp = "e" [ "-" / "+" ] 1*DIGIT ; decimal exponent\n',e+="true = %x74.72.75.65 ; true\n",e+="false = %x66.61.6c.73.65 ; false\n",e+="null = %x6e.75.6c.6c ; null\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\n",e+="function-name = function-name-first *function-name-char\n",e+="function-name-first = LCALPHA\n",e+='function-name-char = function-name-first / "_" / DIGIT\n',e+='LCALPHA = %x61-7A ; "a".."z"\n',e+="\n",e+="function-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n",e+=" *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\n",e+="function-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n",e+=" filter-query / ; (includes singular-query)\n",e+=" function-expr /\n",e+=" literal\n",e+="\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\n",e+="segment = child-segment / descendant-segment\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\n",e+="child-segment = bracketed-selection /\n",e+=" (dot-prefix ; MODIFICATION: surrogate text rule used\n",e+=" (wildcard-selector /\n",e+=" member-name-shorthand))\n",e+="\n",e+="bracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n",e+=" ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="member-name-shorthand = name-first *name-char\n",e+="name-first = ALPHA /\n",e+=' "_" /\n',e+=" %x80-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="name-char = name-first / DIGIT\n",e+="\n",e+="DIGIT = %x30-39 ; 0-9\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\n",e+="descendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n",e+=" wildcard-selector /\n",e+=" member-name-shorthand)\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\n",e+="normalized-path = root-identifier *(normal-index-segment)\n",e+="normal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\n",e+="normal-selector = normal-name-selector / normal-index-selector\n",e+="normal-name-selector = squote *normal-single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n",e+="normal-single-quoted = normal-unescaped /\n",e+=" ESC normal-escapable\n",e+="normal-unescaped = ; omit %x0-1F control codes\n",e+=" %x20-26 /\n",e+=" ; omit 0x27 '\n",e+=" %x28-5B /\n",e+=" ; omit 0x5C \\\n",e+=" %x5D-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="\n",e+="normal-escapable = %x62 / ; b BS backspace U+0008\n",e+=" %x66 / ; f FF form feed U+000C\n",e+=" %x6E / ; n LF line feed U+000A\n",e+=" %x72 / ; r CR carriage return U+000D\n",e+=" %x74 / ; t HT horizontal tab U+0009\n",e+=" \"'\" / ; ' apostrophe U+0027\n",e+=' "\\" / ; \\ backslash (reverse solidus) U+005C\n',e+=" (%x75 normal-hexchar)\n",e+=" ; certain values u00xx U+00XX\n",e+='normal-hexchar = "0" "0"\n',e+=" (\n",e+=' ("0" %x30-37) / ; "00"-"07"\n',e+=" ; omit U+0008-U+000A BS HT LF\n",e+=' ("0" %x62) / ; "0b"\n',e+=" ; omit U+000C-U+000D FF CR\n",e+=' ("0" %x65-66) / ; "0e"-"0f"\n',e+=' ("1" normal-HEXDIG)\n',e+=" )\n",e+='normal-HEXDIG = DIGIT / %x61-66 ; "0"-"9", "a"-"f"\n',e+='normal-index-selector = "0" / (DIGIT1 *DIGIT)\n',e+=" ; non-negative decimal integer\n",e+="\n",e+="; Surrogate named rules\n",e+='dot-prefix = "."\n',e+='double-dot-prefix = ".."\n',e+='left-bracket = "["\n',e+='right-bracket = "]"\n',e+='left-paren = "("\n',e+='right-paren = ")"\n',e+='comma = ","\n',e+='colon = ":"\n',e+='dquote = %x22 ; "\n',e+="squote = %x27 ; '\n",e+='questionmark = "?"\n',e+='disjunction = "||"\n',e+='conjunction = "&&"\n','; JSONPath: Query Expressions for JSON\n; https://www.rfc-editor.org/rfc/rfc9535\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\njsonpath-query = root-identifier segments\nsegments = *(S segment)\n\nB = %x20 / ; Space\n %x09 / ; Horizontal tab\n %x0A / ; Line feed or New line\n %x0D ; Carriage return\nS = *B ; optional blank space\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\nroot-identifier = "$"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\nselector = name-selector /\n wildcard-selector /\n slice-selector /\n index-selector /\n filter-selector\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\nname-selector = string-literal\n\nstring-literal = dquote *double-quoted dquote / ; "string", MODIFICATION: surrogate text rule used\n squote *single-quoted squote ; \'string\', MODIFICATION: surrogate text rule used\n\ndouble-quoted = unescaped /\n %x27 / ; \'\n ESC %x22 / ; \\"\n ESC escapable\n\nsingle-quoted = unescaped /\n %x22 / ; "\n ESC %x27 / ; \\\'\n ESC escapable\n\nESC = %x5C ; \\ backslash\n\nunescaped = %x20-21 / ; see RFC 8259\n ; omit 0x22 "\n %x23-26 /\n ; omit 0x27 \'\n %x28-5B /\n ; omit 0x5C \\\n %x5D-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\n\nescapable = %x62 / ; b BS backspace U+0008\n %x66 / ; f FF form feed U+000C\n %x6E / ; n LF line feed U+000A\n %x72 / ; r CR carriage return U+000D\n %x74 / ; t HT horizontal tab U+0009\n "/" / ; / slash (solidus) U+002F\n "\\" / ; \\ backslash (reverse solidus) U+005C\n (%x75 hexchar) ; uXXXX U+XXXX\n\nhexchar = non-surrogate /\n (high-surrogate "\\" %x75 low-surrogate)\nnon-surrogate = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /\n ("D" %x30-37 2HEXDIG )\nhigh-surrogate = "D" ("8"/"9"/"A"/"B") 2HEXDIG\nlow-surrogate = "D" ("C"/"D"/"E"/"F") 2HEXDIG\n\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\nwildcard-selector = "*"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\nindex-selector = int ; decimal integer\n\nint = "0" /\n (["-"] DIGIT1 *DIGIT) ; - optional\nDIGIT1 = %x31-39 ; 1-9 non-zero digit\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\nslice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n\nstart = int ; included in selection\nend = int ; not included in selection\nstep = int ; default: 1\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\nfilter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n\nlogical-expr = logical-or-expr\nlogical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n ; disjunction\n ; binds less tightly than conjunction\nlogical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n ; conjunction\n ; binds more tightly than disjunction\n\nbasic-expr = paren-expr /\n comparison-expr /\n test-expr\n\nparen-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n ; parenthesized expression\nlogical-not-op = "!" ; logical NOT operator\n\ntest-expr = [logical-not-op S]\n (filter-query / ; existence/non-existence\n function-expr) ; LogicalType or NodesType\nfilter-query = rel-query / jsonpath-query\nrel-query = current-node-identifier segments\ncurrent-node-identifier = "@"\n\ncomparison-expr = comparable S comparison-op S comparable\nliteral = number / string-literal /\n true / false / null\ncomparable = singular-query / ; singular query value\n function-expr / ; ValueType\n literal\n ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\ncomparison-op = "==" / "!=" /\n "<=" / ">=" /\n "<" / ">"\n\nsingular-query = rel-singular-query / abs-singular-query\nrel-singular-query = current-node-identifier singular-query-segments\nabs-singular-query = root-identifier singular-query-segments\nsingular-query-segments = *(S (name-segment / index-segment))\nname-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\nindex-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n\nnumber = (int / "-0") [ frac ] [ exp ] ; decimal number\nfrac = "." 1*DIGIT ; decimal fraction\nexp = "e" [ "-" / "+" ] 1*DIGIT ; decimal exponent\ntrue = %x74.72.75.65 ; true\nfalse = %x66.61.6c.73.65 ; false\nnull = %x6e.75.6c.6c ; null\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\nfunction-name = function-name-first *function-name-char\nfunction-name-first = LCALPHA\nfunction-name-char = function-name-first / "_" / DIGIT\nLCALPHA = %x61-7A ; "a".."z"\n\nfunction-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\nfunction-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n filter-query / ; (includes singular-query)\n function-expr /\n literal\n\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\nsegment = child-segment / descendant-segment\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\nchild-segment = bracketed-selection /\n (dot-prefix ; MODIFICATION: surrogate text rule used\n (wildcard-selector /\n member-name-shorthand))\n\nbracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n ; MODIFICATION: surrogate text rule used\n\nmember-name-shorthand = name-first *name-char\nname-first = ALPHA /\n "_" /\n %x80-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\nname-char = name-first / DIGIT\n\nDIGIT = %x30-39 ; 0-9\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\ndescendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n wildcard-selector /\n member-name-shorthand)\n\n; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\nnormalized-path = root-identifier *(normal-index-segment)\nnormal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\nnormal-selector = normal-name-selector / normal-index-selector\nnormal-name-selector = squote *normal-single-quoted squote ; \'string\', MODIFICATION: surrogate text rule used\nnormal-single-quoted = normal-unescaped /\n ESC normal-escapable\nnormal-unescaped = ; omit %x0-1F control codes\n %x20-26 /\n ; omit 0x27 \'\n %x28-5B /\n ; omit 0x5C \\\n %x5D-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\n\nnormal-escapable = %x62 / ; b BS backspace U+0008\n %x66 / ; f FF form feed U+000C\n %x6E / ; n LF line feed U+000A\n %x72 / ; r CR carriage return U+000D\n %x74 / ; t HT horizontal tab U+0009\n "\'" / ; \' apostrophe U+0027\n "\\" / ; \\ backslash (reverse solidus) U+005C\n (%x75 normal-hexchar)\n ; certain values u00xx U+00XX\nnormal-hexchar = "0" "0"\n (\n ("0" %x30-37) / ; "00"-"07"\n ; omit U+0008-U+000A BS HT LF\n ("0" %x62) / ; "0b"\n ; omit U+000C-U+000D FF CR\n ("0" %x65-66) / ; "0e"-"0f"\n ("1" normal-HEXDIG)\n )\nnormal-HEXDIG = DIGIT / %x61-66 ; "0"-"9", "a"-"f"\nnormal-index-selector = "0" / (DIGIT1 *DIGIT)\n ; non-negative decimal integer\n\n; Surrogate named rules\ndot-prefix = "."\ndouble-dot-prefix = ".."\nleft-bracket = "["\nright-bracket = "]"\nleft-paren = "("\nright-paren = ")"\ncomma = ","\ncolon = ":"\ndquote = %x22 ; "\nsquote = %x27 ; \'\nquestionmark = "?"\ndisjunction = "||"\nconjunction = "&&"\n'}};const $n=class extends Tn{},Dn=e=>{if(!Array.isArray(e))throw new $n("Selectors must be an array, got: "+typeof e,{selectors:e});try{return`$${e.map(e=>{if("string"==typeof e)return`['${(e=>{if("string"!=typeof e)throw new TypeError("Selector must be a string");let t="";for(const s of e){const e=s.codePointAt(0);switch(e){case 8:t+="\\b";break;case 9:t+="\\t";break;case 10:t+="\\n";break;case 12:t+="\\f";break;case 13:t+="\\r";break;case 39:t+="\\'";break;case 92:t+="\\\\";break;default:t+=e<=31?`\\u${e.toString(16).padStart(4,"0")}`:s}}return t})(e)}']`;if("number"==typeof e){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Index selector must be a non-negative safe integer, got: ${e}`);return`[${e}]`}throw new TypeError("Selector must be a string or non-negative integer, got: "+typeof e)}).join("")}`}catch(t){throw new $n("Failed to compile normalized JSONPath",{cause:t,selectors:e})}},Rn=(e,t,s,n)=>{const{realm:r}=e,{value:i}=s;if(r.isObject(t)&&r.hasProperty(t,i)){n(r.getProperty(t,i),i)}},Nn=(e,t,s,n)=>{const{realm:r}=e,{value:i}=s;if(!r.isArray(t))return;const o=r.getLength(t),c=((e,t)=>e>=0?e:t+e)(i,o);if(c>=0&&c<o){n(r.getElement(t,c),c)}},qn=(e,t,s,n)=>{const{realm:r}=e;for(const[e,s]of r.entries(t))n(s,e)},Bn=(e,t)=>e>=0?Math.min(e,t):Math.max(t+e,0),_n=(e,t,s,n)=>{const{realm:r}=e,{start:i,end:o,step:c}=s;if(!r.isArray(t))return;const a=((e,t,s,n)=>{const r=s??1;if(0===r)return null;let i,o;if(r>0){const s=0,r=n,c=null!==e?Bn(e,n):s,a=null!==t?Bn(t,n):r;i=Math.max(c,0),o=Math.min(a,n)}else{const s=n-1,r=-n-1,c=null!==e?e>=0?Math.min(e,n-1):Math.max(n+e,-1):s,a=null!==t?t>=0?Math.min(t,n-1):Math.max(n+t,-1):r;o=Math.min(c,n-1),i=Math.max(a,-1)}return{lower:i,upper:o,step:r}})(i,o,c,r.getLength(t));if(null===a)return;const{lower:l,upper:u,step:p}=a;if(p>0)for(let e=l;e<u;e+=p){n(r.getElement(t,e),e)}else for(let e=u;e>l;e+=p){n(r.getElement(t,e),e)}},Ln=(e,t,s,n)=>n.value,Vn=(e,t,s)=>{const{realm:n}=e,{selector:r}=s;switch(r.type){case"NameSelector":{const{value:e}=r;return n.isObject(t)&&n.hasProperty(t,e)?n.getProperty(t,e):void 0}case"IndexSelector":{const{value:e}=r;if(!n.isArray(t))return;const s=n.getLength(t),i=e>=0?e:s+e;return i>=0&&i<s?n.getElement(t,i):void 0}default:return}},Un=(e,t,s,n)=>{const{selectors:r}=s;for(const s of r)tr(e,t,s,n)},Hn=(e,t,s)=>{const n=[],r=e=>{n.push(e)},{selector:i}=s;switch(i.type){case"BracketedSelection":Un(e,t,i,r);break;case"NameSelector":case"WildcardSelector":case"IndexSelector":case"SliceSelector":case"FilterSelector":tr(e,t,i,r)}return n},Gn=(e,t,s,n)=>{let r=s;for(const t of n){const s=[];if("DescendantSegment"===t.type){const n=r=>{const{realm:i}=e,o=Hn(e,r,t);s.push(...o);for(const[,e]of i.entries(r))n(e)};for(const e of r)n(e)}else for(const n of r){const r=Hn(e,n,t);s.push(...r)}r=s}return r},zn=(e,t,s,n)=>{const{query:r}=n;let i;switch(r.type){case"RelQuery":i=((e,t,s,n)=>{const{segments:r}=n;return 0===r.length?[s]:Gn(e,0,[s],r)})(e,0,s,r);break;case"JsonPathQuery":i=((e,t,s,n)=>{const{segments:r}=n;return 0===r.length?[t]:Gn(e,0,[t],r)})(e,t,0,r);break;default:i=[]}return o=i,Object.defineProperty(o,"_isNodelist",{value:!0,enumerable:!1,writable:!1}),o;var o};let Xn;const Jn=(e,t,s,n)=>{const{name:r,arguments:i}=n,o=e.functions[r];if("function"!=typeof o)return;const c=i.map(n=>((e,t,s,n)=>{switch(n.type){case"Literal":case"RelSingularQuery":case"AbsSingularQuery":case"FunctionExpr":return Kn(e,t,s,n);case"FilterQuery":return zn(e,t,s,n);case"TestExpr":return"FilterQuery"===n.expression.type?zn(e,t,s,n.expression):"FunctionExpr"===n.expression.type?Kn(e,t,s,n.expression):Xn(e,t,s,n);case"LogicalOrExpr":case"LogicalAndExpr":case"LogicalNotExpr":case"ComparisonExpr":return Xn(e,t,s,n);default:return}})(e,t,s,n));return o(e.realm,...c)},Kn=(e,t,s,n)=>{switch(n.type){case"Literal":return Ln(e,t,s,n);case"RelSingularQuery":return((e,t,s,n)=>{let r=s;for(const t of n.segments)if(r=Vn(e,r,t),void 0===r)return;return r})(e,0,s,n);case"AbsSingularQuery":return((e,t,s,n)=>{let r=t;for(const t of n.segments)if(r=Vn(e,r,t),void 0===r)return;return r})(e,t,0,n);case"FunctionExpr":return Jn(e,t,s,n);default:return}},Wn=(e,t,s,n)=>{const{left:r,op:i,right:o}=n,c=Kn(e,t,s,r),a=Kn(e,t,s,o);return e.realm.compare(c,i,a)},Yn=e=>Array.isArray(e),Qn=(e,t,s,n)=>{switch(n.type){case"LogicalOrExpr":return!!Qn(e,t,s,n.left)||Qn(e,t,s,n.right);case"LogicalAndExpr":return!!Qn(e,t,s,n.left)&&Qn(e,t,s,n.right);case"LogicalNotExpr":return!Qn(e,t,s,n.expression);case"TestExpr":{const{expression:r}=n;if("FilterQuery"===r.type){return zn(e,t,s,r).length>0}if("FunctionExpr"===r.type){const n=Jn(e,t,s,r);return"boolean"==typeof n?n:void 0!==n&&(Yn(n)?n.length>0:Boolean(n))}return!1}case"ComparisonExpr":return Wn(e,t,s,n);default:return!1}};Xn=Qn;const Zn=Qn,er=(e,t,s,n)=>{const{realm:r,root:i}=e,{expression:o}=s;for(const[s,c]of r.entries(t)){Zn(e,i,c,o)&&n(c,s)}},tr=(e,t,s,n)=>{switch(s.type){case"NameSelector":Rn(e,t,s,n);break;case"IndexSelector":Nn(e,t,s,n);break;case"WildcardSelector":qn(e,t,s,n);break;case"SliceSelector":_n(e,t,s,n);break;case"FilterSelector":er(e,t,s,n)}};new Map;class sr{node;key;index;parent;parentPath;inList;#e=!1;#t=!1;#s=!1;#n=!1;#r;#i=!1;constructor(e,t,s,n,r){this.node=e,this.parent=t,this.parentPath=s,this.key=n,this.index=r&&"number"==typeof n?n:void 0,this.inList=r}get shouldSkip(){return this.#e}get shouldStop(){return this.#t}get removed(){return this.#s}isRoot(){return null===this.parentPath}get depth(){let e=0,t=this.parentPath;for(;null!==t;)e+=1,t=t.parentPath;return e}getAncestry(){const e=[];let t=this.parentPath;for(;null!==t;)e.push(t),t=t.parentPath;return e}getAncestorNodes(){return this.getAncestry().map(e=>e.node)}getPathKeys(){const e=[];let t=this;for(;null!==t&&void 0!==t.key;){const{key:s,parent:n,parentPath:r}=t;if(he(n)&&"value"===s){if(!oe(n.key))throw new TypeError("MemberElement.key must be a StringElement");e.unshift(n.key.toValue())}else ue(r?.node)&&"number"==typeof s&&e.unshift(s);t=t.parentPath}return e}formatPath(e="jsonpointer"){const t=this.getPathKeys();return 0===t.length?"jsonpath"===e?"$":"":"jsonpath"===e?Dn(t):In(t)}findParent(e){let t=this.parentPath;for(;null!==t;){if(e(t))return t;t=t.parentPath}return null}find(e){return e(this)?this:this.findParent(e)}skip(){this.#e=!0}stop(){this.#t=!0}replaceWith(e){this.#i&&console.warn("Warning: replaceWith() called on a stale Path. This path belongs to a node whose visit has already completed. The replacement will have no effect. To replace a parent node, do so from the parent's own visitor."),this.#n=!0,this.#r=e,this.node=e}remove(){this.#i&&console.warn("Warning: remove() called on a stale Path. This path belongs to a node whose visit has already completed. The removal will have no effect. To remove a parent node, do so from the parent's own visitor."),this.#s=!0}_getReplacementNode(){return this.#r}_wasReplaced(){return this.#n}_reset(){this.#e=!1,this.#t=!1,this.#s=!1,this.#n=!1,this.#r=void 0}_markStale(){this.#i=!0}}const nr=Dt(1,Ut(vn,ot(St,T("[object Promise]")))),rr=e=>{const t=e?.element;return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},ir=e=>{const t=e.primitive();return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},or=e=>ie(e),cr=e=>Hs(e),ar=(e,t,s)=>{he(e)?e.value=s:Array.isArray(e)?e[t]=null===s?void 0:s:null===s?delete e[t]:e[t]=s},lr=e=>he(e)?["key","value"]:ue(e)||pe(e)?["content"]:[],ur=(e,t)=>{if(void 0!==e[t])return e[t];const s=t.length;for(const n in e){if(!n.includes("|"))continue;const r=n.indexOf(t);if(-1===r)continue;const i=0===r||"|"===n[r-1],o=r+s===n.length||"|"===n[r+s];if(i&&o)return e[n]}},pr=(e,t,s)=>{if(void 0===t)return null;const n=e,r=s?"leave":"enter",i=ur(n,t);if(!s&&"function"==typeof i)return i;if(null!=i){const e=i[r];if("function"==typeof e)return e}const o=n[r];if("function"==typeof o)return o;if(null!=o){const e=ur(o,t);if("function"==typeof e)return e}return null},hr=(e,t={})=>{const{visitFnGetter:s=pr,nodeTypeGetter:n=rr,exposeEdits:r=!1}=t,i=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(i);return{enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===i){const i=s(e[u],n(a),!1);if("function"==typeof i){const s=mr(t,a),n=i.call(e[u],s);if(nr(n))throw new Ds("Async visitor not supported in sync mode",{visitor:e[u],visitFn:i});if(s.shouldStop){c[u]=o;break}if(s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!r)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!r)return t.replaceWith(n),n;a=n,l=!0}}}if(l)return t.replaceWith(a),a},leave(t){const r=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===i){const i=s(e[a],n(r),!0);if("function"==typeof i){const s=mr(t,r),n=i.call(e[a],s);if(nr(n))throw new Ds("Async visitor not supported in sync mode",{visitor:e[a],visitFn:i});if(s.shouldStop){c[a]=o;break}if(s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();return t.replaceWith(e),e}if(void 0!==n)return t.replaceWith(n),n}}else c[a]===r&&(c[a]=i)}}},dr=(e,t={})=>{const{visitFnGetter:s=pr,nodeTypeGetter:n=rr,exposeEdits:r=!1}=t,i=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(i);return{async enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===i){const i=s(e[u],n(a),!1);if("function"==typeof i){const s=mr(t,a),n=await i.call(e[u],s);if(s.shouldStop){c[u]=o;break}if(s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!r)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!r)return t.replaceWith(n),n;a=n,l=!0}}}if(l)return t.replaceWith(a),a},async leave(t){const r=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===i){const i=s(e[a],n(r),!0);if("function"==typeof i){const s=mr(t,r),n=await i.call(e[a],s);if(s.shouldStop){c[a]=o;break}if(s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();return t.replaceWith(e),e}if(void 0!==n)return t.replaceWith(n),n}}else c[a]===r&&(c[a]=i)}}};function mr(e,t){return new sr(t,e.parent,e.parentPath,e.key,e.inList)}function*fr(e,t,s){const{keyMap:n,state:r,nodeTypeGetter:i,nodePredicate:o,nodeCloneFn:c,detectCycles:a,mutable:l,mutationFn:u}=s,p="function"==typeof n;let h,d,m=Array.isArray(e),f=[e],y=-1,g=[],x=e,v=null,b=null;const w=[];do{y+=1;const e=y===f.length;let s;const E=e&&0!==g.length;if(e){if(s=0===w.length?void 0:v?.key,x=d,d=w.pop(),b=v?.parentPath?.parentPath??null,E)if(l)for(const[e,t]of g)u(x,e,t);else if(m){x=x.slice();let e=0;for(const[t,s]of g){const n=t-e;null===s?(x.splice(n,1),e+=1):x[n]=s}}else{x=c(x);for(const[e,t]of g)x[e]=t}if(void 0!==h){y=h.index,f=h.keys,g=h.edits;const e=h.inArray;if(b=h.parentPath,h=h.prev,E&&!l){const t=e?y:f[y];g.push([t,x])}m=e}}else if(void 0!==d&&(s=m?y:f[y],x=d[s],void 0===x))continue;if(!Array.isArray(x)){if(!o(x))throw new Ds(`Invalid AST Node: ${String(x)}`,{node:x});if(a&&w.includes(x))continue;v=new sr(x,d,b,s,m);const n=pr(t,i(x),e);if(n){for(const[e,s]of Object.entries(r))t[e]=s;const i=yield{visitFn:n,path:v,isLeaving:e};if(v.shouldStop)break;if(v.shouldSkip&&!e)continue;if(v.removed){if(g.push([s,null]),!e)continue}else if(v._wasReplaced()){const t=v._getReplacementNode();if(g.push([s,t]),!e){if(!o(t))continue;x=t}}else if(void 0!==i&&(g.push([s,i]),!e)){if(!o(i))continue;x=i}v._markStale()}}if(!e){if(h={inArray:m,index:y,keys:f,edits:g,parentPath:b,prev:h},m=Array.isArray(x),m)f=x;else if(p)f=n(x);else{const e=i(x);f=void 0!==e?n[e]??[]:[]}y=-1,g=[],void 0!==d&&w.push(d),d=x,b=v}}while(void 0!==h);return 0!==g.length?g.at(-1)[1]:e}hr[Symbol.for("nodejs.util.promisify.custom")]=dr;const yr=(e,t,s={})=>{const n=fr(e,t,{keyMap:s.keyMap??lr,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??rr,nodePredicate:s.nodePredicate??or,nodeCloneFn:s.nodeCloneFn??cr,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??ar});let r=n.next();for(;!r.done;){const e=r.value,s=e.visitFn.call(t,e.path);if(nr(s))throw new Ds("Async visitor not supported in sync mode",{visitor:t,visitFn:e.visitFn});r=n.next(s)}return r.value},gr=async(e,t,s={})=>{const n=fr(e,t,{keyMap:s.keyMap??lr,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??rr,nodePredicate:s.nodePredicate??or,nodeCloneFn:s.nodeCloneFn??cr,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??ar});let r=n.next();for(;!r.done;){const e=r.value,s=await e.visitFn.call(t,e.path);r=n.next(s)}return r.value};yr[Symbol.for("nodejs.util.promisify.custom")]=gr,sr.prototype.traverse=function(e,t){return yr(this.node,e,t)},sr.prototype.traverseAsync=function(e,t){return gr(this.node,e,t)};const xr=class extends cn{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return En(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Le(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return jt(ts,["visitors",...e],this.specObj)?Le(["visitors",...e],this.specObj):Le(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof an&&n?.constructor===an?Ls(t):(yr(t,n,s),n.element)}};const vr=class extends xr{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=e.node,s=this.specPath(t),n=this.retrieveFixedFields(s);t.forEach((e,t,r)=>{const i=Qs(t);if(oe(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new L(Ls(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(i)||this.element.content.push(Ls(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}},br=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},wr=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:wr(s,[...t,s])},Er=(e,t,s=[])=>{var n;const r=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>wr(e));for(;s.every(e=>e.length>0);){const e=s.map(e=>e.pop()),n=e[0];if(!e.every(e=>e===n))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(r),o=wr(r);for(let t of e){let e=wr(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(br(i,n,["constructor",...s]),o.push(n))}}return i.constructor=t,i},Or=e=>e.filter((t,s)=>e.indexOf(t)==s),Sr=(e,t)=>{const s=t.map(e=>wr(e));let n=0,r=!0;for(;r;){r=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][n];if(null!=t&&(r=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}n++}},jr=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(Sr(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==Sr(n,e)||void 0!==t[n],get:(s,n)=>(Sr(n,e)||t)[n],set(t,s,n){const r=Sr(s,e);if(void 0===r)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return r[s]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))}),kr=null,Ar="copy",Pr="copy",Fr="deep",Cr=new WeakMap,Ir=e=>Cr.get(e),Mr=(e,t)=>{var s,n;const r=Or([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of r)i[o]=Or([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},Tr=(e,t)=>{var s,n,r,i;return{property:Mr(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:Mr(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},$r=(e,t)=>{var s,n,r,i,o,c;return{class:Or([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:Tr(null!==(r=null==e?void 0:e.static)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:Tr(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Dr=new Map,Rr=(...e)=>{const t=((...e)=>{var t;const s=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const r=[...wr(e.prototype).map(e=>e.constructor),...null!==(t=Ir(e))&&void 0!==t?t:[]].filter(e=>!s.has(e));for(let e of r)n.add(e);s.add(e),n.delete(e)}return[...s]})(...e).map(e=>Dr.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>$r(e,t))},Nr=e=>{let t=Dr.get(e);return t||(t={},Dr.set(e,t)),t};function qr(...e){var t,s,n;const r=e.map(e=>e.prototype),i=kr;if(null!==i){const e=r.map(e=>e[i]).filter(e=>"function"==typeof e),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};r.push(s)}function o(...t){for(const s of e)br(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===Pr?Er(r,o):(c=r,a=o,jr([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===Ar?Er(e,null,["prototype"]):jr(e,Function.prototype));let l=o;if("none"!==Fr){const r="deep"===Fr?Rr(...e):((...e)=>{const t=e.map(e=>Nr(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>$r(e,t))})(...e);for(let e of null!==(t=null==r?void 0:r.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Br(null!==(s=null==r?void 0:r.static)&&void 0!==s?s:{},l),Br(null!==(n=null==r?void 0:r.instance)&&void 0!==n?n:{},l.prototype)}var u,p;return u=l,p=e,Cr.set(u,p),l}const Br=(e,t)=>{const s=e.property,n=e.method;if(s)for(let e in s)for(let n of s[e])n(t,e);if(n)for(let e in n)for(let s of n[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const _r=function(){return!1};const Lr=class extends xr{specPath;ignoredFields;fieldPatternPredicate=_r;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=Qs(t);if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new L(Ls(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(n)||this.element.content.push(Ls(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Vr=class extends Lr{constructor(e){super(e),this.fieldPatternPredicate=wn}};const Ur=class{parent;constructor({parent:e}){this.parent=e}},Hr=qr(vr,Ur,an),Gr=qr(vr,an),zr=qr(vr,an),Xr=qr(vr,an),Jr=qr(xr,Ur,an),Kr=qr(xr,Ur,an),Wr=qr(xr,Ur,an),Yr=qr(xr,Ur,an),Qr=qr(xr,Ur,an),Zr=qr(Vr,Ur,an),ei=qr(Vr,Ur,an),ti=qr(Vr,Ur,an),si=qr(Vr,Ur,an);const ni=class extends Hr{constructor(e){super(e),this.element=new bs,this.specPath=ln(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){const t=e.node;return this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,vr.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(hn(this.parent)&&!oe(e.get("$schema")))this.element.meta.set("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(this.parent instanceof bs&&!oe(e.get("$schema"))){const e=un(Qs(this.parent.meta.get("inheritedDialectIdentifier")),Qs(this.parent.$schema));this.element.meta.set("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?Ls(this.parent.meta.get("ancestorsSchemaIdentifiers")??new re):new re,n=Qs(e.get(t));wn(n)&&s.push(n),this.element.meta.set("ancestorsSchemaIdentifiers",s)}},ri=e=>pe(e)&&e.hasKey("$ref");const ii=class extends Yr{ObjectElement(e){const t=e.node,s=ri(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];this.element=this.toRefractedElement(s,t),e.stop()}ArrayElement(e){const t=e.node;this.element=new re,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const oi=class extends an{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-required")}};const ci=class extends si{constructor(e){super(e),this.element=new V,this.element.classes.push("json-schema-properties"),this.specPath=e=>ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const ai=class extends ti{constructor(e){super(e),this.element=new V,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const li=class extends ei{constructor(e){super(e),this.element=new V,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const ui=class extends an{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-enum")}};const pi=class extends an{StringElement(e){super.enter(e),this.element.classes.push("json-schema-type")}ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-type")}};const hi=class extends Jr{constructor(e){super(e),this.element=new re,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const di=class extends Kr{constructor(e){super(e),this.element=new re,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const mi=class extends Wr{constructor(e){super(e),this.element=new re,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const fi=class extends Zr{constructor(e){super(e),this.element=new V,this.element.classes.push("json-schema-definitions"),this.specPath=e=>ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const yi=class extends Qr{constructor(e){super(e),this.element=new re,this.element.classes.push("json-schema-links")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const gi=class extends Gr{constructor(e){super(e),this.element=new ws,this.specPath=ln(["document","objects","JSONReference"])}ObjectElement(e){vr.prototype.ObjectElement.call(this,e),oe(this.element.$ref)&&this.element.classes.push("reference-element")}};const xi=class extends an{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const vi=function(){return!0};const bi=Re(function(e,t,s){return Dt(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const wi=i(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var Ei=g(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const Oi=Ei;const Si=i(function(e){return o(0,e)});function ji(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const ki=i(ji);const Ai=Gt(Ie);const Pi=Dt(1,ts(Array.isArray)?Array.isArray:ot(C,at("Array")));const Fi=Ut(Pi,gn);function Ci(e){return function(e){if(Array.isArray(e))return Ii(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ii(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Ii(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,n=Array(t);s<t;s++)n[s]=e[s];return n}var Mi=ot(Oi(wi(function(e,t){return e.length>t.length})),Si,qe("length")),Ti=as(function(e,t,s){var n=s.apply(void 0,Ci(e));return Ai(n)?ki(n):t});const $i=bi(Fi,function(e){var t=Mi(e);return Dt(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return st(Ti(s),void 0,e)})},pn);const Di=class extends xr{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>bi(e,ln(t),pn)),n=$i(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const Ri=class extends Di{constructor(e){super(e),this.alternator=[{predicate:ri,specPath:["document","objects","JSONReference"]},{predicate:vi,specPath:["document","objects","JSONSchema"]}]}};const Ni=class extends Xr{constructor(e){super(e),this.element=new Es,this.specPath=ln(["document","objects","Media"])}};const qi={visitors:{value:an,JSONSchemaOrJSONReferenceVisitor:Ri,document:{objects:{JSONSchema:{element:"jSONSchemaDraft4",$visitor:ni,fixedFields:{id:{$ref:"#/visitors/value",alias:"idField"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Ri,items:{$visitor:ii,alias:"itemsField"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:oi,properties:ci,additionalProperties:Ri,patternProperties:ai,dependencies:li,enum:ui,type:pi,allOf:hi,anyOf:di,oneOf:mi,not:Ri,definitions:fi,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:{$visitor:yi,alias:"linksField"},media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{element:"jSONReference",$visitor:gi,fixedFields:{$ref:xi}},Media:{element:"media",$visitor:Ni,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{element:"linkDescription",$visitor:class extends zr{constructor(e){super(e),this.element=new Os,this.specPath=ln(["document","objects","LinkDescription"])}},fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ri,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ri}}}}}},Bi=vs(qi),_i=e=>Object.entries(e).map(([e,t])=>is(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(bs,"fixedFields",{get:()=>_i(Bi.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(ws,"fixedFields",{get:()=>_i(Bi.visitors.document.objects.JSONReference.fixedFields),enumerable:!0}),Object.defineProperty(Es,"fixedFields",{get:()=>_i(Bi.visitors.document.objects.Media.fixedFields),enumerable:!0}),Object.defineProperty(Os,"fixedFields",{get:()=>_i(Bi.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const Li=class extends bs{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idField(){throw new h("idField getter in Schema class is not not supported.")}set idField(e){throw new h("idField setter in Schema class is not not supported.")}get $schema(){throw new h("$schema getter in Schema class is not not supported.")}set $schema(e){throw new h("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new h("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new h("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new h("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new h("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new h("definitions getter in Schema class is not not supported.")}set definitions(e){throw new h("definitions setter in Schema class is not not supported.")}get base(){throw new h("base getter in Schema class is not not supported.")}set base(e){throw new h("base setter in Schema class is not not supported.")}get linksField(){throw new h("linksField getter in Schema class is not not supported.")}set linksField(e){throw new h("linksField setter in Schema class is not not supported.")}get media(){throw new h("media getter in Schema class is not not supported.")}set media(e){throw new h("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};const Vi=class extends V{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}};const Ui=class extends V{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}};const Hi=class extends V{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}};const Gi=class extends V{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}};const zi=class extends V{constructor(e,t,s){super(e,t,s),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}};const Xi=class extends V{constructor(e,t,s){super(e,t,s),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}},Ji={namespace:e=>{const{base:t}=e;return t.register("callback",U),t.register("components",H),t.register("contact",G),t.register("discriminator",z),t.register("encoding",X),t.register("example",J),t.register("externalDocumentation",K),t.register("header",Q),t.register("info",Z),t.register("license",ee),t.register("link",de),t.register("mediaType",me),t.register("oAuthFlow",fe),t.register("oAuthFlows",ye),t.register("openapi",ge),t.register("openApi3_0",xe),t.register("operation",ve),t.register("parameter",we),t.register("pathItem",Ee),t.register("paths",Oe),t.register("reference",Se),t.register("requestBody",je),t.register("response",ke),t.register("responses",Ae),t.register("schema",Li),t.register("securityRequirement",Vi),t.register("securityScheme",Ui),t.register("server",Hi),t.register("serverVariable",Gi),t.register("tag",zi),t.register("xml",Xi),t}};class Ki extends re{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Ki.primaryClass)}}const Wi=Ki;class Yi extends re{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Yi.primaryClass)}}const Qi=Yi;class Zi extends re{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(Zi.primaryClass)}}const eo=Zi;class to extends V{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(to.primaryClass)}}const so=to;class no extends V{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(no.primaryClass)}}const ro=no;class io extends V{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(io.primaryClass)}}const oo=io;class co extends V{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(co.primaryClass),this.classes.push("parameters")}}const ao=co;class lo extends V{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(lo.primaryClass),this.classes.push("examples")}}const uo=lo;class po extends V{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(po.primaryClass)}}const ho=po;class mo extends V{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(mo.primaryClass)}}const fo=mo;class yo extends V{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(yo.primaryClass)}}const go=yo;class xo extends V{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(xo.primaryClass)}}const vo=xo;class bo extends V{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(bo.primaryClass)}}const wo=bo;class Eo extends re{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Eo.primaryClass),this.classes.push("servers")}}const Oo=Eo;class So extends re{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(So.primaryClass),this.classes.push("parameters")}}const jo=So;class ko extends re{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(ko.primaryClass),this.classes.push("parameters")}}const Ao=ko;class Po extends V{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Po.primaryClass),this.classes.push("examples")}}const Fo=Po;class Co extends V{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Co.primaryClass),this.classes.push("content")}}const Io=Co;class Mo extends re{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Mo.primaryClass)}}const To=Mo;class $o extends V{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push($o.primaryClass)}}const Do=$o;class Ro extends re{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Ro.primaryClass),this.classes.push("security")}}const No=Ro;class qo extends re{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(qo.primaryClass),this.classes.push("servers")}}const Bo=qo;class _o extends V{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(_o.primaryClass),this.classes.push("content")}}const Lo=_o;class Vo extends V{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Vo.primaryClass),this.classes.push("examples")}}const Uo=Vo;class Ho extends V{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Ho.primaryClass)}}const Go=Ho;class zo extends V{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(zo.primaryClass)}}const Xo=zo;class Jo extends V{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Jo.primaryClass)}}const Ko=Jo;class Wo extends V{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(Wo.primaryClass),this.classes.push("content")}}const Yo=Wo;class Qo extends V{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(Qo.primaryClass)}}const Zo=Qo;class ec extends V{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(ec.primaryClass)}}const tc=ec;class sc extends V{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(sc.primaryClass)}}const nc=sc;class rc extends V{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(rc.primaryClass)}}const ic=rc;class oc extends V{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(oc.primaryClass),this.classes.push("examples")}}const cc=oc;class ac extends V{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(ac.primaryClass),this.classes.push("content")}}const lc=ac,uc={OpenApi3_0Element:{info:(...e)=>new Z(...e),servers:(...e)=>new Wi(...e),paths:(...e)=>new Oe(...e),components:(...e)=>new H(...e),security:(...e)=>new Qi(...e),tags:(...e)=>new eo(...e),externalDocs:(...e)=>new K(...e)},InfoElement:{contact:(...e)=>new G(...e),license:(...e)=>new ee(...e)},ServerElement:{variables:(...e)=>new so(...e)},ServerVariableElement:{enum:(...e)=>new re(...e)},PathsElement:{"[key: *]":function(...e){return new Ee(...e)}},PathItemElement:{get:(...e)=>new ve(...e),put:(...e)=>new ve(...e),post:(...e)=>new ve(...e),delete:(...e)=>new ve(...e),options:(...e)=>new ve(...e),head:(...e)=>new ve(...e),patch:(...e)=>new ve(...e),trace:(...e)=>new ve(...e),servers:(...e)=>new Oo(...e),parameters:(...e)=>new jo(...e)},OperationElement:{tags:(...e)=>new To(...e),externalDocs:(...e)=>new K(...e),parameters:(...e)=>new Ao(...e),requestBody:(...e)=>new je(...e),responses:(...e)=>new Ae(...e),callbacks:(...e)=>new Do(...e),security:(...e)=>new No(...e),servers:(...e)=>new Bo(...e)},ParameterElement:{schema:(...e)=>new Li(...e),examples:(...e)=>new Fo(...e),content:(...e)=>new Io(...e)},RequestBodyElement:{content:(...e)=>new Lo(...e)},MediaTypeElement:{schema:(...e)=>new Li(...e),examples:(...e)=>new Uo(...e),encoding:(...e)=>new Go(...e)},EncodingElement:{headers:(...e)=>new Xo(...e)},ResponsesElement:{"[key: *]":function(...e){return new ke(...e)}},ResponseElement:{headers:(...e)=>new Ko(...e),content:(...e)=>new Yo(...e),links:(...e)=>new Zo(...e)},CallbackElement:{"[key: *]":function(...e){return new Ee(...e)}},LinkElement:{parameters:(...e)=>new ic(...e),server:(...e)=>new Hi(...e)},HeaderElement:{schema:(...e)=>new Li(...e),examples:(...e)=>new cc(...e),content:(...e)=>new lc(...e)},ComponentsElement:{schemas:(...e)=>new ro(...e),responses:(...e)=>new oo(...e),parameters:(...e)=>new ao(...e),examples:(...e)=>new uo(...e),requestBodies:(...e)=>new ho(...e),headers:(...e)=>new fo(...e),securitySchemes:(...e)=>new go(...e),links:(...e)=>new vo(...e),callbacks:(...e)=>new wo(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new re(...e)}},TagElement:{externalDocs:(...e)=>new K(...e)},SchemaElement:{definitions(...e){const t=new V(...e);return t.classes.push("json-schema-definitions"),t},allOf(...e){const t=new re(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new re(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new re(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new Li(...e),items:(...e)=>new Li(...e),properties(...e){const t=new V(...e);return t.classes.push("json-schema-properties"),t},patternProperties(...e){const t=new V(...e);return t.classes.push("json-schema-patternProperties"),t},additionalProperties:(...e)=>new Li(...e),enum(...e){const t=new re(...e);return t.classes.push("json-schema-enum"),t},required(...e){const t=new re(...e);return t.classes.push("json-schema-required"),t},discriminator:(...e)=>new z(...e),xml:(...e)=>new Xi(...e),externalDocs:(...e)=>new K(...e)},DiscriminatorElement:{mapping:(...e)=>new tc(...e)},SecuritySchemeElement:{flows:(...e)=>new ye(...e)},OAuthFlowsElement:{implicit:(...e)=>new fe(...e),password:(...e)=>new fe(...e),clientCredentials:(...e)=>new fe(...e),authorizationCode:(...e)=>new fe(...e)},OAuthFlowElement:{scopes:(...e)=>new nc(...e)},[so.primaryClass]:{"[key: *]":function(...e){return new Gi(...e)}},[ro.primaryClass]:{"[key: *]":function(...e){return new Li(...e)}},[oo.primaryClass]:{"[key: *]":function(...e){return new ke(...e)}},[ao.primaryClass]:{"[key: *]":function(...e){return new we(...e)}},[uo.primaryClass]:{"[key: *]":function(...e){return new J(...e)}},[ho.primaryClass]:{"[key: *]":function(...e){return new je(...e)}},[fo.primaryClass]:{"[key: *]":function(...e){return new Q(...e)}},[go.primaryClass]:{"[key: *]":function(...e){return new Ui(...e)}},[vo.primaryClass]:{"[key: *]":function(...e){return new de(...e)}},[wo.primaryClass]:{"[key: *]":function(...e){return new U(...e)}},[Do.primaryClass]:{"[key: *]":function(...e){return new U(...e)}},[Fo.primaryClass]:{"[key: *]":function(...e){return new J(...e)}},[Io.primaryClass]:{"[key: *]":function(...e){return new me(...e)}},[Lo.primaryClass]:{"[key: *]":function(...e){return new me(...e)}},[Uo.primaryClass]:{"[key: *]":function(...e){return new J(...e)}},[Go.primaryClass]:{"[key: *]":function(...e){return new X(...e)}},[Xo.primaryClass]:{"[key: *]":function(...e){return new Q(...e)}},[Ko.primaryClass]:{"[key: *]":function(...e){return new Q(...e)}},[Yo.primaryClass]:{"[key: *]":function(...e){return new me(...e)}},[Zo.primaryClass]:{"[key: *]":function(...e){return new de(...e)}},"json-schema-$defs":{"[key: *]":function(...e){return new Li(...e)}},"json-schema-dependentSchemas":{"[key: *]":function(...e){return new Li(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new Li(...e)}},[Wi.primaryClass]:{"<*>":function(...e){return new Hi(...e)}},[Qi.primaryClass]:{"<*>":function(...e){return new Vi(...e)}},[eo.primaryClass]:{"<*>":function(...e){return new zi(...e)}},[Oo.primaryClass]:{"<*>":function(...e){return new Hi(...e)}},[jo.primaryClass]:{"<*>":function(...e){return new we(...e)}},[Ao.primaryClass]:{"<*>":function(...e){return new we(...e)}},[No.primaryClass]:{"<*>":function(...e){return new Vi(...e)}},[Bo.primaryClass]:{"<*>":function(...e){return new Hi(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Li(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new Li(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new Li(...e)}},"json-schema-prefixItems":{"<*>":function(...e){return new Li(...e)}}},pc=(e,t)=>{const s=rr(e),n=uc[s]||uc[Qs(e.classes.first)];return void 0===n?void 0:Object.hasOwn(n,"[key: *]")?n["[key: *]"]:n[t]},hc=()=>()=>({visitor:{StringElement(e){const t=e.node;if(!(e=>oe(e)&&Fs(e,["yaml-e-node","yaml-e-scalar"]))(t))return;const s=e.getAncestorNodes().reverse(),n=s.at(-1);let r,i;if(ue(n)?(i=t,r=pc(n,"<*>")):he(n)&&(i=s.at(-2),r=pc(i,Qs(n.key))),"function"!=typeof r)return;const o=r.call({context:i},void 0,Ls(t.meta),Ls(t.attributes));$s.transfer(t,o),on.transfer(t,o),e.replaceWith(o)}}});var dc=Re(function(e,t,s){var n,r={};for(n in s=s||{},t=t||{})b(n,t)&&(r[n]=b(n,s)?e(n,t[n],s[n]):t[n]);for(n in s)b(n,s)&&!b(n,r)&&(r[n]=s[n]);return r});const mc=dc;var fc=Re(function e(t,s,n){return mc(function(s,n,r){return ft(n)&&ft(r)?e(t,n,r):t(s,n,r)},s,n)});const yc=fc;const gc=g(function(e,t){return yc(function(e,t,s){return s},e,t)});const xc=Re(function(e,t,s){return un(e,qe(t,s))});const vc=rt(0,-1);var bc=g(function(e,t){return e.apply(this,t)});const wc=bc;const Ec=Gt(ts);const Oc=Ut(Pi,yn);const Sc=Dt(3,function(e,t,s){var n=Le(e,s),r=Le(vc(e),s);if(!Ec(n)&&!Oc(e)){var i=Ye(n,r);return wc(i,t)}});const jc=class{namespace;constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};if(e.isMetaEmpty||(t.meta=this.serialiseObject(e.meta)),e.isAttributesEmpty||(t.attributes=this.serialiseObject(e.attributes)),!(e instanceof $s)){const s=$s.from(e);s&&(t.meta||(t.meta={}),t.meta.__mappings__=this.serialise(s))}if(!(e instanceof on)){const s=on.from(e);s&&(t.meta||(t.meta={}),t.meta.__styles__=this.serialise(s))}const s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));let s,n;t.element!==e.element&&(t.element=e.element);let r=e.meta;if(e.meta?.__mappings__||e.meta?.__styles__){const{__mappings__:t,__styles__:i,...o}=e.meta;s=t,n=i,r=Object.keys(o).length>0?o:void 0}if(r&&this.deserialiseObject(r,t.meta),s){this.deserialise(s).applyTo(t)}if(n){this.deserialise(n).applyTo(t)}e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const i=this.deserialiseContent(e.content);return void 0===i&&null!==t.content||(t.content=i),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t=e,s={key:this.serialise(t.key)};return t.value&&(s.value=this.serialise(t.value)),s}if(e&&Array.isArray(e)){if(0===e.length)return;return e.map(e=>this.serialise(e))}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(Array.isArray(e))return e.map(e=>this.deserialise(e))}return e}serialiseObject(e){const t={};if(e.forEach((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))}),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach(s=>{t.set(s,this.deserialise(e[s]))})}},kc=e=>null===e,Ac=e=>"string"==typeof e,Pc=e=>"number"==typeof e,Fc=e=>"boolean"==typeof e,Cc=e=>null!==e&&"object"==typeof e;class Ic{elementMap={};elementDetection=[];Element;KeyValuePair;_elements;_attributeElementKeys=[];_attributeElementArrayKeys=[];constructor(e){this.Element=q,this.KeyValuePair=$,e&&e.noDefault||this.useDefault()}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",ne).register("string",te).register("number",se).register("boolean",W).register("array",re).register("object",V).register("member",L).register("ref",zs).register("link",Gs).register("sourceMap",$s),this.detect(kc,ne,!1).detect(Ac,te,!1).detect(Pc,se,!1).detect(Fc,W,!1).detect(Array.isArray,re,!1).detect(Cc,V,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(const[s,n]of this.elementDetection)if(s(e)){t=new n(e);break}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(e=>{const t=e[0].toUpperCase()+e.substring(1);this._elements[t]=this.elementMap[e]})),this._elements}get serialiser(){return new jc(this)}}jc.prototype.Namespace=Ic;const Mc=Ic,Tc=new Mc,$c={isElement:ie,isStringElement:oe,isNumberElement:ce,isNullElement:ae,isBooleanElement:le,isArrayElement:ue,isObjectElement:pe,isMemberElement:he,isPrimitiveElement:e=>pe(e)&&"object"===e.element||ue(e)&&"array"===e.element||le(e)&&"boolean"===e.element||ce(e)&&"number"===e.element||oe(e)&&"string"===e.element||ae(e)&&"null"===e.element||he(e)&&"member"===e.element,isLinkElement:Ws,isRefElement:Ys,isAnnotationElement:e=>e instanceof Xs,isCommentElement:e=>e instanceof Js,isParseResultElement:e=>e instanceof Ks,isSourceMapElement:e=>e instanceof $s,hasElementStyle:As,hasElementSourceMap:Ps,includesSymbols:(e,t)=>{if(0===t.length)return!0;if(!e.hasAttributesProperty("symbols"))return!1;const s=e.attributes.get("symbols");return!!ue(s)&&t.every(e=>s.includes(e))},includesClasses:Fs},Dc={toolboxCreator:()=>({predicates:$c,namespace:Tc}),visitorOptions:{exposeEdits:!0}},Rc=(e,t,s={})=>{if(0===t.length)return e;const n=gc(Dc,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=hr(c.map(xc({},"visitor")),i);c.forEach(Sc(["pre"],[]));const l=yr(e,a);return c.forEach(Sc(["post"],[])),l};function Nc(e){return void 0===e?new ne:qc(e)}function qc(e){if(e instanceof q)return e;if("string"==typeof e)return new te(e);if("number"==typeof e)return new se(e);if("boolean"==typeof e)return new W(e);if(null===e)return new ne;if(Array.isArray(e))return new re(e.map(Nc));if("object"==typeof e)return new V(e);throw new Error("Cannot refract value of type "+typeof e)}Rc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=gc(Dc,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=dr(c.map(xc({},"visitor")),i);await Promise.allSettled(c.map(Sc(["pre"],[])));const l=await gr(e,a);return await Promise.allSettled(c.map(Sc(["post"],[]))),l},q.prototype.ObjectElement=V,q.prototype.ArrayElement=re,q.prototype.RefElement=zs,q.prototype.MemberElement=L,q.prototype.refract=qc;const Bc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){if(!e.isMetaEmpty||!t.isMetaEmpty){const s=t.isMetaEmpty?new V:t.meta,n=e.isMetaEmpty?new V:e.meta;t.meta=nn(s,n)}if(!e.isAttributesEmpty||!t.isAttributesEmpty){const s=t.isAttributesEmpty?new V:t.attributes,n=e.isAttributesEmpty?new V:e.attributes;t.attributes=nn(s,n)}$s.transfer(e,t),on.transfer(e,t)}};const _c=class extends Bc{enter(e){this.element=Ls(e.node),e.stop()}};const Lc=class extends Bc{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:n,...r}){super({...r}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=n,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return En(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Le(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return jt(ts,["visitors",...e],this.specObj)?Le(["visitors",...e],this.specObj):Le(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof _c&&n?.constructor===_c?Ls(t):(yr(t,n,{nodeTypeGetter:ir}),n.element)}};var Vc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=yt,e.prototype["@@transducer/result"]=gt,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?ji(s):s},e}();function Uc(e){return function(t){return new Vc(e,t)}}const Hc=g(mt(["take"],Uc,function(e,t){return rt(0,e<0?1/0:e,t)}));const Gc=g(function(e,t){return T(Hc(e.length,t),e)}),zc=e=>pe(e)&&e.hasKey("$ref"),Xc=pe,Jc=pe,Kc=e=>oe(e.key)&&Gc("x-",Qs(e.key));const Wc=class extends Lc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Kc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=e.node,s=this.specPath(t),n=this.retrieveFixedFields(s);t.forEach((e,t,r)=>{const i=Qs(t);if(oe(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new L(Ls(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("fixed-field"),this.element.content.push(o)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else this.ignoredFields.includes(i)||this.element.content.push(Ls(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Yc=class extends Lc{specPath;ignoredFields;fieldPatternPredicate=_r;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Kc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=Qs(t);if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new L(Ls(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(n)||this.element.content.push(Ls(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Qc=class extends Yc{constructor(e){super(e),this.fieldPatternPredicate=wn}};const Zc=class extends Lc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>bi(e,ln(t),pn)),n=$i(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};function ea(e,t,s){var n,r=typeof e;switch(r){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?e in s._items[r]||(t&&(s._items[r][e]=!0),!1):(t&&(s._items[r]={},s._items[r][e]=!0),!1);case"boolean":if(r in s._items){var i=e?1:0;return!!s._items[r][i]||(t&&(s._items[r][i]=!0),!1)}return t&&(s._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?!!lt(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1);case"undefined":return!!s._items[r]||(t&&(s._items[r]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(r=Object.prototype.toString.call(e))in s._items?!!lt(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1)}}const ta=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!ea(e,!0,this)},e.prototype.has=function(e){return ea(e,!1,this)},e}();const sa=g(function(e,t){for(var s=[],n=0,r=e.length,i=t.length,o=new ta,c=0;c<i;c+=1)o.add(t[c]);for(;n<r;)o.add(e[n])&&(s[s.length]=e[n]),n+=1;return s}),na=qr(Wc,Yc);const ra=class extends na{specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const t=e.node,{specPath:s,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const s=this.retrieveFixedFields(this.specPath(t));this.ignoredFields=[...n,...sa(t.keys(),s)],Wc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,Yc.prototype.ObjectElement.call(this,e);const r=t.keys();this.element.content.sort((e,t)=>r.indexOf(Qs(e.key))-r.indexOf(Qs(t.key)))}catch(e){throw this.specPath=s,e}e.stop()}},ia=qr(Lc,_c),oa=qr(Wc,_c),ca=qr(Yc,_c),aa=qr(Qc,_c),la=qr(Zc,_c),ua=qr(ra,_c);const pa=class extends oa{constructor(e){super(e),this.element=new xe,this.specPath=ln(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){oa.prototype.ObjectElement.call(this,e)}};const ha=class extends ia{StringElement(e){const t=e.node,s=new ge(Qs(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const da=class extends Lc{MemberElement(e){this.element=Ls(e.node),this.element.classes.push("specification-extension"),e.stop()}};const ma=class extends oa{constructor(e){super(e),this.element=new Z,this.specPath=ln(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};const fa=class extends _c{StringElement(e){super.enter(e),this.element.classes.push("api-version"),this.element.classes.push("version")}};const ya=class extends oa{constructor(e){super(e),this.element=new G,this.specPath=ln(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}};const ga=class extends oa{constructor(e){super(e),this.element=new ee,this.specPath=ln(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}};const xa=class extends oa{constructor(e){super(e),this.element=new de,this.specPath=ln(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){oa.prototype.ObjectElement.call(this,e),(oe(this.element.operationId)||oe(this.element.operationRef))&&this.element.classes.push("reference-element")}};const va=class extends _c{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const ba=class extends _c{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const wa=class extends aa{constructor(e){super(e),this.element=new ic,this.specPath=ln(["value"])}};const Ea=class extends oa{constructor(e){super(e),this.element=new Hi,this.specPath=ln(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};const Oa=class extends _c{StringElement(e){super.enter(e),this.element.classes.push("server-url")}};const Sa=class extends ia{constructor(e){super(e),this.element=new Wi}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Xc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ja=class extends oa{constructor(e){super(e),this.element=new Gi,this.specPath=ln(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};const ka=class extends aa{constructor(e){super(e),this.element=new so,this.specPath=ln(["document","objects","ServerVariable"])}};const Aa=class extends oa{constructor(e){super(e),this.element=new me,this.specPath=ln(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}},Pa=e=>e instanceof U,Fa=e=>e instanceof H,Ca=e=>e instanceof G,Ia=e=>e instanceof J,Ma=e=>e instanceof K,Ta=e=>e instanceof Q,$a=e=>e instanceof Z,Da=e=>e instanceof ee,Ra=e=>e instanceof de,Na=e=>e instanceof ge,qa=e=>e instanceof xe,Ba=e=>e instanceof ve,_a=e=>e instanceof we,La=e=>e instanceof Ee,Va=e=>e instanceof Oe,Ua=e=>e instanceof Se,Ha=e=>e instanceof je,Ga=e=>e instanceof ke,za=e=>e instanceof Ae,Xa=e=>e instanceof Li,Ja=e=>e instanceof Vi,Ka=e=>e instanceof Ui,Wa=e=>e instanceof Hi,Ya=e=>e instanceof Gi,Qa=e=>e instanceof me,Za=e=>e instanceof Wi;const el=class extends la{constructor(e){super(e),this.alternator=[{predicate:zc,specPath:["document","objects","Reference"]},{predicate:vi,specPath:["document","objects","Schema"]}]}ObjectElement(e){Zc.prototype.enter.call(this,e),Ua(this.element)&&this.element.meta.set("referenced-element","schema")}};const tl=class extends aa{constructor(e){super(e),this.element=new V,this.element.classes.push("examples"),this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){aa.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","example")})}};const sl=class extends tl{constructor(e){super(e),this.element=new Uo}};const nl=class extends aa{constructor(e){super(e),this.element=new Go,this.specPath=ln(["document","objects","Encoding"])}};const rl=class extends aa{constructor(e){super(e),this.element=new Vi,this.specPath=ln(["value"])}};const il=class extends ia{constructor(e){super(e),this.element=new Qi}ArrayElement(e){const t=e.node;t.forEach(e=>{if(pe(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Ls(e))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ol=class extends oa{constructor(e){super(e),this.element=new H,this.specPath=ln(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}};const cl=class extends oa{constructor(e){super(e),this.element=new zi,this.specPath=ln(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}};const al=class extends oa{constructor(e){super(e),this.element=new Se,this.specPath=ln(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){oa.prototype.ObjectElement.call(this,e),oe(this.element.$ref)&&this.element.classes.push("reference-element")}};const ll=class extends _c{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const ul=class extends oa{constructor(e){super(e),this.element=new we,this.specPath=ln(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Wc.prototype.ObjectElement.call(this,e),pe(this.element.contentField)&&this.element.contentField.filter(Qa).forEach((e,t)=>{e.meta.set("media-type",Qs(t))})}};const pl=class extends la{constructor(e){super(e),this.alternator=[{predicate:zc,specPath:["document","objects","Reference"]},{predicate:vi,specPath:["document","objects","Schema"]}]}ObjectElement(e){Zc.prototype.enter.call(this,e),Ua(this.element)&&this.element.meta.set("referenced-element","schema")}};const hl=class extends oa{constructor(e){super(e),this.element=new Q,this.specPath=ln(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}};const dl=class extends la{constructor(e){super(e),this.alternator=[{predicate:zc,specPath:["document","objects","Reference"]},{predicate:vi,specPath:["document","objects","Schema"]}]}ObjectElement(e){Zc.prototype.enter.call(this,e),Ua(this.element)&&this.element.meta.set("referenced-element","schema")}};const ml=class extends tl{constructor(e){super(e),this.element=new cc}};const fl=class extends aa{constructor(e){super(e),this.element=new V,this.element.classes.push("content"),this.specPath=ln(["document","objects","MediaType"])}};const yl=class extends fl{constructor(e){super(e),this.element=new lc}};const gl=class extends oa{constructor(e){super(e),this.element=new Li,this.specPath=ln(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}},xl=qi.visitors.document.objects.JSONSchema.fixedFields.allOf;const vl=class extends xl{ArrayElement(e){xl.prototype.ArrayElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","schema")})}},bl=qi.visitors.document.objects.JSONSchema.fixedFields.anyOf;const wl=class extends bl{ArrayElement(e){bl.prototype.ArrayElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","schema")})}},El=qi.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Ol=class extends El{ArrayElement(e){El.prototype.ArrayElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Sl=class extends ii{ObjectElement(e){ii.prototype.ObjectElement.call(this,e),Ua(this.element)&&this.element.meta.set("referenced-element","schema")}ArrayElement(e){this.enter(e)}},jl=qi.visitors.document.objects.JSONSchema.fixedFields.properties;const kl=class extends jl{ObjectElement(e){jl.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","schema")})}},Al=qi.visitors.document.objects.JSONSchema.fixedFields.type;const Pl=class extends Al{ArrayElement(e){this.enter(e)}},Fl=qi.visitors.JSONSchemaOrJSONReferenceVisitor;const Cl=class extends Fl{ObjectElement(e){Fl.prototype.enter.call(this,e),Ua(this.element)&&this.element.meta.set("referenced-element","schema")}};const Il=class extends oa{constructor(e){super(e),this.element=new z,this.specPath=ln(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};const Ml=class extends aa{constructor(e){super(e),this.element=new tc,this.specPath=ln(["value"])}};const Tl=class extends oa{constructor(e){super(e),this.element=new Xi,this.specPath=ln(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}};const $l=class extends tl{constructor(e){super(e),this.element=new Fo}};const Dl=class extends fl{constructor(e){super(e),this.element=new Io}};const Rl=class extends aa{constructor(e){super(e),this.element=new ro,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Nl=class extends aa{constructor(e){super(e),this.element=new oo,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(Ga).forEach((e,t)=>{e.meta.set("http-status-code",Qs(t))})}};const ql=class extends aa{constructor(e){super(e),this.element=new ao,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const Bl=class extends aa{constructor(e){super(e),this.element=new uo,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","example")})}};const _l=class extends aa{constructor(e){super(e),this.element=new ho,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","requestBody")})}};const Ll=class extends aa{constructor(e){super(e),this.element=new fo,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.filter(Ta).forEach((e,t)=>{e.meta.set("header-name",Qs(t))})}};const Vl=class extends aa{constructor(e){super(e),this.element=new go,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","securityScheme")})}};const Ul=class extends aa{constructor(e){super(e),this.element=new vo,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","link")})}};const Hl=class extends aa{constructor(e){super(e),this.element=new wo,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","callback")})}};const Gl=class extends oa{constructor(e){super(e),this.element=new J,this.specPath=ln(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){oa.prototype.ObjectElement.call(this,e),oe(this.element.externalValue)&&this.element.classes.push("reference-element")}};const zl=class extends _c{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Xl=class extends oa{constructor(e){super(e),this.element=new K,this.specPath=ln(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}};const Jl=class extends oa{constructor(e){super(e),this.element=new X,this.specPath=ln(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Wc.prototype.ObjectElement.call(this,e),pe(this.element.headers)&&this.element.headers.filter(Ta).forEach((e,t)=>{e.meta.set("header-name",Qs(t))})}};const Kl=class extends aa{constructor(e){super(e),this.element=new Xo,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Ta(e))return;const s=Qs(t);e.meta.set("headerName",s)})}};const Wl=class extends ca{constructor(e){super(e),this.element=new Oe,this.specPath=ln(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=vi}ObjectElement(e){ca.prototype.ObjectElement.call(this,e),this.element.filter(La).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.meta.set("path",Ls(t))})}};const Yl=class extends oa{constructor(e){super(e),this.element=new je,this.specPath=ln(["document","objects","RequestBody"])}ObjectElement(e){Wc.prototype.ObjectElement.call(this,e),pe(this.element.contentField)&&this.element.contentField.filter(Qa).forEach((e,t)=>{e.meta.set("media-type",Qs(t))})}};const Ql=class extends fl{constructor(e){super(e),this.element=new Lo}};const Zl=class extends ca{constructor(e){super(e),this.element=new U,this.specPath=ln(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(La).forEach((e,t)=>{e.meta.set("runtime-expression",Qs(t))})}};const eu=class extends oa{constructor(e){super(e),this.element=new ke,this.specPath=ln(["document","objects","Response"])}ObjectElement(e){oa.prototype.ObjectElement.call(this,e),pe(this.element.contentField)&&this.element.contentField.filter(Qa).forEach((e,t)=>{e.meta.set("media-type",Qs(t))}),pe(this.element.headers)&&this.element.headers.filter(Ta).forEach((e,t)=>{e.meta.set("header-name",Qs(t))})}};const tu=class extends aa{constructor(e){super(e),this.element=new Ko,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){aa.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Ta(e))return;const s=Qs(t);e.meta.set("header-name",s)})}};const su=class extends fl{constructor(e){super(e),this.element=new Yo}};const nu=class extends aa{constructor(e){super(e),this.element=new Zo,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){aa.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","link")})}};function ru(e){return"[object Number]"===Object.prototype.toString.call(e)}var iu=g(function(e,t){if(!ru(e)||!ru(t))throw new TypeError("Both arguments to range must be numbers");for(var s=e<t?Math.ceil(t-e):0,n=Array(s),r=0;r<s;)n[r]=r+e,r+=1;return n});const ou=iu;const cu=class extends ua{constructor(e){super(e),this.element=new Ae,this.specPathFixedFields=ln(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>zc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${ou(100,600).join("|")})$`).test(String(e))}ObjectElement(e){ua.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(Ga).forEach((e,t)=>{const s=Ls(t);this.fieldPatternPredicate(Qs(s))&&e.meta.set("http-status-code",s)})}};const au=class extends la{constructor(e){super(e),this.alternator=[{predicate:zc,specPath:["document","objects","Reference"]},{predicate:vi,specPath:["document","objects","Response"]}]}ObjectElement(e){Zc.prototype.enter.call(this,e),Ua(this.element)?this.element.meta.set("referenced-element","response"):Ga(this.element)&&this.element.meta.set("http-status-code","default")}};const lu=class extends oa{constructor(e){super(e),this.element=new ve,this.specPath=ln(["document","objects","Operation"])}};const uu=class extends _c{constructor(e){super(e),this.element=new To}ArrayElement(e){const t=e.node;this.element=this.element.concat(Ls(t)),e.stop()}};const pu=class extends ia{constructor(e){super(e),this.element=new re,this.element.classes.push("parameters")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=zc(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);Ua(s)&&s.meta.set("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const hu=class extends pu{constructor(e){super(e),this.element=new Ao}};const du=class extends Zc{constructor(e){super(e),this.alternator=[{predicate:zc,specPath:["document","objects","Reference"]},{predicate:vi,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){Zc.prototype.enter.call(this,e),Ua(this.element)&&this.element.meta.set("referenced-element","requestBody")}};const mu=class extends aa{specPath;constructor(e){super(e),this.element=new Do,this.specPath=e=>zc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){Qc.prototype.ObjectElement.call(this,e),this.element.filter(Ua).forEach(e=>{e.meta.set("referenced-element","callback")})}};const fu=class extends ia{constructor(e){super(e),this.element=new No}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=pe(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const yu=class extends Sa{constructor(e){super(e),this.element=new Bo}};const gu=class extends oa{constructor(e){super(e),this.element=new Ee,this.specPath=ln(["document","objects","PathItem"])}ObjectElement(e){oa.prototype.ObjectElement.call(this,e),this.element.filter(Ba).forEach((e,t)=>{const s=Ls(t);s.content=Qs(s).toUpperCase(),e.meta.set("http-method",s)}),oe(this.element.$ref)&&this.element.classes.push("reference-element")}};const xu=class extends _c{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const vu=class extends Sa{constructor(e){super(e),this.element=new Oo}};const bu=class extends pu{constructor(e){super(e),this.element=new jo}};const wu=class extends oa{constructor(e){super(e),this.element=new Ui,this.specPath=ln(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}};const Eu=class extends oa{constructor(e){super(e),this.element=new ye,this.specPath=ln(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}};const Ou=class extends oa{constructor(e){super(e),this.element=new fe,this.specPath=ln(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};const Su=class extends aa{constructor(e){super(e),this.element=new nc,this.specPath=ln(["value"])}};const ju=class extends ia{constructor(e){super(e),this.element=new eo}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Jc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}},{fixedFields:ku}=qi.visitors.document.objects.JSONSchema,Au={visitors:{value:_c,document:{objects:{OpenApi:{$visitor:pa,element:"openApi3_0",fixedFields:{openapi:ha,info:{$ref:"#/visitors/document/objects/Info"},servers:Sa,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:il,tags:ju,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ma,element:"info",fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:fa}},Contact:{$visitor:ya,element:"contact",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:ga,element:"license",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Ea,element:"server",fixedFields:{url:Oa,description:{$ref:"#/visitors/value"},variables:ka}},ServerVariable:{$visitor:ja,element:"serverVariable",fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:ol,element:"components",fixedFields:{schemas:Rl,responses:Nl,parameters:ql,examples:Bl,requestBodies:_l,headers:Ll,securitySchemes:Vl,links:{$visitor:Ul,alias:"linksField"},callbacks:Hl}},Paths:{$visitor:Wl,element:"paths"},PathItem:{$visitor:gu,element:"pathItem",fixedFields:{$ref:xu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation",alias:"getField"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation",alias:"deleteField"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:vu,parameters:bu}},Operation:{$visitor:lu,element:"operation",fixedFields:{tags:uu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:hu,requestBody:du,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:mu,deprecated:{$ref:"#/visitors/value"},security:fu,servers:yu}},ExternalDocumentation:{$visitor:Xl,element:"externalDocumentation",fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:ul,element:"parameter",fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:pl,example:{$ref:"#/visitors/value"},examples:$l,content:{$visitor:Dl,alias:"contentField"}}},RequestBody:{$visitor:Yl,element:"requestBody",fixedFields:{description:{$ref:"#/visitors/value"},content:{$visitor:Ql,alias:"contentField"},required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Aa,element:"mediaType",fixedFields:{schema:el,example:{$ref:"#/visitors/value"},examples:sl,encoding:nl}},Encoding:{$visitor:Jl,element:"encoding",fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Kl,style:{$ref:"#/visitors/value",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:cu,element:"responses",fixedFields:{default:au}},Response:{$visitor:eu,element:"response",fixedFields:{description:{$ref:"#/visitors/value"},headers:tu,content:{$visitor:su,alias:"contentField"},links:{$visitor:nu,alias:"linksField"}}},Callback:{$visitor:Zl,element:"callback"},Example:{$visitor:Gl,element:"example",fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:zl}},Link:{$visitor:xa,element:"link",fixedFields:{operationRef:va,operationId:ba,parameters:wa,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:hl,element:"header",fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:dl,example:{$ref:"#/visitors/value"},examples:ml,content:{$visitor:yl,alias:"contentField"}}},Tag:{$visitor:cl,element:"tag",fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:al,element:"reference",fixedFields:{$ref:ll}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:gl,element:"schema",fixedFields:{title:ku.title,multipleOf:ku.multipleOf,maximum:ku.maximum,exclusiveMaximum:ku.exclusiveMaximum,minimum:ku.minimum,exclusiveMinimum:ku.exclusiveMinimum,maxLength:ku.maxLength,minLength:ku.minLength,pattern:ku.pattern,maxItems:ku.maxItems,minItems:ku.minItems,uniqueItems:ku.uniqueItems,maxProperties:ku.maxProperties,minProperties:ku.minProperties,required:ku.required,enum:ku.enum,type:Pl,allOf:vl,anyOf:wl,oneOf:Ol,not:Cl,items:{$visitor:Sl,alias:"itemsField"},properties:kl,additionalProperties:Cl,description:ku.description,format:ku.format,default:ku.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Il,element:"discriminator",fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Ml}},XML:{$visitor:Tl,element:"xml",fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:wu,element:"securityScheme",fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:Eu,element:"oAuthFlows",fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Ou,element:"oAuthFlow",fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Su}},SecurityRequirement:{$visitor:rl,element:"securityRequirement"}},extension:{$visitor:da}}}},Pu=()=>{const e=new Mc,t={...s,...n,isStringElement:oe};return e.use(Ji),{predicates:t,namespace:e}},Fu=(e,{element:t="openApi3_0",plugins:s=[],specificationObj:n=Au}={})=>{const r=qc(e),i=vs(n),o=i.elementMap[t];if(!o)throw new Error(`Unknown element type: "${t}"`);const c=new(Le(o,i))({specObj:i});return yr(r,c,{nodeTypeGetter:ir}),Rc(c.element,s,{toolboxCreator:Pu})},Cu=(e,t={})=>Fu(e,{...t,element:"openApi3_0"}),Iu=(e,t={})=>Fu(e,{...t,element:"info"}),Mu=(e,t={})=>Fu(e,{...t,element:"contact"}),Tu=(e,t={})=>Fu(e,{...t,element:"license"}),$u=(e,t={})=>Fu(e,{...t,element:"server"}),Du=(e,t={})=>Fu(e,{...t,element:"serverVariable"}),Ru=(e,t={})=>Fu(e,{...t,element:"components"}),Nu=(e,t={})=>Fu(e,{...t,element:"paths"}),qu=(e,t={})=>Fu(e,{...t,element:"pathItem"}),Bu=(e,t={})=>Fu(e,{...t,element:"operation"}),_u=(e,t={})=>Fu(e,{...t,element:"externalDocumentation"}),Lu=(e,t={})=>Fu(e,{...t,element:"parameter"}),Vu=(e,t={})=>Fu(e,{...t,element:"requestBody"}),Uu=(e,t={})=>Fu(e,{...t,element:"mediaType"}),Hu=(e,t={})=>Fu(e,{...t,element:"encoding"}),Gu=(e,t={})=>Fu(e,{...t,element:"responses"}),zu=(e,t={})=>Fu(e,{...t,element:"response"}),Xu=(e,t={})=>Fu(e,{...t,element:"callback"}),Ju=(e,t={})=>Fu(e,{...t,element:"example"}),Ku=(e,t={})=>Fu(e,{...t,element:"link"}),Wu=(e,t={})=>Fu(e,{...t,element:"header"}),Yu=(e,t={})=>Fu(e,{...t,element:"tag"}),Qu=(e,t={})=>Fu(e,{...t,element:"reference"}),Zu=(e,t={})=>Fu(e,{...t,element:"schema"}),ep=(e,t={})=>Fu(e,{...t,element:"discriminator"}),tp=(e,t={})=>Fu(e,{...t,element:"xml"}),sp=(e,t={})=>Fu(e,{...t,element:"securityScheme"}),np=(e,t={})=>Fu(e,{...t,element:"oAuthFlows"}),rp=(e,t={})=>Fu(e,{...t,element:"oAuthFlow"}),ip=(e,t={})=>Fu(e,{...t,element:"securityRequirement"}),op=Fu;return t})());
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsOpenApi3_0=t():e.apidomNsOpenApi3_0=t()}(self,()=>(()=>{"use strict";var e={d:(t,s)=>{for(var n in s)e.o(s,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:s[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{AlternatingVisitor:()=>sa,BaseAlternatingVisitor:()=>ha,BaseFixedFieldsVisitor:()=>la,BaseMapVisitor:()=>pa,BaseMixedFieldsVisitor:()=>da,BasePatternedFieldsVisitor:()=>ua,BaseSpecificationVisitor:()=>aa,CallbackElement:()=>K,ComponentsCallbacksElement:()=>So,ComponentsElement:()=>W,ComponentsExamplesElement:()=>mo,ComponentsHeadersElement:()=>xo,ComponentsLinksElement:()=>Eo,ComponentsParametersElement:()=>po,ComponentsRequestBodiesElement:()=>yo,ComponentsResponsesElement:()=>lo,ComponentsSchemasElement:()=>co,ComponentsSecuritySchemesElement:()=>bo,ContactElement:()=>Y,DiscriminatorElement:()=>Q,DiscriminatorMappingElement:()=>rc,EncodingElement:()=>Z,EncodingHeadersElement:()=>Wo,ExampleElement:()=>ee,ExternalDocumentationElement:()=>te,FallbackVisitor:()=>Uc,FixedFieldsVisitor:()=>Zc,HeaderContentElement:()=>hc,HeaderElement:()=>re,HeaderExamplesElement:()=>uc,InfoElement:()=>ie,LicenseElement:()=>oe,LinkElement:()=>ve,LinkParametersElement:()=>ac,MapVisitor:()=>ta,MediaTypeElement:()=>be,MediaTypeEncodingElement:()=>Jo,MediaTypeExamplesElement:()=>Go,MixedFieldsVisitor:()=>ca,MixedFieldsVisitorBase:()=>oa,OAuthFlowElement:()=>we,OAuthFlowScopesElement:()=>oc,OAuthFlowsElement:()=>Ee,OpenAPIMediaTypes:()=>f,OpenApi3_0Element:()=>Se,OpenapiElement:()=>Oe,OperationCallbacksElement:()=>No,OperationElement:()=>je,OperationParametersElement:()=>Co,OperationSecurityElement:()=>Bo,OperationServersElement:()=>Vo,OperationTagsElement:()=>_o,ParameterContentElement:()=>$o,ParameterElement:()=>Ae,ParameterExamplesElement:()=>Mo,PathItemElement:()=>Fe,PathItemParametersElement:()=>Fo,PathItemServersElement:()=>ko,PathsElement:()=>Pe,PatternedFieldsVisitor:()=>ea,ReferenceElement:()=>Ce,RequestBodyContentElement:()=>Ho,RequestBodyElement:()=>Ie,ResponseContentElement:()=>ec,ResponseElement:()=>Me,ResponseHeadersElement:()=>Qo,ResponseLinksElement:()=>sc,ResponsesElement:()=>Te,SchemaElement:()=>Hi,SecurityElement:()=>to,SecurityRequirementElement:()=>zi,SecuritySchemeElement:()=>Gi,ServerElement:()=>Xi,ServerVariableElement:()=>Ji,ServerVariablesElement:()=>io,ServersElement:()=>Zi,SpecificationExtensionVisitor:()=>ya,SpecificationVisitor:()=>Hc,TagElement:()=>Ki,TagsElement:()=>no,Visitor:()=>Vc,XmlElement:()=>Wi,default:()=>Yi,isCallbackElement:()=>Ia,isComponentsElement:()=>Ma,isContactElement:()=>Ta,isExampleElement:()=>$a,isExternalDocumentationElement:()=>Da,isInfoElement:()=>Ra,isLicenseElement:()=>Na,isLinkElement:()=>qa,isMediaTypeElement:()=>tl,isOpenApi3_0Element:()=>La,isOpenApiExtension:()=>Qc,isOpenapiElement:()=>Ba,isOperationElement:()=>Va,isParameterElement:()=>Ua,isPathItemElement:()=>Ha,isPathsElement:()=>za,isReferenceElement:()=>Ga,isReferenceLikeElement:()=>Kc,isRequestBodyElement:()=>Xa,isResponseElement:()=>Ja,isResponsesElement:()=>Ka,isSchemaElement:()=>Wa,isSecurityRequirementElement:()=>Ya,isSecuritySchemeElement:()=>Qa,isServerElement:()=>Za,isServerLikeElement:()=>Wc,isServerVariableElement:()=>el,isServersElement:()=>sl,isTagLikeElement:()=>Yc,mediaTypes:()=>y,refract:()=>lp,refractCallback:()=>Wu,refractComponents:()=>qu,refractContact:()=>Du,refractDiscriminator:()=>np,refractEncoding:()=>Xu,refractExample:()=>Yu,refractExternalDocumentation:()=>Uu,refractHeader:()=>Zu,refractInfo:()=>$u,refractLicense:()=>_u,refractLink:()=>Qu,refractMediaType:()=>Gu,refractOAuthFlow:()=>cp,refractOAuthFlows:()=>op,refractOpenApi3_0:()=>Tu,refractOperation:()=>Vu,refractParameter:()=>Hu,refractPathItem:()=>Lu,refractPaths:()=>Bu,refractReference:()=>tp,refractRequestBody:()=>zu,refractResponse:()=>Ku,refractResponses:()=>Ju,refractSchema:()=>sp,refractSecurityRequirement:()=>ap,refractSecurityScheme:()=>ip,refractServer:()=>Ru,refractServerVariable:()=>Nu,refractTag:()=>ep,refractXml:()=>rp,refractorPluginReplaceEmptyElement:()=>fc,specificationObj:()=>Cu});var s={};e.r(s),e.d(s,{isOpenApiExtension:()=>Qc,isReferenceLikeElement:()=>Kc,isServerLikeElement:()=>Wc,isTagLikeElement:()=>Yc});var n={};function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(s){return 0===arguments.length||r(s)?t:e.apply(this,arguments)}}function o(e,t){return t[e<0?t.length+e:e]}e.r(n),e.d(n,{isCallbackElement:()=>Ia,isComponentsElement:()=>Ma,isContactElement:()=>Ta,isExampleElement:()=>$a,isExternalDocumentationElement:()=>Da,isHeaderElement:()=>_a,isInfoElement:()=>Ra,isLicenseElement:()=>Na,isLinkElement:()=>qa,isMediaTypeElement:()=>tl,isOpenApi3_0Element:()=>La,isOpenapiElement:()=>Ba,isOperationElement:()=>Va,isParameterElement:()=>Ua,isPathItemElement:()=>Ha,isPathsElement:()=>za,isReferenceElement:()=>Ga,isRequestBodyElement:()=>Xa,isResponseElement:()=>Ja,isResponsesElement:()=>Ka,isSchemaElement:()=>Wa,isSecurityRequirementElement:()=>Ya,isSecuritySchemeElement:()=>Qa,isServerElement:()=>Za,isServerVariableElement:()=>el,isServersElement:()=>sl});const c=i(function(e){return o(-1,e)});class a extends AggregateError{constructor(e,t,s){super(e,t,s),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const l=a;class u extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(l,e)}constructor(e,t){super(e,t),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const p=u;const h=class extends p{};const d=class extends h{};const m=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new d("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new d("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new d("latest method in MediaTypes class is not yet implemented.")}};class f extends m{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="3.0.4",t="generic"){const s="generic"===t?`openapi;version=${e}`:`openapi+${t};version=${e}`;return this.find(e=>e.includes(s))||this.unknownMediaType}latest(e="generic"){return c(this.filterByFormat(e))}}const y=new f("application/openapi;version=3.0.0","application/openapi+json;version=3.0.0","application/openapi+yaml;version=3.0.0","application/openapi;version=3.0.1","application/openapi+json;version=3.0.1","application/openapi+yaml;version=3.0.1","application/openapi;version=3.0.2","application/openapi+json;version=3.0.2","application/openapi+yaml;version=3.0.2","application/openapi;version=3.0.3","application/openapi+json;version=3.0.3","application/openapi+yaml;version=3.0.3","application/openapi;version=3.0.4","application/openapi+json;version=3.0.4","application/openapi+yaml;version=3.0.4");function g(e){return function t(s,n){switch(arguments.length){case 0:return t;case 1:return r(s)?t:i(function(t){return e(s,t)});default:return r(s)&&r(n)?t:r(s)?i(function(t){return e(t,n)}):r(n)?i(function(t){return e(s,t)}):e(s,n)}}}function x(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function v(e,t,s){for(var n=0,r=s.length;n<r;){if(e(t,s[n]))return!0;n+=1}return!1}function b(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const w="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var E=Object.prototype.toString;const O=function(){return"[object Arguments]"===E.call(arguments)?function(e){return"[object Arguments]"===E.call(e)}:function(e){return b("callee",e)}}();var S=!{toString:null}.propertyIsEnumerable("toString"),j=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),A=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},F="function"!=typeof Object.keys||k?i(function(e){if(Object(e)!==e)return[];var t,s,n=[],r=k&&O(e);for(t in e)!b(t,e)||r&&"length"===t||(n[n.length]=t);if(S)for(s=j.length-1;s>=0;)b(t=j[s],e)&&!A(n,t)&&(n[n.length]=t),s-=1;return n}):i(function(e){return Object(e)!==e?[]:Object.keys(e)});const P=F;const C=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function I(e,t,s,n){var r=x(e);function i(e,t){return M(e,t,s.slice(),n.slice())}return!v(function(e,t){return!v(i,t,e)},x(t),r)}function M(e,t,s,n){if(w(e,t))return!0;var r=C(e);if(r!==C(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(r){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var i=s.length-1;i>=0;){if(s[i]===e)return n[i]===t;i-=1}switch(r){case"Map":return e.size===t.size&&I(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&I(e.values(),t.values(),s.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=P(e);if(o.length!==P(t).length)return!1;var c=s.concat([e]),a=n.concat([t]);for(i=o.length-1;i>=0;){var l=o[i];if(!b(l,t)||!M(t[l],e[l],c,a))return!1;i-=1}return!0}const T=g(function(e,t){return M(e,t,[],[])});function $(e,t,s){if(s||(s=new D),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n,r=function(n){var r=s.get(e);if(r)return r;for(var i in s.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?$(e[i],!0,s):e[i]);return n};switch(C(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return n=e,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var D=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var s=this.hash(e),n=this.map[s];n||(this.map[s]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var s in e)t.push(Object.prototype.toString.call(e[s]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var s=this.map[t],n=0;n<s.length;n+=1){if((i=s[n])[0]===e)return i[1]}else{var r=this.hash(e);if(s=this.map[r])for(n=0;n<s.length;n+=1){var i;if((i=s[n])[0]===e)return i[1]}}},e}();const _=i(function(e){return null!=e&&"function"==typeof e.clone?e.clone():$(e,!0)});class R{get(e){return this[e]}set(e,t){this[e]=t}hasKey(e){return Object.hasOwn(this,e)}keys(){return Object.keys(this)}remove(e){delete this[e]}get isEmpty(){return 0===Object.keys(this).length}get isFrozen(){return Object.isFrozen(this)}freeze(){for(const e of Object.values(this))e instanceof this.Element?e.freeze():(Array.isArray(e)||null!==e&&"object"==typeof e)&&Object.freeze(e);Object.freeze(this)}cloneShallow(){const e=new R;return Object.assign(e,this),e}merge(e){const t=this.cloneShallow();for(const[s,n]of Object.entries(e)){const e=t.get(s);Array.isArray(e)&&Array.isArray(n)?t.set(s,[...e,...n]):t.set(s,n)}return t}cloneDeep(){const e=new R;for(const[t,s]of Object.entries(this))s instanceof this.Element?e.set(t,this.cloneDeepElement(s)):e.set(t,_(s));return e}}const N=R;const q=class{key;value;constructor(e,t){this.key=e,this.value=t}toValue(){return{key:this.key?.toValue(),value:this.value?.toValue()}}};class B{elements;constructor(e){this.elements=e??[]}toValue(){return this.elements.map(e=>({key:e.key?.toValue(),value:e.value?.toValue()}))}map(e,t){return this.elements.map(s=>{const n=s.value,r=s.key;if(void 0===n||void 0===r)throw new Error("MemberElement must have both key and value");return void 0!==t?e.call(t,n,r,s):e(n,r,s)})}filter(e,t){const s=this.elements.filter(s=>{const n=s.value,r=s.key;return void 0!==n&&void 0!==r&&(void 0!==t?e.call(t,n,r,s):e(n,r,s))});return new B(s)}reject(e,t){const s=[];for(const n of this.elements){const r=n.value,i=n.key;void 0!==r&&void 0!==i&&(e.call(t,r,i,n)||s.push(n))}return new B(s)}forEach(e,t){this.elements.forEach((s,n)=>{const r=s.value,i=s.key;void 0!==r&&void 0!==i&&(void 0!==t?e.call(t,r,i,s,n):e(r,i,s,n))})}find(e,t){return this.elements.find(s=>{const n=s.value,r=s.key;return void 0!==n&&void 0!==r&&(void 0!==t?e.call(t,n,r,s):e(n,r,s))})}keys(){return this.elements.map(e=>e.key?.toValue()).filter(e=>void 0!==e)}values(){return this.elements.map(e=>e.value?.toValue()).filter(e=>void 0!==e)}get length(){return this.elements.length}get isEmpty(){return 0===this.length}get first(){return this.elements[0]}get(e){return this.elements[e]}push(e){return this.elements.push(e),this}includesKey(e){return this.elements.some(t=>t.key?.equals(e))}[Symbol.iterator](){return this.elements[Symbol.iterator]()}}const L=B,V=Object.freeze(new N);class U{parent;style;startLine;startCharacter;startOffset;endLine;endCharacter;endOffset;_storedElement="element";_content;_meta;_attributes;constructor(e,t,s){void 0!==t&&(this.meta=t),void 0!==s&&(this.attributes=s),void 0!==e&&(this.content=e)}get element(){return this._storedElement}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof U)this._content=e;else if(null!=e&&"string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e&&"bigint"!=typeof e&&"symbol"!=typeof e)if(e instanceof q)this._content=e;else if(e instanceof L)this._content=e.elements;else if(Array.isArray(e))this._content=e.map(e=>this.refract(e));else{if("object"!=typeof e)throw new Error("Cannot set content to value of type "+typeof e);this._content=Object.entries(e).map(([e,t])=>new this.MemberElement(e,t))}else this._content=e}get meta(){if(!this._meta){if(this.isFrozen)return V;this._meta=new N}return this._meta}set meta(e){if(e instanceof N)this._meta=e;else if(e&&"object"==typeof e){const t=new N;Object.assign(t,e),this._meta=t}}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof U?this._attributes=e:this.attributes.set(e??{})}get id(){if(!this.hasMetaProperty("id")){if(this.isFrozen)return"";this.setMetaProperty("id","")}return this.meta.get("id")}set id(e){this.setMetaProperty("id",e)}get classes(){if(!this.hasMetaProperty("classes")){if(this.isFrozen)return[];this.setMetaProperty("classes",[])}return this.meta.get("classes")}set classes(e){this.setMetaProperty("classes",e)}get links(){if(!this.hasMetaProperty("links")){if(this.isFrozen){const e=new this.ArrayElement;return e.freeze(),e}this.setMetaProperty("links",new this.ArrayElement)}return this.meta.get("links")}set links(e){this.setMetaProperty("links",e)}get children(){const{_content:e}=this;if(Array.isArray(e))return e;if(e instanceof q){const t=[];return e.key&&t.push(e.key),e.value&&t.push(e.value),t}return e instanceof U?[e]:[]}get isFrozen(){return Object.isFrozen(this)}freeze(){if(!this.isFrozen){this._meta&&this._meta.freeze(),this._attributes&&(this._attributes.parent=this,this._attributes.freeze());for(const e of this.children)e.parent=this,e.freeze();Array.isArray(this._content)&&Object.freeze(this._content),Object.freeze(this)}}toValue(){const{_content:e}=this;return e instanceof U||e instanceof q?e.toValue():Array.isArray(e)?e.map(e=>e.toValue()):e}equals(e){const t=e instanceof U?e.toValue():e;return T(this.toValue(),t)}primitive(){}set(e){return this.content=e,this}toRef(e){const t=this.id;if(""===t)throw new Error("Cannot create reference to an element without an ID");const s=new this.RefElement(t);return"string"==typeof e&&(s.path=this.refract(e)),s}getMetaProperty(e,t){return this.hasMetaProperty(e)?this.meta.get(e):t}setMetaProperty(e,t){this.meta.set(e,t)}hasMetaProperty(e){return void 0!==this._meta&&this._meta.hasKey(e)}get isMetaEmpty(){return void 0===this._meta||this._meta.isEmpty}getAttributesProperty(e,t){if(!this.hasAttributesProperty(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.attributes.set(e,t)}return this.attributes.get(e)}setAttributesProperty(e,t){this.attributes.set(e,t)}hasAttributesProperty(e){return!this.isAttributesEmpty&&this.attributes.hasKey(e)}get isAttributesEmpty(){return void 0===this._attributes||this.attributes.isEmpty}}const H=U;class z extends H{constructor(e,t,s){super(e||[],t,s)}get length(){return this._content.length}get isEmpty(){return 0===this.length}get first(){return this._content[0]}get second(){return this._content[1]}get last(){return this._content.at(-1)}push(...e){for(const t of e)this._content.push(this.refract(t));return this}shift(){return this._content.shift()}unshift(e){this._content.unshift(this.refract(e))}includes(e){return this._content.some(t=>t.equals(e))}findElements(e,t){const s=t||{},n=!!s.recursive,r=void 0===s.results?[]:s.results;for(let t=0;t<this._content.length;t+=1){const s=this._content[t],i=s;n&&"function"==typeof i.findElements&&i.findElements(e,{results:r,recursive:n}),e(s,t,void 0)&&r.push(s)}return r}find(e){const t=this.findElements(e,{recursive:!0});return new this.ArrayElement(t)}findByElement(e){return this.find(t=>t.element===e)}findByClass(e){return this.find(t=>{const s=t.classes;return"function"==typeof s.includes&&s.includes(e)})}getById(e){return this.find(t=>t.id===e).first}concat(e){return new(0,this.constructor)(this._content.concat(e._content))}[Symbol.iterator](){return this._content[Symbol.iterator]()}}const G=z;const X=class extends H{constructor(e,t,s,n){super(new q,s,n),this.element="member",void 0!==e&&(this.key=e),arguments.length>=2&&(this.value=t)}primitive(){return"member"}get key(){return this._content.key}set key(e){this._content.key=this.refract(e)}get value(){return this._content.value}set value(e){this._content.value=void 0===e?void 0:this.refract(e)}};const J=class extends G{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this._content.reduce((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e),{})}get(e){const t=this.getMember(e);if(t)return t.value}getValue(e){const t=this.get(e);if(t)return t.toValue()}getMember(e){if(void 0!==e)return this._content.find(t=>t.key.toValue()===e)}remove(e){let t=null;return this.content=this._content.filter(s=>s.key.toValue()!==e||(t=s,!1)),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if("string"==typeof e){const s=this.getMember(e);s?s.value=t:this._content.push(new X(e,t))}else if("object"==typeof e&&!Array.isArray(e))for(const t of Object.keys(e))this.set(t,e[t]);return this}keys(){return this._content.map(e=>e.key.toValue())}values(){return this._content.map(e=>e.value.toValue())}hasKey(e){return this._content.some(t=>t.key.equals(e))}items(){return this._content.map(e=>[e.key.toValue(),e.value.toValue()])}map(e,t){return this._content.map(s=>e.call(t,s.value,s.key,s))}compactMap(e,t){const s=[];return this.forEach((n,r,i)=>{const o=e.call(t,n,r,i);o&&s.push(o)}),s}filter(e,t){return new L(this._content).filter(e,t)}reject(e,t){const s=[];for(const n of this._content)e.call(t,n.value,n.key,n)||s.push(n);return new L(s)}forEach(e,t){this._content.forEach(s=>e.call(t,s.value,s.key,s))}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n=this._content[0]?.value);for(let t=s;t<this._content.length;t+=1){const s=this._content[t],r=e(n,s.value,s.key,s,this);n=void 0===r?r:this.refract(r)}return n}empty(){return new this.constructor([])}};const K=class extends J{constructor(e,t,s){super(e,t,s),this.element="callback"}};const W=class extends J{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}};const Y=class extends J{constructor(e,t,s){super(e,t,s),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}};const Q=class extends J{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}};const Z=class extends J{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get styleField(){return this.get("style")}set styleField(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}};const ee=class extends J{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}};const te=class extends J{constructor(e,t,s){super(e,t,s),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}};const se=class extends H{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}};class ne extends J{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new se(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new se(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get styleField(){return this.get("style")}set styleField(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}}Object.defineProperty(ne.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const re=ne;const ie=class extends J{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}};const oe=class extends J{constructor(e,t,s){super(e,t,s),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}};const ce=class extends H{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content?.length??0}};const ae=class extends H{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}};const le=class extends H{constructor(e,t,s){super(e??null,t,s),this.element="null"}primitive(){return"null"}set(e){throw new Error("Cannot set the value of null")}};const ue=class extends G{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this._content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}set(e,t){return"number"==typeof e&&void 0!==t?this._content[e]=this.refract(t):this.content=e,this}remove(e){return this._content.splice(e,1)[0]??null}map(e,t){return this._content.map(e,t)}flatMap(e,t){return this._content.flatMap(e,t)}compactMap(e,t){const s=[];for(const n of this._content){const r=e.call(t,n);r&&s.push(r)}return s}filter(e,t){const s=this._content.filter(e,t);return new this.constructor(s)}reject(e,t){const s=[];for(const n of this._content)e.call(t,n)||s.push(n);return new this.constructor(s)}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n=this.first);for(let t=s;t<this.length;t+=1){const s=e(n,this._content[t],t,this);n=void 0===s?s:this.refract(s)}return n}forEach(e,t){this._content.forEach((s,n)=>{e.call(t,s,n)})}empty(){return new this.constructor([])}},pe=e=>e instanceof H,he=e=>e instanceof ce,de=e=>e instanceof ae,me=e=>e instanceof le,fe=e=>e instanceof se,ye=e=>e instanceof ue,ge=e=>e instanceof J,xe=e=>e instanceof X;const ve=class extends J{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){return he(this.operationRef)?this.operationRef?.meta.get("operation"):he(this.operationId)?this.operationId?.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}};const be=class extends J{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}};const we=class extends J{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}};const Ee=class extends J{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}};const Oe=class extends ce{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};const Se=class extends J{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}};const je=class extends J{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new se(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}};class ke extends J{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new se(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new se(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get styleField(){return this.get("style")}set styleField(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}}Object.defineProperty(ke.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ae=ke;const Fe=class extends J{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get getField(){return this.get("get")}set getField(e){this.set("get",e)}get put(){return this.get("put")}set put(e){this.set("put",e)}get post(){return this.get("post")}set post(e){this.set("post",e)}get deleteField(){return this.get("delete")}set deleteField(e){this.set("delete",e)}get options(){return this.get("options")}set options(e){this.set("options",e)}get head(){return this.get("head")}set head(e){this.set("head",e)}get patch(){return this.get("patch")}set patch(e){this.set("patch",e)}get trace(){return this.get("trace")}set trace(e){this.set("trace",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}};const Pe=class extends J{constructor(e,t,s){super(e,t,s),this.element="paths"}};const Ce=class extends J{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}};const Ie=class extends J{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new se(!1)}set required(e){this.set("required",e)}};const Me=class extends J{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}};const Te=class extends J{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}};function $e(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}var De=g(function(e,t){return $e(function(s,n){return s[n]=e(t[n],n,t),s},{},P(t))});const _e=De;const Re=i(function(e){return null==e});var Ne=g(function(e,t){if(0===e.length||Re(t))return!1;for(var s=t,n=0;n<e.length;){if(Re(s)||!b(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const qe=Ne;var Be=g(function(e,t){return qe([e],t)});const Le=Be;function Ve(e){return function t(s,n,o){switch(arguments.length){case 0:return t;case 1:return r(s)?t:g(function(t,n){return e(s,t,n)});case 2:return r(s)&&r(n)?t:r(s)?g(function(t,s){return e(t,n,s)}):r(n)?g(function(t,n){return e(s,t,n)}):i(function(t){return e(s,n,t)});default:return r(s)&&r(n)&&r(o)?t:r(s)&&r(n)?g(function(t,s){return e(t,s,o)}):r(s)&&r(o)?g(function(t,s){return e(t,n,s)}):r(n)&&r(o)?g(function(t,n){return e(s,t,n)}):r(s)?i(function(t){return e(t,n,o)}):r(n)?i(function(t){return e(s,t,o)}):r(o)?i(function(t){return e(s,n,t)}):e(s,n,o)}}}const Ue=Number.isInteger||function(e){return(e|0)===e};const He=g(function(e,t){if(null!=t)return Ue(e)?o(e,t):t[e]});const ze=Ve(function(e,t,s){return e(He(t,s))});function Ge(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var r=e[n];s=Ue(r)?o(r,s):s[r]}return s}const Xe=g(Ge);function Je(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,s){return t.apply(this,arguments)};case 3:return function(e,s,n){return t.apply(this,arguments)};case 4:return function(e,s,n,r){return t.apply(this,arguments)};case 5:return function(e,s,n,r,i){return t.apply(this,arguments)};case 6:return function(e,s,n,r,i,o){return t.apply(this,arguments)};case 7:return function(e,s,n,r,i,o,c){return t.apply(this,arguments)};case 8:return function(e,s,n,r,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,s,n,r,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,s,n,r,i,o,c,a,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Ke(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const We=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Ye(e){return"[object String]"===Object.prototype.toString.call(e)}const Qe=i(function(e){return!!We(e)||!!e&&("object"==typeof e&&(!Ye(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Ze="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function et(e,t,s){return function(n,r,i){if(Qe(i))return e(n,r,i);if(null==i)return r;if("function"==typeof i["fantasy-land/reduce"])return t(n,r,i,"fantasy-land/reduce");if(null!=i[Ze])return s(n,r,i[Ze]());if("function"==typeof i.next)return s(n,r,i);if("function"==typeof i.reduce)return t(n,r,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function tt(e,t,s){for(var n=0,r=s.length;n<r;){if((t=e["@@transducer/step"](t,s[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var st=g(function(e,t){return Je(e.length,function(){return e.apply(t,arguments)})});const nt=st;function rt(e,t,s){for(var n=s.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=s.next()}return e["@@transducer/result"](t)}function it(e,t,s,n){return e["@@transducer/result"](s[n](nt(e["@@transducer/step"],e),t))}const ot=et(tt,it,rt);var ct=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const at=Ve(function(e,t,s){return ot("function"==typeof e?new ct(e):e,t,s)});function lt(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return We(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const ut=Ve(lt("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const pt=i(lt("tail",ut(1,1/0)));function ht(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Je(arguments[0].length,at(Ke,arguments[0],pt(arguments)))}var dt=function(e,t){switch(arguments.length){case 0:return dt;case 1:return function t(s){return 0===arguments.length?t:w(e,s)};default:return w(e,t)}};const mt=dt;function ft(e,t){return function(e,t,s){var n,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;s<e.length;){if(0===(r=e[s])&&1/r===n)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(r=e[s])&&r!=r)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(T(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function yt(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}function gt(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var xt=function(e){return(e<10?"0":"")+e};const vt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+xt(e.getUTCMonth()+1)+"-"+xt(e.getUTCDate())+"T"+xt(e.getUTCHours())+":"+xt(e.getUTCMinutes())+":"+xt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function bt(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!We(n)){for(var r=0;r<e.length;){if("function"==typeof n[e[r]])return n[e[r]].apply(n,Array.prototype.slice.call(arguments,0,-1));r+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return s.apply(this,arguments)}}function wt(e){return"[object Object]"===Object.prototype.toString.call(e)}const Et=function(){return this.xf["@@transducer/init"]()},Ot=function(e){return this.xf["@@transducer/result"](e)};var St=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Et,e.prototype["@@transducer/result"]=Ot,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function jt(e){return function(t){return new St(e,t)}}var kt=g(bt(["fantasy-land/filter","filter"],jt,function(e,t){return wt(t)?$e(function(s,n){return e(t[n])&&(s[n]=t[n]),s},{},P(t)):(s=t,"[object Map]"===Object.prototype.toString.call(s)?function(e,t){for(var s=new Map,n=t.entries(),r=n.next();!r.done;)e(r.value[1])&&s.set(r.value[0],r.value[1]),r=n.next();return s}(e,t):function(e,t){for(var s=0,n=t.length,r=[];s<n;)e(t[s])&&(r[r.length]=t[s]),s+=1;return r}(e,t));var s}));const At=kt;const Ft=g(function(e,t){return At((s=e,function(){return!s.apply(this,arguments)}),t);var s});function Pt(e,t){var s=function(s){var n=t.concat([e]);return ft(s,n)?"<Circular>":Pt(s,n)},n=function(e,t){return yt(function(t){return gt(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+yt(s,e).join(", ")+"))";case"[object Array]":return"["+yt(s,e).concat(n(e,Ft(function(e){return/^\d+$/.test(e)},P(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):gt(vt(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":gt(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var r=e.toString();if("[object Object]"!==r)return r}return"{"+n(e,P(e)).join(", ")+"}"}}const Ct=i(function(e){return Pt(e,[])});const It=Ve(function(e,t,s){return e(Ge(t,s))});function Mt(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Tt=g(function(e,t){return e&&t});function $t(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function Dt(e,t,s,n){return s[n](e,t)}const _t=et($e,Dt,$t);var Rt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Et,e.prototype["@@transducer/result"]=Ot,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Nt=function(e){return function(t){return new Rt(e,t)}};function qt(e,t,s){return function(){for(var n=[],i=0,o=e,c=0,a=!1;c<t.length||i<arguments.length;){var l;c<t.length&&(!r(t[c])||i>=arguments.length)?l=t[c]:(l=arguments[i],i+=1),n[c]=l,r(l)?a=!0:o-=1,c+=1}return!a&&o<=0?s.apply(this,n):Je(Math.max(0,o),qt(e,n,s))}}var Bt=g(function(e,t){return 1===e?i(t):Je(e,qt(e,[],t))});const Lt=Bt;var Vt=g(bt(["fantasy-land/map","map"],Nt,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Lt(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return $e(function(s,n){return s[n]=e(t[n]),s},{},P(t));default:return yt(e,t)}}));const Ut=Vt;const Ht=g(function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:_t(function(e,s){return function(e,t){var s;t=t||[];var n=(e=e||[]).length,r=t.length,i=[];for(s=0;s<n;)i[i.length]=e[s],s+=1;for(s=0;s<r;)i[i.length]=t[s],s+=1;return i}(e,Ut(s,t))},[],e)});var zt=g(function(e,t){var s=Lt(e,t);return Lt(e,function(){return $e(Ht,Ut(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const Gt=zt;var Xt=i(function(e){return Gt(e.length,e)});const Jt=Xt;const Kt=g(function(e,t){return Mt(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Jt(Tt)(e,t)});const Wt=T(null);const Yt=Jt(i(function(e){return!e}));const Qt=Yt(Wt);function Zt(e){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(e)}const es=function(e){return"object"===Zt(e)};const ts=Lt(1,Kt(Qt,es));const ss=g(function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var n=s(e,t);if(void 0!==n)return n;var r=s(typeof e,typeof t);if(void 0!==r)return r===typeof e?e:t;var i=Ct(e),o=s(i,Ct(t));return void 0!==o&&o===i?e:t});const ns=g(function(e,t){return Ut(He(e),t)});const rs=i(function(e){return Lt(at(ss,0,ns("length",e)),function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});const is=Lt(1,ht(C,mt("GeneratorFunction")));const os=Lt(1,ht(C,mt("AsyncFunction")));const cs=rs([ht(C,mt("Function")),is,os]);var as=ht(C,mt("Object")),ls=ht(Ct,T(Ct(Object))),us=It(Kt(cs,ls),["constructor"]);const ps=Lt(1,function(e){if(!ts(e)||!as(e))return!1;var t=Object.getPrototypeOf(e);return!!Wt(t)||us(t)});const hs=Lt(1,ht(C,mt("String")));var ds=i(function(e){return Lt(e.length,e)});const ms=ds;const fs=g(function(e,t){return Lt(e+1,function(){var s=arguments[e];if(null!=s&&Mt(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ct(s)+' does not have a method named "'+t+'"')})});const ys=fs(1,"split");var gs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Et,e.prototype["@@transducer/result"]=Ot,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function xs(e){return function(t){return new gs(e,t)}}const vs=g(bt(["dropWhile"],xs,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return ut(s,1/0,t)}));const bs=fs(1,"join");var ws=i(function(e){return Lt(e.length,function(t,s){var n=Array.prototype.slice.call(arguments,0);return n[0]=s,n[1]=t,e.apply(this,n)})});const Es=ws(g(ft));const Os=ms(function(e,t){return ht(ys(""),vs(Es(e)),bs(""))(t)}),Ss=new WeakMap,js=e=>{if(Ss.has(e))return Ss.get(e);const t={},s=(e,n,r)=>("string"==typeof e.element&&(t[e.element]=e.$visitor?[...r,"$visitor"]:r),_e((e,t)=>{const i=[...r,t];if(ps(e)&&Le("$ref",e)&&ze(hs,"$ref",e)){const t=Xe(["$ref"],e),s=Os("#/",t),r=Xe(s.split("/"),n),{$ref:i,...o}=e;return Object.keys(o).length>0&&ps(r)?{...r,...o}:r}return ps(e)?s(e,n,i):e},e)),n=s(e,e,[]);return n.elementMap=t,Ss.set(e,n),n};const ks=class extends J{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idField(){return this.get("id")}set idField(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}};const As=class extends J{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}};const Fs=class extends J{constructor(e,t,s){super(e,t,s),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}};const Ps=class extends J{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Cs=e=>void 0!==e.style,Is=e=>"number"==typeof e.startLine&&"number"==typeof e.startCharacter&&"number"==typeof e.startOffset&&"number"==typeof e.endLine&&"number"==typeof e.endCharacter&&"number"==typeof e.endOffset,Ms=(e,t)=>0===t.length||!!pe(e)&&(!e.isMetaEmpty&&(!!e.hasMetaProperty("classes")&&t.every(t=>e.classes.includes(t))));class Ts extends ce{constructor(e,t,s){super(e,t,s),this.element="sourceMap"}static transfer(e,t){t.startLine=e.startLine,t.startCharacter=e.startCharacter,t.startOffset=e.startOffset,t.endLine=e.endLine,t.endCharacter=e.endCharacter,t.endOffset=e.endOffset}static from(e){const{startLine:t,startCharacter:s,startOffset:n,endLine:r,endCharacter:i,endOffset:o}=e;if("number"!=typeof t||"number"!=typeof s||"number"!=typeof n||"number"!=typeof r||"number"!=typeof i||"number"!=typeof o)return;const c="sm1:"+[t,s,n,r,i,o].map(Ds).join("");const a=new Ts(c);return a.startLine=t,a.startCharacter=s,a.startOffset=n,a.endLine=r,a.endCharacter=i,a.endOffset=o,a}applyTo(e){this.content&&([e.startLine,e.startCharacter,e.startOffset,e.endLine,e.endCharacter,e.endOffset]=function(e){const t=e.startsWith("sm1:")?e.slice(4):e,s=[];let n=0;for(let e=0;e<6;e++){const e=_s(t,n);s.push(e.value),n=e.next}return s}(this.content))}}const $s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ds(e){let t=e>>>0,s="";do{let e=31&t;t>>>=5,0!==t&&(e|=32),s+=$s[e]}while(0!==t);return s}function _s(e,t=0){let s=0,n=0,r=t;for(;;){const t=e[r++],i=$s.indexOf(t);if(-1===i)throw new Error(`Invalid Base64 VLQ char: ${t}`);if(s|=(31&i)<<n,n+=5,!!!(32&i))break}return{value:s>>>0,next:r}}const Rs=Ts;const Ns=class extends p{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const qs=class extends Ns{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Bs=class extends qs{};const Ls=class extends qs{},Vs=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=Gs(e);s.set(e,r);const{content:i}=e;return Array.isArray(i)?r.content=i.map(e=>Vs(e,n)):pe(i)?r.content=Vs(i,n):r.content=i instanceof q?Us(i,n):i,r},Us=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const{key:r,value:i}=e,o=void 0!==r?Vs(r,n):void 0,c=void 0!==i?Vs(i,n):void 0,a=new q(o,c);return s.set(e,a),a},Hs=(e,t={})=>{if(e instanceof q)return Us(e,t);if(e instanceof L)return((e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=[...e].map(e=>Vs(e,n)),i=new L(r);return s.set(e,i),i})(e,t);if(pe(e))return Vs(e,t);throw new Bs("Value provided to cloneDeep function couldn't be cloned",{value:e})};Hs.safe=e=>{try{return Hs(e)}catch{return e}};const zs=e=>{const{key:t,value:s}=e;return new q(t,s)},Gs=e=>{const t=new(0,e.constructor);t.element=e.element,e.isMetaEmpty||(t.meta=e.meta.cloneDeep()),e.isAttributesEmpty||(t.attributes=Hs(e.attributes)),Is(e)&&Rs.transfer(e,t),Cs(e)&&(t.style=_(e.style));const{content:s}=e;return pe(s)?t.content=Gs(s):Array.isArray(s)?t.content=[...s]:t.content=s instanceof q?zs(s):s,t},Xs=e=>{if(e instanceof q)return zs(e);if(e instanceof L)return(e=>{const t=[...e];return new L(t)})(e);if(pe(e))return Gs(e);throw new Ls("Value provided to cloneShallow function couldn't be cloned",{value:e})};Xs.safe=e=>{try{return Xs(e)}catch{return e}};const Js=class extends H{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){if(this.hasAttributesProperty("relation"))return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){if(this.hasAttributesProperty("href"))return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}};const Ks=class extends H{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){if(this.hasAttributesProperty("path"))return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}};const Ws=class extends ce{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){if(this.hasAttributesProperty("code"))return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}};const Ys=class extends ce{constructor(e,t,s){super(e,t,s),this.element="comment"}};const Qs=class extends ue{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.filter(e=>Ms(e,["api"])).first}get results(){return this.filter(e=>Ms(e,["result"]))}get result(){return this.results.first}get annotations(){return this.filter(e=>"annotation"===e.element)}get warnings(){return this.filter(e=>"annotation"===e.element&&Ms(e,["warning"]))}get errors(){return this.filter(e=>"annotation"===e.element&&Ms(e,["error"]))}get isEmpty(){return 0===this.reject(e=>"annotation"===e.element).length}replaceResult(e){const{result:t}=this;if(void 0===t)return!1;const s=this._content,n=s.findIndex(e=>e===t);return-1!==n&&(s[n]=e,!0)}},Zs=e=>e instanceof Js,en=e=>e instanceof Ks,tn=e=>{if(!pe(e))return e;if(he(e)||de(e)||fe(e)||me(e))return e.toValue();const t=new WeakMap,s=e=>{if(!pe(e))return e;if(ge(e)){if(t.has(e))return t.get(e);const n={};return t.set(e,n),e.forEach((e,t)=>{const r=s(t),i=s(e);"string"==typeof r&&(n[r]=i)}),n}if(ye(e)){if(t.has(e))return t.get(e);const n=[];return t.set(e,n),e.forEach(e=>n.push(s(e))),n}return en(e)?String(e.toValue()):Zs(e)?he(e.href)?e.href.toValue():"":e.toValue()};return s(e)},sn=e=>{const t=e.isMetaEmpty?void 0:e.meta.cloneDeep(),s=e.isAttributesEmpty?void 0:Hs(e.attributes);return new e.constructor(void 0,t,s)},nn=(e,t)=>t.clone&&t.isMergeableElement(e)?on(sn(e),e,t):e,rn={clone:!0,isMergeableElement:e=>ge(e)||ye(e),arrayElementMerge:(e,t,s)=>new(0,e.constructor)(e.concat(t).map(e=>nn(e,s))),objectElementMerge:(e,t,s)=>{const n=ge(e)?sn(e):sn(t);return ge(e)&&e.forEach((e,t,r)=>{const i=Xs(r);i.value=nn(e,s),n.content.push(i)}),t.forEach((t,r,i)=>{const o=tn(r);let c;if(ge(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=Xs(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return on;const s=t.customMerge(e,t);return"function"==typeof s?s:on})(r,s)(n,t,s)}else c=Xs(i),c.value=nn(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},on=(e,t,s)=>{const n={...rn,...s};n.isMergeableElement=n.isMergeableElement??rn.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??rn.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??rn.objectElementMerge;const r=ye(t);if(!(r===ye(e)))return nn(t,n);const i=r&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(e,t,n):n.objectElementMerge(e,t,n);return e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty?t.isMetaEmpty||(i.meta=t.meta.cloneDeep()):i.meta=e.meta.cloneDeep():i.meta=(e=>"function"!=typeof e.customMetaMerge?e=>e.cloneDeep():e.customMetaMerge)(n)(e.meta,t.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty?t.isAttributesEmpty||(i.attributes=Hs(t.attributes)):i.attributes=Hs(e.attributes):i.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Hs(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),i};on.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new J:e.reduce((e,s)=>on(e,s,t),sn(e[0]))};const cn=on;class an extends J{constructor(e,t,s){super(e,t,s),this.element="__styles__"}static transfer(e,t){t.style=e.style}static from(e){if(e.style)return new an(e.style)}applyTo(e){e.style=this.toValue()}}const ln=an;const un=class{element;consume=!1;consumeSafe=!1;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty||(t.meta=e.meta.cloneDeep()):t.meta=t.meta.merge(e.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty||(t.attributes=Hs(e.attributes)):t.attributes=cn(t.attributes,e.attributes),Rs.transfer(e,t),ln.transfer(e,t)}};const pn=class extends un{enter(e){this.element=this.consume?e.node:Hs(e.node),e.stop()}};const hn=i(function(e){return function(){return e}});const dn=g(function(e,t){return null==t||t!=t?e:t});const mn=hn(void 0);const fn=T(mn());const yn=i(function(e){return Lt(at(ss,0,ns("length",e)),function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});var gn=i(function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():e==Set||e instanceof Set?new Set:e==Map||e instanceof Map?new Map:We(e)?[]:Ye(e)?"":wt(e)?{}:O(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0});const xn=gn;const vn=i(function(e){return null!=e&&T(e,xn(e))});const bn=i(function(e){return!vn(e)});const wn=g(function(e,t){return e||t});const En=Lt(1,Kt(Qt,g(function(e,t){return Mt(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Jt(wn)(e,t)})(es,cs)));var On=Yt(En);const Sn=yn([hs,On,bn]);const jn=g(function(e,t){for(var s={},n=0;n<e.length;)e[n]in t&&(s[e[n]]=t[e[n]]),n+=1;return s}),kn=function(){const e=Fn,t=An,s=this,n="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let r,i,o,c,a,l,u,p=0,h=0,d=0,m=0,f=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,x,b,w)=>{const E=`${n}parse(): `;p=0,h=0,d=0,m=0,f=0,r=void 0,i=void 0,o=void 0,c=void 0,y.refresh(),a=void 0,l=void 0,u=void 0,c=t.stringToChars(b),r=g.rules,i=g.udts;const O=x.toLowerCase();let S;for(const e in r)if(r.hasOwnProperty(e)&&O===r[e].lower){S=r[e].index;break}if(void 0===S)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(a=[],l=[],t=0;t<r.length;t+=1)a[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const c=[];for(t=0;t<r.length;t+=1)c.push(r[t].lower);for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(const n in s.callbacks)if(s.callbacks.hasOwnProperty(n)){if(t=c.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=s.callbacks[n]?s.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<r.length?a[t]=o:l[t-r.length]=o}})(),s.trace&&s.trace.init(r,i,c),s.stats&&s.stats.init(r,i),s.ast&&s.ast.init(r,i,c),u=w,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(y.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:j=!1;break;case e.EMPTY:case e.MATCH:j=y.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:j,state:y.state,stateName:e.idName(y.state),length:c.length,matched:y.phraseLength,maxMatched:f,maxTreeDepth:d,nodeHits:m}};const g=(t,s,r,i)=>{if(s.phraseLength>r){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${r}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},x=(t,a)=>{let h,d,m;const f=o[t],g=i[f.index];y.UdtIndex=g.index,p||(m=s.ast&&s.ast.udtDefined(f.index),m&&(d=r.length+f.index,h=s.ast.getLength(),s.ast.down(d,g.name)));const x=c.length-a;l[f.index](y,c,a,u),((t,s,r)=>{if(s.phraseLength>r){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${r}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,y,x),p||m&&(y.state===e.NOMATCH?s.ast.setLength(h):s.ast.up(d,g.name,a,y.phraseLength))},v=(t,i)=>{const l=`${n}opExecute(): `,b=o[t];switch(m+=1,h>d&&(d=h),h+=1,y.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const n=o[t];for(let t=0;t<n.children.length&&(v(n.children[t],s),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,n)=>{let r,i,c,a;const l=o[t];s.ast&&(i=s.ast.getLength()),r=!0,c=n,a=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],c),y.state===e.NOMATCH){r=!1;break}c+=y.phraseLength,a+=y.phraseLength}r?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,n)=>{let r,i,a,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=n,a=0,l=0,s.ast&&(r=s.ast.getLength());!(i>=c.length)&&(v(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,a+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,s.ast&&s.ast.setLength(r))})(t,i);break;case e.RNM:((t,n)=>{let i,l,h;const d=o[t],m=r[d.index],f=a[m.index];if(p||(l=s.ast&&s.ast.ruleDefined(d.index),l&&(i=s.ast.getLength(),s.ast.down(d.index,r[d.index].name))),f){const t=c.length-n;f(y,c,n,u),g(m,y,t,!0),y.state===e.ACTIVE&&(h=o,o=m.opcodes,v(0,n),o=h,f(y,c,n,u),g(m,y,t,!1))}else h=o,o=m.opcodes,v(0,n,y),o=h;p||l&&(y.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(d.index,m.name,n,y.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const n=o[t];y.state=e.NOMATCH,s<c.length&&n.min<=c[s]&&c[s]<=n.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const n=o[t],r=n.string.length;if(y.state=e.NOMATCH,s+r<=c.length){for(let e=0;e<r;e+=1)if(c[s+e]!==n.string[e])return;y.state=e.MATCH,y.phraseLength=r}})(t,i);break;case e.TLS:((t,s)=>{let n;const r=o[t];y.state=e.NOMATCH;const i=r.string.length;if(0!==i){if(s+i<=c.length){for(let e=0;e<i;e+=1)if(n=c[s+e],n>=65&&n<=90&&(n+=32),n!==r.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:x(t,i);break;case e.AND:((t,s)=>{switch(p+=1,v(t+1,s),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(p+=1,v(t+1,s),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>f&&(f=i+y.phraseLength),s.stats&&s.stats.collect(b,y),s.trace&&s.trace.up(b,y.state,i,y.phraseLength),h-=1}},An={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,s)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===s){n=e.slice(t);break}if(s<=0)return"";n=e.slice(t,t+s);break}return String.fromCodePoint(...n)}},Fn={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Fn.ALT:return"ALT";case Fn.CAT:return"CAT";case Fn.REP:return"REP";case Fn.RNM:return"RNM";case Fn.TRG:return"TRG";case Fn.TBS:return"TBS";case Fn.TLS:return"TLS";case Fn.UDT:return"UDT";case Fn.AND:return"AND";case Fn.NOT:return"NOT";case Fn.ACTIVE:return"ACTIVE";case Fn.EMPTY:return"EMPTY";case Fn.MATCH:return"MATCH";case Fn.NOMATCH:return"NOMATCH";case Fn.SEM_PRE:return"SEM_PRE";case Fn.SEM_POST:return"SEM_POST";case Fn.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Pn(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class Cn extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const In=Cn;new Pn;new Pn,new kn,new Pn,new kn,new Pn,new kn,new Pn,new kn;const Mn=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const Tn=class extends In{},$n=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map(e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return Mn(String(e))}).join("/")}`}catch(t){throw new Tn("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class Dn extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const _n=Dn;new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"jsonpath-query",lower:"jsonpath-query",index:0,isBkr:!1},this.rules[1]={name:"segments",lower:"segments",index:1,isBkr:!1},this.rules[2]={name:"B",lower:"b",index:2,isBkr:!1},this.rules[3]={name:"S",lower:"s",index:3,isBkr:!1},this.rules[4]={name:"root-identifier",lower:"root-identifier",index:4,isBkr:!1},this.rules[5]={name:"selector",lower:"selector",index:5,isBkr:!1},this.rules[6]={name:"name-selector",lower:"name-selector",index:6,isBkr:!1},this.rules[7]={name:"string-literal",lower:"string-literal",index:7,isBkr:!1},this.rules[8]={name:"double-quoted",lower:"double-quoted",index:8,isBkr:!1},this.rules[9]={name:"single-quoted",lower:"single-quoted",index:9,isBkr:!1},this.rules[10]={name:"ESC",lower:"esc",index:10,isBkr:!1},this.rules[11]={name:"unescaped",lower:"unescaped",index:11,isBkr:!1},this.rules[12]={name:"escapable",lower:"escapable",index:12,isBkr:!1},this.rules[13]={name:"hexchar",lower:"hexchar",index:13,isBkr:!1},this.rules[14]={name:"non-surrogate",lower:"non-surrogate",index:14,isBkr:!1},this.rules[15]={name:"high-surrogate",lower:"high-surrogate",index:15,isBkr:!1},this.rules[16]={name:"low-surrogate",lower:"low-surrogate",index:16,isBkr:!1},this.rules[17]={name:"HEXDIG",lower:"hexdig",index:17,isBkr:!1},this.rules[18]={name:"wildcard-selector",lower:"wildcard-selector",index:18,isBkr:!1},this.rules[19]={name:"index-selector",lower:"index-selector",index:19,isBkr:!1},this.rules[20]={name:"int",lower:"int",index:20,isBkr:!1},this.rules[21]={name:"DIGIT1",lower:"digit1",index:21,isBkr:!1},this.rules[22]={name:"slice-selector",lower:"slice-selector",index:22,isBkr:!1},this.rules[23]={name:"start",lower:"start",index:23,isBkr:!1},this.rules[24]={name:"end",lower:"end",index:24,isBkr:!1},this.rules[25]={name:"step",lower:"step",index:25,isBkr:!1},this.rules[26]={name:"filter-selector",lower:"filter-selector",index:26,isBkr:!1},this.rules[27]={name:"logical-expr",lower:"logical-expr",index:27,isBkr:!1},this.rules[28]={name:"logical-or-expr",lower:"logical-or-expr",index:28,isBkr:!1},this.rules[29]={name:"logical-and-expr",lower:"logical-and-expr",index:29,isBkr:!1},this.rules[30]={name:"basic-expr",lower:"basic-expr",index:30,isBkr:!1},this.rules[31]={name:"paren-expr",lower:"paren-expr",index:31,isBkr:!1},this.rules[32]={name:"logical-not-op",lower:"logical-not-op",index:32,isBkr:!1},this.rules[33]={name:"test-expr",lower:"test-expr",index:33,isBkr:!1},this.rules[34]={name:"filter-query",lower:"filter-query",index:34,isBkr:!1},this.rules[35]={name:"rel-query",lower:"rel-query",index:35,isBkr:!1},this.rules[36]={name:"current-node-identifier",lower:"current-node-identifier",index:36,isBkr:!1},this.rules[37]={name:"comparison-expr",lower:"comparison-expr",index:37,isBkr:!1},this.rules[38]={name:"literal",lower:"literal",index:38,isBkr:!1},this.rules[39]={name:"comparable",lower:"comparable",index:39,isBkr:!1},this.rules[40]={name:"comparison-op",lower:"comparison-op",index:40,isBkr:!1},this.rules[41]={name:"singular-query",lower:"singular-query",index:41,isBkr:!1},this.rules[42]={name:"rel-singular-query",lower:"rel-singular-query",index:42,isBkr:!1},this.rules[43]={name:"abs-singular-query",lower:"abs-singular-query",index:43,isBkr:!1},this.rules[44]={name:"singular-query-segments",lower:"singular-query-segments",index:44,isBkr:!1},this.rules[45]={name:"name-segment",lower:"name-segment",index:45,isBkr:!1},this.rules[46]={name:"index-segment",lower:"index-segment",index:46,isBkr:!1},this.rules[47]={name:"number",lower:"number",index:47,isBkr:!1},this.rules[48]={name:"frac",lower:"frac",index:48,isBkr:!1},this.rules[49]={name:"exp",lower:"exp",index:49,isBkr:!1},this.rules[50]={name:"true",lower:"true",index:50,isBkr:!1},this.rules[51]={name:"false",lower:"false",index:51,isBkr:!1},this.rules[52]={name:"null",lower:"null",index:52,isBkr:!1},this.rules[53]={name:"function-name",lower:"function-name",index:53,isBkr:!1},this.rules[54]={name:"function-name-first",lower:"function-name-first",index:54,isBkr:!1},this.rules[55]={name:"function-name-char",lower:"function-name-char",index:55,isBkr:!1},this.rules[56]={name:"LCALPHA",lower:"lcalpha",index:56,isBkr:!1},this.rules[57]={name:"function-expr",lower:"function-expr",index:57,isBkr:!1},this.rules[58]={name:"function-argument",lower:"function-argument",index:58,isBkr:!1},this.rules[59]={name:"segment",lower:"segment",index:59,isBkr:!1},this.rules[60]={name:"child-segment",lower:"child-segment",index:60,isBkr:!1},this.rules[61]={name:"bracketed-selection",lower:"bracketed-selection",index:61,isBkr:!1},this.rules[62]={name:"member-name-shorthand",lower:"member-name-shorthand",index:62,isBkr:!1},this.rules[63]={name:"name-first",lower:"name-first",index:63,isBkr:!1},this.rules[64]={name:"name-char",lower:"name-char",index:64,isBkr:!1},this.rules[65]={name:"DIGIT",lower:"digit",index:65,isBkr:!1},this.rules[66]={name:"ALPHA",lower:"alpha",index:66,isBkr:!1},this.rules[67]={name:"descendant-segment",lower:"descendant-segment",index:67,isBkr:!1},this.rules[68]={name:"normalized-path",lower:"normalized-path",index:68,isBkr:!1},this.rules[69]={name:"normal-index-segment",lower:"normal-index-segment",index:69,isBkr:!1},this.rules[70]={name:"normal-selector",lower:"normal-selector",index:70,isBkr:!1},this.rules[71]={name:"normal-name-selector",lower:"normal-name-selector",index:71,isBkr:!1},this.rules[72]={name:"normal-single-quoted",lower:"normal-single-quoted",index:72,isBkr:!1},this.rules[73]={name:"normal-unescaped",lower:"normal-unescaped",index:73,isBkr:!1},this.rules[74]={name:"normal-escapable",lower:"normal-escapable",index:74,isBkr:!1},this.rules[75]={name:"normal-hexchar",lower:"normal-hexchar",index:75,isBkr:!1},this.rules[76]={name:"normal-HEXDIG",lower:"normal-hexdig",index:76,isBkr:!1},this.rules[77]={name:"normal-index-selector",lower:"normal-index-selector",index:77,isBkr:!1},this.rules[78]={name:"dot-prefix",lower:"dot-prefix",index:78,isBkr:!1},this.rules[79]={name:"double-dot-prefix",lower:"double-dot-prefix",index:79,isBkr:!1},this.rules[80]={name:"left-bracket",lower:"left-bracket",index:80,isBkr:!1},this.rules[81]={name:"right-bracket",lower:"right-bracket",index:81,isBkr:!1},this.rules[82]={name:"left-paren",lower:"left-paren",index:82,isBkr:!1},this.rules[83]={name:"right-paren",lower:"right-paren",index:83,isBkr:!1},this.rules[84]={name:"comma",lower:"comma",index:84,isBkr:!1},this.rules[85]={name:"colon",lower:"colon",index:85,isBkr:!1},this.rules[86]={name:"dquote",lower:"dquote",index:86,isBkr:!1},this.rules[87]={name:"squote",lower:"squote",index:87,isBkr:!1},this.rules[88]={name:"questionmark",lower:"questionmark",index:88,isBkr:!1},this.rules[89]={name:"disjunction",lower:"disjunction",index:89,isBkr:!1},this.rules[90]={name:"conjunction",lower:"conjunction",index:90,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:4},this.rules[0].opcodes[2]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:2,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:59},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[2].opcodes[1]={type:6,string:[32]},this.rules[2].opcodes[2]={type:6,string:[9]},this.rules[2].opcodes[3]={type:6,string:[10]},this.rules[2].opcodes[4]={type:6,string:[13]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:2},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:7,string:[36]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[5].opcodes[1]={type:4,index:6},this.rules[5].opcodes[2]={type:4,index:18},this.rules[5].opcodes[3]={type:4,index:22},this.rules[5].opcodes[4]={type:4,index:19},this.rules[5].opcodes[5]={type:4,index:26},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,6]},this.rules[7].opcodes[1]={type:2,children:[2,3,5]},this.rules[7].opcodes[2]={type:4,index:86},this.rules[7].opcodes[3]={type:3,min:0,max:1/0},this.rules[7].opcodes[4]={type:4,index:8},this.rules[7].opcodes[5]={type:4,index:86},this.rules[7].opcodes[6]={type:2,children:[7,8,10]},this.rules[7].opcodes[7]={type:4,index:87},this.rules[7].opcodes[8]={type:3,min:0,max:1/0},this.rules[7].opcodes[9]={type:4,index:9},this.rules[7].opcodes[10]={type:4,index:87},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3,6]},this.rules[8].opcodes[1]={type:4,index:11},this.rules[8].opcodes[2]={type:6,string:[39]},this.rules[8].opcodes[3]={type:2,children:[4,5]},this.rules[8].opcodes[4]={type:4,index:10},this.rules[8].opcodes[5]={type:6,string:[34]},this.rules[8].opcodes[6]={type:2,children:[7,8]},this.rules[8].opcodes[7]={type:4,index:10},this.rules[8].opcodes[8]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,6]},this.rules[9].opcodes[1]={type:4,index:11},this.rules[9].opcodes[2]={type:6,string:[34]},this.rules[9].opcodes[3]={type:2,children:[4,5]},this.rules[9].opcodes[4]={type:4,index:10},this.rules[9].opcodes[5]={type:6,string:[39]},this.rules[9].opcodes[6]={type:2,children:[7,8]},this.rules[9].opcodes[7]={type:4,index:10},this.rules[9].opcodes[8]={type:4,index:12},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:6,string:[92]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[11].opcodes[1]={type:5,min:32,max:33},this.rules[11].opcodes[2]={type:5,min:35,max:38},this.rules[11].opcodes[3]={type:5,min:40,max:91},this.rules[11].opcodes[4]={type:5,min:93,max:55295},this.rules[11].opcodes[5]={type:5,min:57344,max:1114111},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8]},this.rules[12].opcodes[1]={type:6,string:[98]},this.rules[12].opcodes[2]={type:6,string:[102]},this.rules[12].opcodes[3]={type:6,string:[110]},this.rules[12].opcodes[4]={type:6,string:[114]},this.rules[12].opcodes[5]={type:6,string:[116]},this.rules[12].opcodes[6]={type:7,string:[47]},this.rules[12].opcodes[7]={type:7,string:[92]},this.rules[12].opcodes[8]={type:2,children:[9,10]},this.rules[12].opcodes[9]={type:6,string:[117]},this.rules[12].opcodes[10]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2]},this.rules[13].opcodes[1]={type:4,index:14},this.rules[13].opcodes[2]={type:2,children:[3,4,5,6]},this.rules[13].opcodes[3]={type:4,index:15},this.rules[13].opcodes[4]={type:7,string:[92]},this.rules[13].opcodes[5]={type:6,string:[117]},this.rules[13].opcodes[6]={type:4,index:16},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:1,children:[1,11]},this.rules[14].opcodes[1]={type:2,children:[2,9]},this.rules[14].opcodes[2]={type:1,children:[3,4,5,6,7,8]},this.rules[14].opcodes[3]={type:4,index:65},this.rules[14].opcodes[4]={type:7,string:[97]},this.rules[14].opcodes[5]={type:7,string:[98]},this.rules[14].opcodes[6]={type:7,string:[99]},this.rules[14].opcodes[7]={type:7,string:[101]},this.rules[14].opcodes[8]={type:7,string:[102]},this.rules[14].opcodes[9]={type:3,min:3,max:3},this.rules[14].opcodes[10]={type:4,index:17},this.rules[14].opcodes[11]={type:2,children:[12,13,14]},this.rules[14].opcodes[12]={type:7,string:[100]},this.rules[14].opcodes[13]={type:5,min:48,max:55},this.rules[14].opcodes[14]={type:3,min:2,max:2},this.rules[14].opcodes[15]={type:4,index:17},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2,7]},this.rules[15].opcodes[1]={type:7,string:[100]},this.rules[15].opcodes[2]={type:1,children:[3,4,5,6]},this.rules[15].opcodes[3]={type:7,string:[56]},this.rules[15].opcodes[4]={type:7,string:[57]},this.rules[15].opcodes[5]={type:7,string:[97]},this.rules[15].opcodes[6]={type:7,string:[98]},this.rules[15].opcodes[7]={type:3,min:2,max:2},this.rules[15].opcodes[8]={type:4,index:17},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:2,children:[1,2,7]},this.rules[16].opcodes[1]={type:7,string:[100]},this.rules[16].opcodes[2]={type:1,children:[3,4,5,6]},this.rules[16].opcodes[3]={type:7,string:[99]},this.rules[16].opcodes[4]={type:7,string:[100]},this.rules[16].opcodes[5]={type:7,string:[101]},this.rules[16].opcodes[6]={type:7,string:[102]},this.rules[16].opcodes[7]={type:3,min:2,max:2},this.rules[16].opcodes[8]={type:4,index:17},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[17].opcodes[1]={type:4,index:65},this.rules[17].opcodes[2]={type:7,string:[97]},this.rules[17].opcodes[3]={type:7,string:[98]},this.rules[17].opcodes[4]={type:7,string:[99]},this.rules[17].opcodes[5]={type:7,string:[100]},this.rules[17].opcodes[6]={type:7,string:[101]},this.rules[17].opcodes[7]={type:7,string:[102]},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:7,string:[42]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:4,index:20},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,2]},this.rules[20].opcodes[1]={type:7,string:[48]},this.rules[20].opcodes[2]={type:2,children:[3,5,6]},this.rules[20].opcodes[3]={type:3,min:0,max:1},this.rules[20].opcodes[4]={type:7,string:[45]},this.rules[20].opcodes[5]={type:4,index:21},this.rules[20].opcodes[6]={type:3,min:0,max:1/0},this.rules[20].opcodes[7]={type:4,index:65},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:5,min:49,max:57},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:2,children:[1,5,6,7,11]},this.rules[22].opcodes[1]={type:3,min:0,max:1},this.rules[22].opcodes[2]={type:2,children:[3,4]},this.rules[22].opcodes[3]={type:4,index:23},this.rules[22].opcodes[4]={type:4,index:3},this.rules[22].opcodes[5]={type:4,index:85},this.rules[22].opcodes[6]={type:4,index:3},this.rules[22].opcodes[7]={type:3,min:0,max:1},this.rules[22].opcodes[8]={type:2,children:[9,10]},this.rules[22].opcodes[9]={type:4,index:24},this.rules[22].opcodes[10]={type:4,index:3},this.rules[22].opcodes[11]={type:3,min:0,max:1},this.rules[22].opcodes[12]={type:2,children:[13,14]},this.rules[22].opcodes[13]={type:4,index:85},this.rules[22].opcodes[14]={type:3,min:0,max:1},this.rules[22].opcodes[15]={type:2,children:[16,17]},this.rules[22].opcodes[16]={type:4,index:3},this.rules[22].opcodes[17]={type:4,index:25},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:4,index:20},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:4,index:20},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:4,index:20},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:2,children:[1,2,3]},this.rules[26].opcodes[1]={type:4,index:88},this.rules[26].opcodes[2]={type:4,index:3},this.rules[26].opcodes[3]={type:4,index:27},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:4,index:28},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:2,children:[1,2]},this.rules[28].opcodes[1]={type:4,index:29},this.rules[28].opcodes[2]={type:3,min:0,max:1/0},this.rules[28].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[28].opcodes[4]={type:4,index:3},this.rules[28].opcodes[5]={type:4,index:89},this.rules[28].opcodes[6]={type:4,index:3},this.rules[28].opcodes[7]={type:4,index:29},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:2,children:[1,2]},this.rules[29].opcodes[1]={type:4,index:30},this.rules[29].opcodes[2]={type:3,min:0,max:1/0},this.rules[29].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[29].opcodes[4]={type:4,index:3},this.rules[29].opcodes[5]={type:4,index:90},this.rules[29].opcodes[6]={type:4,index:3},this.rules[29].opcodes[7]={type:4,index:30},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:1,children:[1,2,3]},this.rules[30].opcodes[1]={type:4,index:31},this.rules[30].opcodes[2]={type:4,index:37},this.rules[30].opcodes[3]={type:4,index:33},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:2,children:[1,5,6,7,8,9]},this.rules[31].opcodes[1]={type:3,min:0,max:1},this.rules[31].opcodes[2]={type:2,children:[3,4]},this.rules[31].opcodes[3]={type:4,index:32},this.rules[31].opcodes[4]={type:4,index:3},this.rules[31].opcodes[5]={type:4,index:82},this.rules[31].opcodes[6]={type:4,index:3},this.rules[31].opcodes[7]={type:4,index:27},this.rules[31].opcodes[8]={type:4,index:3},this.rules[31].opcodes[9]={type:4,index:83},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:7,string:[33]},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:2,children:[1,5]},this.rules[33].opcodes[1]={type:3,min:0,max:1},this.rules[33].opcodes[2]={type:2,children:[3,4]},this.rules[33].opcodes[3]={type:4,index:32},this.rules[33].opcodes[4]={type:4,index:3},this.rules[33].opcodes[5]={type:1,children:[6,7]},this.rules[33].opcodes[6]={type:4,index:34},this.rules[33].opcodes[7]={type:4,index:57},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:1,children:[1,2]},this.rules[34].opcodes[1]={type:4,index:35},this.rules[34].opcodes[2]={type:4,index:0},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:2,children:[1,2]},this.rules[35].opcodes[1]={type:4,index:36},this.rules[35].opcodes[2]={type:4,index:1},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:7,string:[64]},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:2,children:[1,2,3,4,5]},this.rules[37].opcodes[1]={type:4,index:39},this.rules[37].opcodes[2]={type:4,index:3},this.rules[37].opcodes[3]={type:4,index:40},this.rules[37].opcodes[4]={type:4,index:3},this.rules[37].opcodes[5]={type:4,index:39},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[38].opcodes[1]={type:4,index:47},this.rules[38].opcodes[2]={type:4,index:7},this.rules[38].opcodes[3]={type:4,index:50},this.rules[38].opcodes[4]={type:4,index:51},this.rules[38].opcodes[5]={type:4,index:52},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:1,children:[1,2,3]},this.rules[39].opcodes[1]={type:4,index:41},this.rules[39].opcodes[2]={type:4,index:57},this.rules[39].opcodes[3]={type:4,index:38},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[40].opcodes[1]={type:7,string:[61,61]},this.rules[40].opcodes[2]={type:7,string:[33,61]},this.rules[40].opcodes[3]={type:7,string:[60,61]},this.rules[40].opcodes[4]={type:7,string:[62,61]},this.rules[40].opcodes[5]={type:7,string:[60]},this.rules[40].opcodes[6]={type:7,string:[62]},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:1,children:[1,2]},this.rules[41].opcodes[1]={type:4,index:42},this.rules[41].opcodes[2]={type:4,index:43},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:2,children:[1,2]},this.rules[42].opcodes[1]={type:4,index:36},this.rules[42].opcodes[2]={type:4,index:44},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:2,children:[1,2]},this.rules[43].opcodes[1]={type:4,index:4},this.rules[43].opcodes[2]={type:4,index:44},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:3,min:0,max:1/0},this.rules[44].opcodes[1]={type:2,children:[2,3]},this.rules[44].opcodes[2]={type:4,index:3},this.rules[44].opcodes[3]={type:1,children:[4,5]},this.rules[44].opcodes[4]={type:4,index:45},this.rules[44].opcodes[5]={type:4,index:46},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:1,children:[1,5]},this.rules[45].opcodes[1]={type:2,children:[2,3,4]},this.rules[45].opcodes[2]={type:4,index:80},this.rules[45].opcodes[3]={type:4,index:6},this.rules[45].opcodes[4]={type:4,index:81},this.rules[45].opcodes[5]={type:2,children:[6,7]},this.rules[45].opcodes[6]={type:4,index:78},this.rules[45].opcodes[7]={type:4,index:62},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:2,children:[1,2,3]},this.rules[46].opcodes[1]={type:4,index:80},this.rules[46].opcodes[2]={type:4,index:19},this.rules[46].opcodes[3]={type:4,index:81},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:2,children:[1,4,6]},this.rules[47].opcodes[1]={type:1,children:[2,3]},this.rules[47].opcodes[2]={type:4,index:20},this.rules[47].opcodes[3]={type:7,string:[45,48]},this.rules[47].opcodes[4]={type:3,min:0,max:1},this.rules[47].opcodes[5]={type:4,index:48},this.rules[47].opcodes[6]={type:3,min:0,max:1},this.rules[47].opcodes[7]={type:4,index:49},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:2,children:[1,2]},this.rules[48].opcodes[1]={type:7,string:[46]},this.rules[48].opcodes[2]={type:3,min:1,max:1/0},this.rules[48].opcodes[3]={type:4,index:65},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:2,children:[1,2,6]},this.rules[49].opcodes[1]={type:7,string:[101]},this.rules[49].opcodes[2]={type:3,min:0,max:1},this.rules[49].opcodes[3]={type:1,children:[4,5]},this.rules[49].opcodes[4]={type:7,string:[45]},this.rules[49].opcodes[5]={type:7,string:[43]},this.rules[49].opcodes[6]={type:3,min:1,max:1/0},this.rules[49].opcodes[7]={type:4,index:65},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:6,string:[116,114,117,101]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:6,string:[102,97,108,115,101]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:6,string:[110,117,108,108]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:2,children:[1,2]},this.rules[53].opcodes[1]={type:4,index:54},this.rules[53].opcodes[2]={type:3,min:0,max:1/0},this.rules[53].opcodes[3]={type:4,index:55},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:4,index:56},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:1,children:[1,2,3]},this.rules[55].opcodes[1]={type:4,index:54},this.rules[55].opcodes[2]={type:7,string:[95]},this.rules[55].opcodes[3]={type:4,index:65},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:5,min:97,max:122},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:2,children:[1,2,3,4,13,14]},this.rules[57].opcodes[1]={type:4,index:53},this.rules[57].opcodes[2]={type:4,index:82},this.rules[57].opcodes[3]={type:4,index:3},this.rules[57].opcodes[4]={type:3,min:0,max:1},this.rules[57].opcodes[5]={type:2,children:[6,7]},this.rules[57].opcodes[6]={type:4,index:58},this.rules[57].opcodes[7]={type:3,min:0,max:1/0},this.rules[57].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[57].opcodes[9]={type:4,index:3},this.rules[57].opcodes[10]={type:4,index:84},this.rules[57].opcodes[11]={type:4,index:3},this.rules[57].opcodes[12]={type:4,index:58},this.rules[57].opcodes[13]={type:4,index:3},this.rules[57].opcodes[14]={type:4,index:83},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[58].opcodes[1]={type:4,index:27},this.rules[58].opcodes[2]={type:4,index:34},this.rules[58].opcodes[3]={type:4,index:57},this.rules[58].opcodes[4]={type:4,index:38},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:1,children:[1,2]},this.rules[59].opcodes[1]={type:4,index:60},this.rules[59].opcodes[2]={type:4,index:67},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:1,children:[1,2]},this.rules[60].opcodes[1]={type:4,index:61},this.rules[60].opcodes[2]={type:2,children:[3,4]},this.rules[60].opcodes[3]={type:4,index:78},this.rules[60].opcodes[4]={type:1,children:[5,6]},this.rules[60].opcodes[5]={type:4,index:18},this.rules[60].opcodes[6]={type:4,index:62},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:2,children:[1,2,3,4,10,11]},this.rules[61].opcodes[1]={type:4,index:80},this.rules[61].opcodes[2]={type:4,index:3},this.rules[61].opcodes[3]={type:4,index:5},this.rules[61].opcodes[4]={type:3,min:0,max:1/0},this.rules[61].opcodes[5]={type:2,children:[6,7,8,9]},this.rules[61].opcodes[6]={type:4,index:3},this.rules[61].opcodes[7]={type:4,index:84},this.rules[61].opcodes[8]={type:4,index:3},this.rules[61].opcodes[9]={type:4,index:5},this.rules[61].opcodes[10]={type:4,index:3},this.rules[61].opcodes[11]={type:4,index:81},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:2,children:[1,2]},this.rules[62].opcodes[1]={type:4,index:63},this.rules[62].opcodes[2]={type:3,min:0,max:1/0},this.rules[62].opcodes[3]={type:4,index:64},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[63].opcodes[1]={type:4,index:66},this.rules[63].opcodes[2]={type:7,string:[95]},this.rules[63].opcodes[3]={type:5,min:128,max:55295},this.rules[63].opcodes[4]={type:5,min:57344,max:1114111},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:1,children:[1,2]},this.rules[64].opcodes[1]={type:4,index:63},this.rules[64].opcodes[2]={type:4,index:65},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:5,min:48,max:57},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:1,children:[1,2]},this.rules[66].opcodes[1]={type:5,min:65,max:90},this.rules[66].opcodes[2]={type:5,min:97,max:122},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:2,children:[1,2]},this.rules[67].opcodes[1]={type:4,index:79},this.rules[67].opcodes[2]={type:1,children:[3,4,5]},this.rules[67].opcodes[3]={type:4,index:61},this.rules[67].opcodes[4]={type:4,index:18},this.rules[67].opcodes[5]={type:4,index:62},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:2,children:[1,2]},this.rules[68].opcodes[1]={type:4,index:4},this.rules[68].opcodes[2]={type:3,min:0,max:1/0},this.rules[68].opcodes[3]={type:4,index:69},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:2,children:[1,2,3]},this.rules[69].opcodes[1]={type:4,index:80},this.rules[69].opcodes[2]={type:4,index:70},this.rules[69].opcodes[3]={type:4,index:81},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:1,children:[1,2]},this.rules[70].opcodes[1]={type:4,index:71},this.rules[70].opcodes[2]={type:4,index:77},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:2,children:[1,2,4]},this.rules[71].opcodes[1]={type:4,index:87},this.rules[71].opcodes[2]={type:3,min:0,max:1/0},this.rules[71].opcodes[3]={type:4,index:72},this.rules[71].opcodes[4]={type:4,index:87},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:1,children:[1,2]},this.rules[72].opcodes[1]={type:4,index:73},this.rules[72].opcodes[2]={type:2,children:[3,4]},this.rules[72].opcodes[3]={type:4,index:10},this.rules[72].opcodes[4]={type:4,index:74},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[73].opcodes[1]={type:5,min:32,max:38},this.rules[73].opcodes[2]={type:5,min:40,max:91},this.rules[73].opcodes[3]={type:5,min:93,max:55295},this.rules[73].opcodes[4]={type:5,min:57344,max:1114111},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8]},this.rules[74].opcodes[1]={type:6,string:[98]},this.rules[74].opcodes[2]={type:6,string:[102]},this.rules[74].opcodes[3]={type:6,string:[110]},this.rules[74].opcodes[4]={type:6,string:[114]},this.rules[74].opcodes[5]={type:6,string:[116]},this.rules[74].opcodes[6]={type:7,string:[39]},this.rules[74].opcodes[7]={type:7,string:[92]},this.rules[74].opcodes[8]={type:2,children:[9,10]},this.rules[74].opcodes[9]={type:6,string:[117]},this.rules[74].opcodes[10]={type:4,index:75},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:2,children:[1,2,3]},this.rules[75].opcodes[1]={type:7,string:[48]},this.rules[75].opcodes[2]={type:7,string:[48]},this.rules[75].opcodes[3]={type:1,children:[4,7,10,13]},this.rules[75].opcodes[4]={type:2,children:[5,6]},this.rules[75].opcodes[5]={type:7,string:[48]},this.rules[75].opcodes[6]={type:5,min:48,max:55},this.rules[75].opcodes[7]={type:2,children:[8,9]},this.rules[75].opcodes[8]={type:7,string:[48]},this.rules[75].opcodes[9]={type:6,string:[98]},this.rules[75].opcodes[10]={type:2,children:[11,12]},this.rules[75].opcodes[11]={type:7,string:[48]},this.rules[75].opcodes[12]={type:5,min:101,max:102},this.rules[75].opcodes[13]={type:2,children:[14,15]},this.rules[75].opcodes[14]={type:7,string:[49]},this.rules[75].opcodes[15]={type:4,index:76},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:1,children:[1,2]},this.rules[76].opcodes[1]={type:4,index:65},this.rules[76].opcodes[2]={type:5,min:97,max:102},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:7,string:[48]},this.rules[77].opcodes[2]={type:2,children:[3,4]},this.rules[77].opcodes[3]={type:4,index:21},this.rules[77].opcodes[4]={type:3,min:0,max:1/0},this.rules[77].opcodes[5]={type:4,index:65},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:7,string:[46]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:7,string:[46,46]},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:7,string:[91]},this.rules[81].opcodes=[],this.rules[81].opcodes[0]={type:7,string:[93]},this.rules[82].opcodes=[],this.rules[82].opcodes[0]={type:7,string:[40]},this.rules[83].opcodes=[],this.rules[83].opcodes[0]={type:7,string:[41]},this.rules[84].opcodes=[],this.rules[84].opcodes[0]={type:7,string:[44]},this.rules[85].opcodes=[],this.rules[85].opcodes[0]={type:7,string:[58]},this.rules[86].opcodes=[],this.rules[86].opcodes[0]={type:6,string:[34]},this.rules[87].opcodes=[],this.rules[87].opcodes[0]={type:6,string:[39]},this.rules[88].opcodes=[],this.rules[88].opcodes[0]={type:7,string:[63]},this.rules[89].opcodes=[],this.rules[89].opcodes[0]={type:7,string:[124,124]},this.rules[90].opcodes=[],this.rules[90].opcodes[0]={type:7,string:[38,38]},this.toString=function(){let e="";return e+="; JSONPath: Query Expressions for JSON\n",e+="; https://www.rfc-editor.org/rfc/rfc9535\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\n",e+="jsonpath-query = root-identifier segments\n",e+="segments = *(S segment)\n",e+="\n",e+="B = %x20 / ; Space\n",e+=" %x09 / ; Horizontal tab\n",e+=" %x0A / ; Line feed or New line\n",e+=" %x0D ; Carriage return\n",e+="S = *B ; optional blank space\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\n",e+='root-identifier = "$"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\n",e+="selector = name-selector /\n",e+=" wildcard-selector /\n",e+=" slice-selector /\n",e+=" index-selector /\n",e+=" filter-selector\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\n",e+="name-selector = string-literal\n",e+="\n",e+='string-literal = dquote *double-quoted dquote / ; "string", MODIFICATION: surrogate text rule used\n',e+=" squote *single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n",e+="\n",e+="double-quoted = unescaped /\n",e+=" %x27 / ; '\n",e+=' ESC %x22 / ; \\"\n',e+=" ESC escapable\n",e+="\n",e+="single-quoted = unescaped /\n",e+=' %x22 / ; "\n',e+=" ESC %x27 / ; \\'\n",e+=" ESC escapable\n",e+="\n",e+="ESC = %x5C ; \\ backslash\n",e+="\n",e+="unescaped = %x20-21 / ; see RFC 8259\n",e+=' ; omit 0x22 "\n',e+=" %x23-26 /\n",e+=" ; omit 0x27 '\n",e+=" %x28-5B /\n",e+=" ; omit 0x5C \\\n",e+=" %x5D-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="\n",e+="escapable = %x62 / ; b BS backspace U+0008\n",e+=" %x66 / ; f FF form feed U+000C\n",e+=" %x6E / ; n LF line feed U+000A\n",e+=" %x72 / ; r CR carriage return U+000D\n",e+=" %x74 / ; t HT horizontal tab U+0009\n",e+=' "/" / ; / slash (solidus) U+002F\n',e+=' "\\" / ; \\ backslash (reverse solidus) U+005C\n',e+=" (%x75 hexchar) ; uXXXX U+XXXX\n",e+="\n",e+="hexchar = non-surrogate /\n",e+=' (high-surrogate "\\" %x75 low-surrogate)\n',e+='non-surrogate = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /\n',e+=' ("D" %x30-37 2HEXDIG )\n',e+='high-surrogate = "D" ("8"/"9"/"A"/"B") 2HEXDIG\n',e+='low-surrogate = "D" ("C"/"D"/"E"/"F") 2HEXDIG\n',e+="\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\n",e+='wildcard-selector = "*"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\n",e+="index-selector = int ; decimal integer\n",e+="\n",e+='int = "0" /\n',e+=' (["-"] DIGIT1 *DIGIT) ; - optional\n',e+="DIGIT1 = %x31-39 ; 1-9 non-zero digit\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\n",e+="slice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="start = int ; included in selection\n",e+="end = int ; not included in selection\n",e+="step = int ; default: 1\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\n",e+="filter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="logical-expr = logical-or-expr\n",e+="logical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n",e+=" ; disjunction\n",e+=" ; binds less tightly than conjunction\n",e+="logical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n",e+=" ; conjunction\n",e+=" ; binds more tightly than disjunction\n",e+="\n",e+="basic-expr = paren-expr /\n",e+=" comparison-expr /\n",e+=" test-expr\n",e+="\n",e+="paren-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n",e+=" ; parenthesized expression\n",e+='logical-not-op = "!" ; logical NOT operator\n',e+="\n",e+="test-expr = [logical-not-op S]\n",e+=" (filter-query / ; existence/non-existence\n",e+=" function-expr) ; LogicalType or NodesType\n",e+="filter-query = rel-query / jsonpath-query\n",e+="rel-query = current-node-identifier segments\n",e+='current-node-identifier = "@"\n',e+="\n",e+="comparison-expr = comparable S comparison-op S comparable\n",e+="literal = number / string-literal /\n",e+=" true / false / null\n",e+="comparable = singular-query / ; singular query value\n",e+=" function-expr / ; ValueType\n",e+=" literal\n",e+=" ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\n",e+='comparison-op = "==" / "!=" /\n',e+=' "<=" / ">=" /\n',e+=' "<" / ">"\n',e+="\n",e+="singular-query = rel-singular-query / abs-singular-query\n",e+="rel-singular-query = current-node-identifier singular-query-segments\n",e+="abs-singular-query = root-identifier singular-query-segments\n",e+="singular-query-segments = *(S (name-segment / index-segment))\n",e+="name-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n",e+=" (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\n",e+="index-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n",e+="\n",e+='number = (int / "-0") [ frac ] [ exp ] ; decimal number\n',e+='frac = "." 1*DIGIT ; decimal fraction\n',e+='exp = "e" [ "-" / "+" ] 1*DIGIT ; decimal exponent\n',e+="true = %x74.72.75.65 ; true\n",e+="false = %x66.61.6c.73.65 ; false\n",e+="null = %x6e.75.6c.6c ; null\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\n",e+="function-name = function-name-first *function-name-char\n",e+="function-name-first = LCALPHA\n",e+='function-name-char = function-name-first / "_" / DIGIT\n',e+='LCALPHA = %x61-7A ; "a".."z"\n',e+="\n",e+="function-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n",e+=" *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\n",e+="function-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n",e+=" filter-query / ; (includes singular-query)\n",e+=" function-expr /\n",e+=" literal\n",e+="\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\n",e+="segment = child-segment / descendant-segment\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\n",e+="child-segment = bracketed-selection /\n",e+=" (dot-prefix ; MODIFICATION: surrogate text rule used\n",e+=" (wildcard-selector /\n",e+=" member-name-shorthand))\n",e+="\n",e+="bracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n",e+=" ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="member-name-shorthand = name-first *name-char\n",e+="name-first = ALPHA /\n",e+=' "_" /\n',e+=" %x80-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="name-char = name-first / DIGIT\n",e+="\n",e+="DIGIT = %x30-39 ; 0-9\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\n",e+="descendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n",e+=" wildcard-selector /\n",e+=" member-name-shorthand)\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\n",e+="normalized-path = root-identifier *(normal-index-segment)\n",e+="normal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\n",e+="normal-selector = normal-name-selector / normal-index-selector\n",e+="normal-name-selector = squote *normal-single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n",e+="normal-single-quoted = normal-unescaped /\n",e+=" ESC normal-escapable\n",e+="normal-unescaped = ; omit %x0-1F control codes\n",e+=" %x20-26 /\n",e+=" ; omit 0x27 '\n",e+=" %x28-5B /\n",e+=" ; omit 0x5C \\\n",e+=" %x5D-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="\n",e+="normal-escapable = %x62 / ; b BS backspace U+0008\n",e+=" %x66 / ; f FF form feed U+000C\n",e+=" %x6E / ; n LF line feed U+000A\n",e+=" %x72 / ; r CR carriage return U+000D\n",e+=" %x74 / ; t HT horizontal tab U+0009\n",e+=" \"'\" / ; ' apostrophe U+0027\n",e+=' "\\" / ; \\ backslash (reverse solidus) U+005C\n',e+=" (%x75 normal-hexchar)\n",e+=" ; certain values u00xx U+00XX\n",e+='normal-hexchar = "0" "0"\n',e+=" (\n",e+=' ("0" %x30-37) / ; "00"-"07"\n',e+=" ; omit U+0008-U+000A BS HT LF\n",e+=' ("0" %x62) / ; "0b"\n',e+=" ; omit U+000C-U+000D FF CR\n",e+=' ("0" %x65-66) / ; "0e"-"0f"\n',e+=' ("1" normal-HEXDIG)\n',e+=" )\n",e+='normal-HEXDIG = DIGIT / %x61-66 ; "0"-"9", "a"-"f"\n',e+='normal-index-selector = "0" / (DIGIT1 *DIGIT)\n',e+=" ; non-negative decimal integer\n",e+="\n",e+="; Surrogate named rules\n",e+='dot-prefix = "."\n',e+='double-dot-prefix = ".."\n',e+='left-bracket = "["\n',e+='right-bracket = "]"\n',e+='left-paren = "("\n',e+='right-paren = ")"\n',e+='comma = ","\n',e+='colon = ":"\n',e+='dquote = %x22 ; "\n',e+="squote = %x27 ; '\n",e+='questionmark = "?"\n',e+='disjunction = "||"\n',e+='conjunction = "&&"\n','; JSONPath: Query Expressions for JSON\n; https://www.rfc-editor.org/rfc/rfc9535\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\njsonpath-query = root-identifier segments\nsegments = *(S segment)\n\nB = %x20 / ; Space\n %x09 / ; Horizontal tab\n %x0A / ; Line feed or New line\n %x0D ; Carriage return\nS = *B ; optional blank space\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\nroot-identifier = "$"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\nselector = name-selector /\n wildcard-selector /\n slice-selector /\n index-selector /\n filter-selector\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\nname-selector = string-literal\n\nstring-literal = dquote *double-quoted dquote / ; "string", MODIFICATION: surrogate text rule used\n squote *single-quoted squote ; \'string\', MODIFICATION: surrogate text rule used\n\ndouble-quoted = unescaped /\n %x27 / ; \'\n ESC %x22 / ; \\"\n ESC escapable\n\nsingle-quoted = unescaped /\n %x22 / ; "\n ESC %x27 / ; \\\'\n ESC escapable\n\nESC = %x5C ; \\ backslash\n\nunescaped = %x20-21 / ; see RFC 8259\n ; omit 0x22 "\n %x23-26 /\n ; omit 0x27 \'\n %x28-5B /\n ; omit 0x5C \\\n %x5D-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\n\nescapable = %x62 / ; b BS backspace U+0008\n %x66 / ; f FF form feed U+000C\n %x6E / ; n LF line feed U+000A\n %x72 / ; r CR carriage return U+000D\n %x74 / ; t HT horizontal tab U+0009\n "/" / ; / slash (solidus) U+002F\n "\\" / ; \\ backslash (reverse solidus) U+005C\n (%x75 hexchar) ; uXXXX U+XXXX\n\nhexchar = non-surrogate /\n (high-surrogate "\\" %x75 low-surrogate)\nnon-surrogate = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /\n ("D" %x30-37 2HEXDIG )\nhigh-surrogate = "D" ("8"/"9"/"A"/"B") 2HEXDIG\nlow-surrogate = "D" ("C"/"D"/"E"/"F") 2HEXDIG\n\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\nwildcard-selector = "*"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\nindex-selector = int ; decimal integer\n\nint = "0" /\n (["-"] DIGIT1 *DIGIT) ; - optional\nDIGIT1 = %x31-39 ; 1-9 non-zero digit\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\nslice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n\nstart = int ; included in selection\nend = int ; not included in selection\nstep = int ; default: 1\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\nfilter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n\nlogical-expr = logical-or-expr\nlogical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n ; disjunction\n ; binds less tightly than conjunction\nlogical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n ; conjunction\n ; binds more tightly than disjunction\n\nbasic-expr = paren-expr /\n comparison-expr /\n test-expr\n\nparen-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n ; parenthesized expression\nlogical-not-op = "!" ; logical NOT operator\n\ntest-expr = [logical-not-op S]\n (filter-query / ; existence/non-existence\n function-expr) ; LogicalType or NodesType\nfilter-query = rel-query / jsonpath-query\nrel-query = current-node-identifier segments\ncurrent-node-identifier = "@"\n\ncomparison-expr = comparable S comparison-op S comparable\nliteral = number / string-literal /\n true / false / null\ncomparable = singular-query / ; singular query value\n function-expr / ; ValueType\n literal\n ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\ncomparison-op = "==" / "!=" /\n "<=" / ">=" /\n "<" / ">"\n\nsingular-query = rel-singular-query / abs-singular-query\nrel-singular-query = current-node-identifier singular-query-segments\nabs-singular-query = root-identifier singular-query-segments\nsingular-query-segments = *(S (name-segment / index-segment))\nname-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\nindex-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n\nnumber = (int / "-0") [ frac ] [ exp ] ; decimal number\nfrac = "." 1*DIGIT ; decimal fraction\nexp = "e" [ "-" / "+" ] 1*DIGIT ; decimal exponent\ntrue = %x74.72.75.65 ; true\nfalse = %x66.61.6c.73.65 ; false\nnull = %x6e.75.6c.6c ; null\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\nfunction-name = function-name-first *function-name-char\nfunction-name-first = LCALPHA\nfunction-name-char = function-name-first / "_" / DIGIT\nLCALPHA = %x61-7A ; "a".."z"\n\nfunction-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\nfunction-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n filter-query / ; (includes singular-query)\n function-expr /\n literal\n\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\nsegment = child-segment / descendant-segment\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\nchild-segment = bracketed-selection /\n (dot-prefix ; MODIFICATION: surrogate text rule used\n (wildcard-selector /\n member-name-shorthand))\n\nbracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n ; MODIFICATION: surrogate text rule used\n\nmember-name-shorthand = name-first *name-char\nname-first = ALPHA /\n "_" /\n %x80-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\nname-char = name-first / DIGIT\n\nDIGIT = %x30-39 ; 0-9\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\ndescendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n wildcard-selector /\n member-name-shorthand)\n\n; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\nnormalized-path = root-identifier *(normal-index-segment)\nnormal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\nnormal-selector = normal-name-selector / normal-index-selector\nnormal-name-selector = squote *normal-single-quoted squote ; \'string\', MODIFICATION: surrogate text rule used\nnormal-single-quoted = normal-unescaped /\n ESC normal-escapable\nnormal-unescaped = ; omit %x0-1F control codes\n %x20-26 /\n ; omit 0x27 \'\n %x28-5B /\n ; omit 0x5C \\\n %x5D-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\n\nnormal-escapable = %x62 / ; b BS backspace U+0008\n %x66 / ; f FF form feed U+000C\n %x6E / ; n LF line feed U+000A\n %x72 / ; r CR carriage return U+000D\n %x74 / ; t HT horizontal tab U+0009\n "\'" / ; \' apostrophe U+0027\n "\\" / ; \\ backslash (reverse solidus) U+005C\n (%x75 normal-hexchar)\n ; certain values u00xx U+00XX\nnormal-hexchar = "0" "0"\n (\n ("0" %x30-37) / ; "00"-"07"\n ; omit U+0008-U+000A BS HT LF\n ("0" %x62) / ; "0b"\n ; omit U+000C-U+000D FF CR\n ("0" %x65-66) / ; "0e"-"0f"\n ("1" normal-HEXDIG)\n )\nnormal-HEXDIG = DIGIT / %x61-66 ; "0"-"9", "a"-"f"\nnormal-index-selector = "0" / (DIGIT1 *DIGIT)\n ; non-negative decimal integer\n\n; Surrogate named rules\ndot-prefix = "."\ndouble-dot-prefix = ".."\nleft-bracket = "["\nright-bracket = "]"\nleft-paren = "("\nright-paren = ")"\ncomma = ","\ncolon = ":"\ndquote = %x22 ; "\nsquote = %x27 ; \'\nquestionmark = "?"\ndisjunction = "||"\nconjunction = "&&"\n'}};const Rn=class extends _n{},Nn=e=>{if(!Array.isArray(e))throw new Rn("Selectors must be an array, got: "+typeof e,{selectors:e});try{return`$${e.map(e=>{if("string"==typeof e)return`['${(e=>{if("string"!=typeof e)throw new TypeError("Selector must be a string");let t="";for(const s of e){const e=s.codePointAt(0);switch(e){case 8:t+="\\b";break;case 9:t+="\\t";break;case 10:t+="\\n";break;case 12:t+="\\f";break;case 13:t+="\\r";break;case 39:t+="\\'";break;case 92:t+="\\\\";break;default:t+=e<=31?`\\u${e.toString(16).padStart(4,"0")}`:s}}return t})(e)}']`;if("number"==typeof e){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Index selector must be a non-negative safe integer, got: ${e}`);return`[${e}]`}throw new TypeError("Selector must be a string or non-negative integer, got: "+typeof e)}).join("")}`}catch(t){throw new Rn("Failed to compile normalized JSONPath",{cause:t,selectors:e})}},qn=(e,t,s,n)=>{const{realm:r}=e,{value:i}=s;if(r.isObject(t)&&r.hasProperty(t,i)){n(r.getProperty(t,i),i)}},Bn=(e,t,s,n)=>{const{realm:r}=e,{value:i}=s;if(!r.isArray(t))return;const o=r.getLength(t),c=((e,t)=>e>=0?e:t+e)(i,o);if(c>=0&&c<o){n(r.getElement(t,c),c)}},Ln=(e,t,s,n)=>{const{realm:r}=e;for(const[e,s]of r.entries(t))n(s,e)},Vn=(e,t)=>e>=0?Math.min(e,t):Math.max(t+e,0),Un=(e,t,s,n)=>{const{realm:r}=e,{start:i,end:o,step:c}=s;if(!r.isArray(t))return;const a=((e,t,s,n)=>{const r=s??1;if(0===r)return null;let i,o;if(r>0){const s=0,r=n,c=null!==e?Vn(e,n):s,a=null!==t?Vn(t,n):r;i=Math.max(c,0),o=Math.min(a,n)}else{const s=n-1,r=-n-1,c=null!==e?e>=0?Math.min(e,n-1):Math.max(n+e,-1):s,a=null!==t?t>=0?Math.min(t,n-1):Math.max(n+t,-1):r;o=Math.min(c,n-1),i=Math.max(a,-1)}return{lower:i,upper:o,step:r}})(i,o,c,r.getLength(t));if(null===a)return;const{lower:l,upper:u,step:p}=a;if(p>0)for(let e=l;e<u;e+=p){n(r.getElement(t,e),e)}else for(let e=u;e>l;e+=p){n(r.getElement(t,e),e)}},Hn=(e,t,s,n)=>n.value,zn=(e,t,s)=>{const{realm:n}=e,{selector:r}=s;switch(r.type){case"NameSelector":{const{value:e}=r;return n.isObject(t)&&n.hasProperty(t,e)?n.getProperty(t,e):void 0}case"IndexSelector":{const{value:e}=r;if(!n.isArray(t))return;const s=n.getLength(t),i=e>=0?e:s+e;return i>=0&&i<s?n.getElement(t,i):void 0}default:return}},Gn=(e,t,s,n)=>{const{selectors:r}=s;for(const s of r)rr(e,t,s,n)},Xn=(e,t,s)=>{const n=[],r=e=>{n.push(e)},{selector:i}=s;switch(i.type){case"BracketedSelection":Gn(e,t,i,r);break;case"NameSelector":case"WildcardSelector":case"IndexSelector":case"SliceSelector":case"FilterSelector":rr(e,t,i,r)}return n},Jn=(e,t,s,n)=>{let r=s;for(const t of n){const s=[];if("DescendantSegment"===t.type){const n=r=>{const{realm:i}=e,o=Xn(e,r,t);s.push(...o);for(const[,e]of i.entries(r))n(e)};for(const e of r)n(e)}else for(const n of r){const r=Xn(e,n,t);s.push(...r)}r=s}return r},Kn=(e,t,s,n)=>{const{query:r}=n;let i;switch(r.type){case"RelQuery":i=((e,t,s,n)=>{const{segments:r}=n;return 0===r.length?[s]:Jn(e,0,[s],r)})(e,0,s,r);break;case"JsonPathQuery":i=((e,t,s,n)=>{const{segments:r}=n;return 0===r.length?[t]:Jn(e,0,[t],r)})(e,t,0,r);break;default:i=[]}return o=i,Object.defineProperty(o,"_isNodelist",{value:!0,enumerable:!1,writable:!1}),o;var o};let Wn;const Yn=(e,t,s,n)=>{const{name:r,arguments:i}=n,o=e.functions[r];if("function"!=typeof o)return;const c=i.map(n=>((e,t,s,n)=>{switch(n.type){case"Literal":case"RelSingularQuery":case"AbsSingularQuery":case"FunctionExpr":return Qn(e,t,s,n);case"FilterQuery":return Kn(e,t,s,n);case"TestExpr":return"FilterQuery"===n.expression.type?Kn(e,t,s,n.expression):"FunctionExpr"===n.expression.type?Qn(e,t,s,n.expression):Wn(e,t,s,n);case"LogicalOrExpr":case"LogicalAndExpr":case"LogicalNotExpr":case"ComparisonExpr":return Wn(e,t,s,n);default:return}})(e,t,s,n));return o(e.realm,...c)},Qn=(e,t,s,n)=>{switch(n.type){case"Literal":return Hn(e,t,s,n);case"RelSingularQuery":return((e,t,s,n)=>{let r=s;for(const t of n.segments)if(r=zn(e,r,t),void 0===r)return;return r})(e,0,s,n);case"AbsSingularQuery":return((e,t,s,n)=>{let r=t;for(const t of n.segments)if(r=zn(e,r,t),void 0===r)return;return r})(e,t,0,n);case"FunctionExpr":return Yn(e,t,s,n);default:return}},Zn=(e,t,s,n)=>{const{left:r,op:i,right:o}=n,c=Qn(e,t,s,r),a=Qn(e,t,s,o);return e.realm.compare(c,i,a)},er=e=>Array.isArray(e),tr=(e,t,s,n)=>{switch(n.type){case"LogicalOrExpr":return!!tr(e,t,s,n.left)||tr(e,t,s,n.right);case"LogicalAndExpr":return!!tr(e,t,s,n.left)&&tr(e,t,s,n.right);case"LogicalNotExpr":return!tr(e,t,s,n.expression);case"TestExpr":{const{expression:r}=n;if("FilterQuery"===r.type){return Kn(e,t,s,r).length>0}if("FunctionExpr"===r.type){const n=Yn(e,t,s,r);return"boolean"==typeof n?n:void 0!==n&&(er(n)?n.length>0:Boolean(n))}return!1}case"ComparisonExpr":return Zn(e,t,s,n);default:return!1}};Wn=tr;const sr=tr,nr=(e,t,s,n)=>{const{realm:r,root:i}=e,{expression:o}=s;for(const[s,c]of r.entries(t)){sr(e,i,c,o)&&n(c,s)}},rr=(e,t,s,n)=>{switch(s.type){case"NameSelector":qn(e,t,s,n);break;case"IndexSelector":Bn(e,t,s,n);break;case"WildcardSelector":Ln(e,t,s,n);break;case"SliceSelector":Un(e,t,s,n);break;case"FilterSelector":nr(e,t,s,n)}};new Map;class ir{node;key;index;parent;parentPath;inList;#e=!1;#t=!1;#s=!1;#n=!1;#r;#i=!1;constructor(e,t,s,n,r){this.node=e,this.parent=t,this.parentPath=s,this.key=n,this.index=r&&"number"==typeof n?n:void 0,this.inList=r}get shouldSkip(){return this.#e}get shouldStop(){return this.#t}get removed(){return this.#s}isRoot(){return null===this.parentPath}get depth(){let e=0,t=this.parentPath;for(;null!==t;)e+=1,t=t.parentPath;return e}getAncestry(){const e=[];let t=this.parentPath;for(;null!==t;)e.push(t),t=t.parentPath;return e}getAncestorNodes(){return this.getAncestry().map(e=>e.node)}getPathKeys(){const e=[];let t=this;for(;null!==t&&void 0!==t.key;){const{key:s,parent:n,parentPath:r}=t;if(xe(n)&&"value"===s){if(!he(n.key))throw new TypeError("MemberElement.key must be a StringElement");e.unshift(n.key.toValue())}else ye(r?.node)&&"number"==typeof s&&e.unshift(s);t=t.parentPath}return e}formatPath(e="jsonpointer"){const t=this.getPathKeys();return 0===t.length?"jsonpath"===e?"$":"":"jsonpath"===e?Nn(t):$n(t)}findParent(e){let t=this.parentPath;for(;null!==t;){if(e(t))return t;t=t.parentPath}return null}find(e){return e(this)?this:this.findParent(e)}skip(){this.#e=!0}stop(){this.#t=!0}replaceWith(e){this.#i&&console.warn("Warning: replaceWith() called on a stale Path. This path belongs to a node whose visit has already completed. The replacement will have no effect. To replace a parent node, do so from the parent's own visitor."),this.#n=!0,this.#r=e,this.node=e}remove(){this.#i&&console.warn("Warning: remove() called on a stale Path. This path belongs to a node whose visit has already completed. The removal will have no effect. To remove a parent node, do so from the parent's own visitor."),this.#s=!0}_getReplacementNode(){return this.#r}_wasReplaced(){return this.#n}_reset(){this.#e=!1,this.#t=!1,this.#s=!1,this.#n=!1,this.#r=void 0}_markStale(){this.#i=!0}}const or=Lt(1,Kt(En,ht(Ct,T("[object Promise]")))),cr=e=>{const t=e?.element;return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},ar=e=>{const t=e.primitive();return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},lr=e=>pe(e),ur=e=>Xs(e),pr=(e,t,s)=>{xe(e)?e.value=s:Array.isArray(e)?e[t]=null===s?void 0:s:null===s?delete e[t]:e[t]=s},hr=e=>xe(e)?["key","value"]:ye(e)||ge(e)?["content"]:[],dr=(e,t)=>{if(void 0!==e[t])return e[t];const s=t.length;for(const n in e){if(!n.includes("|"))continue;const r=n.indexOf(t);if(-1===r)continue;const i=0===r||"|"===n[r-1],o=r+s===n.length||"|"===n[r+s];if(i&&o)return e[n]}},mr=(e,t,s)=>{if(void 0===t)return null;const n=e,r=s?"leave":"enter",i=dr(n,t);if(!s&&"function"==typeof i)return i;if(null!=i){const e=i[r];if("function"==typeof e)return e}const o=n[r];if("function"==typeof o)return o;if(null!=o){const e=dr(o,t);if("function"==typeof e)return e}return null},fr=(e,t={})=>{const{visitFnGetter:s=mr,nodeTypeGetter:n=cr,exposeEdits:r=!1}=t,i=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(i);return{enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===i){const i=s(e[u],n(a),!1);if("function"==typeof i){const s=gr(t,a),n=i.call(e[u],s);if(or(n))throw new Ns("Async visitor not supported in sync mode",{visitor:e[u],visitFn:i});if(s.shouldStop){c[u]=o;break}if(s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!r)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!r)return t.replaceWith(n),n;a=n,l=!0}}}if(l)return t.replaceWith(a),a},leave(t){const r=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===i){const i=s(e[a],n(r),!0);if("function"==typeof i){const s=gr(t,r),n=i.call(e[a],s);if(or(n))throw new Ns("Async visitor not supported in sync mode",{visitor:e[a],visitFn:i});if(s.shouldStop){c[a]=o;break}if(s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();return t.replaceWith(e),e}if(void 0!==n)return t.replaceWith(n),n}}else c[a]===r&&(c[a]=i)}}},yr=(e,t={})=>{const{visitFnGetter:s=mr,nodeTypeGetter:n=cr,exposeEdits:r=!1}=t,i=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(i);return{async enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===i){const i=s(e[u],n(a),!1);if("function"==typeof i){const s=gr(t,a),n=await i.call(e[u],s);if(s.shouldStop){c[u]=o;break}if(s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!r)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!r)return t.replaceWith(n),n;a=n,l=!0}}}if(l)return t.replaceWith(a),a},async leave(t){const r=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===i){const i=s(e[a],n(r),!0);if("function"==typeof i){const s=gr(t,r),n=await i.call(e[a],s);if(s.shouldStop){c[a]=o;break}if(s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();return t.replaceWith(e),e}if(void 0!==n)return t.replaceWith(n),n}}else c[a]===r&&(c[a]=i)}}};function gr(e,t){return new ir(t,e.parent,e.parentPath,e.key,e.inList)}function*xr(e,t,s){const{keyMap:n,state:r,nodeTypeGetter:i,nodePredicate:o,nodeCloneFn:c,detectCycles:a,mutable:l,mutationFn:u}=s,p="function"==typeof n;let h,d,m=Array.isArray(e),f=[e],y=-1,g=[],x=e,v=null,b=null;const w=[];do{y+=1;const e=y===f.length;let s;const E=e&&0!==g.length;if(e){if(s=0===w.length?void 0:v?.key,x=d,d=w.pop(),b=v?.parentPath?.parentPath??null,E)if(l)for(const[e,t]of g)u(x,e,t);else if(m){x=x.slice();let e=0;for(const[t,s]of g){const n=t-e;null===s?(x.splice(n,1),e+=1):x[n]=s}}else{x=c(x);for(const[e,t]of g)x[e]=t}if(void 0!==h){y=h.index,f=h.keys,g=h.edits;const e=h.inArray;if(b=h.parentPath,h=h.prev,E&&!l){const t=e?y:f[y];g.push([t,x])}m=e}}else if(void 0!==d&&(s=m?y:f[y],x=d[s],void 0===x))continue;if(!Array.isArray(x)){if(!o(x))throw new Ns(`Invalid AST Node: ${String(x)}`,{node:x});if(a&&w.includes(x))continue;v=new ir(x,d,b,s,m);const n=mr(t,i(x),e);if(n){for(const[e,s]of Object.entries(r))t[e]=s;const i=yield{visitFn:n,path:v,isLeaving:e};if(v.shouldStop)break;if(v.shouldSkip&&!e)continue;if(v.removed){if(g.push([s,null]),!e)continue}else if(v._wasReplaced()){const t=v._getReplacementNode();if(g.push([s,t]),!e){if(!o(t))continue;x=t}}else if(void 0!==i&&(g.push([s,i]),!e)){if(!o(i))continue;x=i}v._markStale()}}if(!e){if(h={inArray:m,index:y,keys:f,edits:g,parentPath:b,prev:h},m=Array.isArray(x),m)f=x;else if(p)f=n(x);else{const e=i(x);f=void 0!==e?n[e]??[]:[]}y=-1,g=[],void 0!==d&&w.push(d),d=x,b=v}}while(void 0!==h);return 0!==g.length?g.at(-1)[1]:e}fr[Symbol.for("nodejs.util.promisify.custom")]=yr;const vr=(e,t,s={})=>{const n=xr(e,t,{keyMap:s.keyMap??hr,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??cr,nodePredicate:s.nodePredicate??lr,nodeCloneFn:s.nodeCloneFn??ur,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??pr});let r=n.next();for(;!r.done;){const e=r.value,s=e.visitFn.call(t,e.path);if(or(s))throw new Ns("Async visitor not supported in sync mode",{visitor:t,visitFn:e.visitFn});r=n.next(s)}return r.value},br=async(e,t,s={})=>{const n=xr(e,t,{keyMap:s.keyMap??hr,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??cr,nodePredicate:s.nodePredicate??lr,nodeCloneFn:s.nodeCloneFn??ur,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??pr});let r=n.next();for(;!r.done;){const e=r.value,s=await e.visitFn.call(t,e.path);r=n.next(s)}return r.value};vr[Symbol.for("nodejs.util.promisify.custom")]=br,ir.prototype.traverse=function(e,t){return vr(this.node,e,t)},ir.prototype.traverseAsync=function(e,t){return br(this.node,e,t)};const wr=class extends un{specObj;passingOptionsNames=["specObj","parent","consume"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Xe(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return It(cs,["visitors",...e],this.specObj)?Xe(["visitors",...e],this.specObj):Xe(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof pn&&n?.constructor===pn?this.consume?t:Hs(t):(vr(t,n,s),n.element)}};const Er=class extends wr{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=e.node,s=this.specPath(t),n=this.retrieveFixedFields(s);t.forEach((e,t,r)=>{const i=tn(t);if(he(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new X(this.consume?t:Hs(t),n);this.copyMetaAndAttributes(r,o),this.element.content.push(o),this.consume&&this.consumeSafe&&!r.isFrozen&&(r.value=void 0)}else this.ignoredFields.includes(i)||this.element.content.push(this.consume?r:Hs(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}},Or=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},Sr=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:Sr(s,[...t,s])},jr=(e,t,s=[])=>{var n;const r=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>Sr(e));for(;s.every(e=>e.length>0);){const e=s.map(e=>e.pop()),n=e[0];if(!e.every(e=>e===n))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(r),o=Sr(r);for(let t of e){let e=Sr(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(Or(i,n,["constructor",...s]),o.push(n))}}return i.constructor=t,i},kr=e=>e.filter((t,s)=>e.indexOf(t)==s),Ar=(e,t)=>{const s=t.map(e=>Sr(e));let n=0,r=!0;for(;r;){r=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][n];if(null!=t&&(r=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}n++}},Fr=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(Ar(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==Ar(n,e)||void 0!==t[n],get:(s,n)=>(Ar(n,e)||t)[n],set(t,s,n){const r=Ar(s,e);if(void 0===r)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return r[s]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))}),Pr=null,Cr="copy",Ir="copy",Mr="deep",Tr=new WeakMap,$r=e=>Tr.get(e),Dr=(e,t)=>{var s,n;const r=kr([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of r)i[o]=kr([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},_r=(e,t)=>{var s,n,r,i;return{property:Dr(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:Dr(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Rr=(e,t)=>{var s,n,r,i,o,c;return{class:kr([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:_r(null!==(r=null==e?void 0:e.static)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:_r(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Nr=new Map,qr=(...e)=>{const t=((...e)=>{var t;const s=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const r=[...Sr(e.prototype).map(e=>e.constructor),...null!==(t=$r(e))&&void 0!==t?t:[]].filter(e=>!s.has(e));for(let e of r)n.add(e);s.add(e),n.delete(e)}return[...s]})(...e).map(e=>Nr.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>Rr(e,t))},Br=e=>{let t=Nr.get(e);return t||(t={},Nr.set(e,t)),t};function Lr(...e){var t,s,n;const r=e.map(e=>e.prototype),i=Pr;if(null!==i){const e=r.map(e=>e[i]).filter(e=>"function"==typeof e),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};r.push(s)}function o(...t){for(const s of e)Or(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===Ir?jr(r,o):(c=r,a=o,Fr([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===Cr?jr(e,null,["prototype"]):Fr(e,Function.prototype));let l=o;if("none"!==Mr){const r="deep"===Mr?qr(...e):((...e)=>{const t=e.map(e=>Br(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>Rr(e,t))})(...e);for(let e of null!==(t=null==r?void 0:r.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Vr(null!==(s=null==r?void 0:r.static)&&void 0!==s?s:{},l),Vr(null!==(n=null==r?void 0:r.instance)&&void 0!==n?n:{},l.prototype)}var u,p;return u=l,p=e,Tr.set(u,p),l}const Vr=(e,t)=>{const s=e.property,n=e.method;if(s)for(let e in s)for(let n of s[e])n(t,e);if(n)for(let e in n)for(let s of n[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const Ur=function(){return!1};const Hr=class extends wr{specPath;ignoredFields;fieldPatternPredicate=Ur;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=tn(t);if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new X(this.consume?t:Hs(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i),this.consume&&this.consumeSafe&&!s.isFrozen&&(s.value=void 0)}else this.ignoredFields.includes(n)||this.element.content.push(this.consume?s:Hs(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const zr=class extends Hr{constructor(e){super(e),this.fieldPatternPredicate=Sn}};const Gr=class{parent;constructor({parent:e}){this.parent=e}},Xr=Lr(Er,Gr,pn),Jr=Lr(Er,pn),Kr=Lr(Er,pn),Wr=Lr(Er,pn),Yr=Lr(wr,Gr,pn),Qr=Lr(wr,Gr,pn),Zr=Lr(wr,Gr,pn),ei=Lr(wr,Gr,pn),ti=Lr(wr,Gr,pn),si=Lr(zr,Gr,pn),ni=Lr(zr,Gr,pn),ri=Lr(zr,Gr,pn),ii=Lr(zr,Gr,pn);const oi=class extends Xr{constructor(e){super(e),this.element=new ks,this.consumeSafe=!0,this.specPath=hn(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){const t=e.node;return this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,Er.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(fn(this.parent)&&!he(e.get("$schema")))this.element.meta.set("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(this.parent instanceof ks&&!he(e.get("$schema"))){const e=dn(this.parent.meta.get("inheritedDialectIdentifier"),tn(this.parent.$schema));this.element.meta.set("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?[...this.parent.meta.get("ancestorsSchemaIdentifiers")??[]]:[],n=tn(e.get(t));Sn(n)&&s.push(n),this.element.meta.set("ancestorsSchemaIdentifiers",s)}},ci=e=>ge(e)&&e.hasKey("$ref");const ai=class extends ei{ObjectElement(e){const t=e.node,s=ci(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];this.element=this.toRefractedElement(s,t),e.stop()}ArrayElement(e){const t=e.node;this.element=new ue,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=ci(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const li=class extends pn{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-required")}};const ui=class extends ii{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-properties"),this.specPath=e=>ci(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const pi=class extends ri{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>ci(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const hi=class extends ni{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>ci(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const di=class extends pn{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-enum")}};const mi=class extends pn{StringElement(e){super.enter(e),this.element.classes.push("json-schema-type")}ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-type")}};const fi=class extends Yr{constructor(e){super(e),this.element=new ue,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ci(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const yi=class extends Qr{constructor(e){super(e),this.element=new ue,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ci(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const gi=class extends Zr{constructor(e){super(e),this.element=new ue,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ci(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const xi=class extends si{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-definitions"),this.specPath=e=>ci(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const vi=class extends ti{constructor(e){super(e),this.element=new ue,this.element.classes.push("json-schema-links")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const bi=class extends Jr{constructor(e){super(e),this.element=new As,this.specPath=hn(["document","objects","JSONReference"])}ObjectElement(e){Er.prototype.ObjectElement.call(this,e),he(this.element.$ref)&&this.element.classes.push("reference-element")}};const wi=class extends pn{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Ei=function(){return!0};const Oi=Ve(function(e,t,s){return Lt(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const Si=i(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var ji=g(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const ki=ji;const Ai=i(function(e){return o(0,e)});function Fi(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Pi=i(Fi);const Ci=Yt(Re);const Ii=Lt(1,cs(Array.isArray)?Array.isArray:ht(C,mt("Array")));const Mi=Kt(Ii,bn);function Ti(e){return function(e){if(Array.isArray(e))return $i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $i(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?$i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $i(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,n=Array(t);s<t;s++)n[s]=e[s];return n}var Di=ht(ki(Si(function(e,t){return e.length>t.length})),Ai,He("length")),_i=ms(function(e,t,s){var n=s.apply(void 0,Ti(e));return Ci(n)?Pi(n):t});const Ri=Oi(Mi,function(e){var t=Di(e);return Lt(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return at(_i(s),void 0,e)})},mn);const Ni=class extends wr{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Oi(e,hn(t),mn)),n=Ri(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const qi=class extends Ni{constructor(e){super(e),this.alternator=[{predicate:ci,specPath:["document","objects","JSONReference"]},{predicate:Ei,specPath:["document","objects","JSONSchema"]}]}};const Bi=class extends Wr{constructor(e){super(e),this.element=new Fs,this.specPath=hn(["document","objects","Media"])}};const Li={visitors:{value:pn,JSONSchemaOrJSONReferenceVisitor:qi,document:{objects:{JSONSchema:{element:"jSONSchemaDraft4",$visitor:oi,fixedFields:{id:{$ref:"#/visitors/value",alias:"idField"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:qi,items:{$visitor:ai,alias:"itemsField"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:li,properties:ui,additionalProperties:qi,patternProperties:pi,dependencies:hi,enum:di,type:mi,allOf:fi,anyOf:yi,oneOf:gi,not:qi,definitions:xi,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:{$visitor:vi,alias:"linksField"},media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{element:"jSONReference",$visitor:bi,fixedFields:{$ref:wi}},Media:{element:"media",$visitor:Bi,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{element:"linkDescription",$visitor:class extends Kr{constructor(e){super(e),this.element=new Ps,this.specPath=hn(["document","objects","LinkDescription"])}},fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:qi,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:qi}}}}}},Vi=js(Li),Ui=e=>Object.entries(e).map(([e,t])=>ps(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(ks,"fixedFields",{get:()=>Ui(Vi.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(As,"fixedFields",{get:()=>Ui(Vi.visitors.document.objects.JSONReference.fixedFields),enumerable:!0}),Object.defineProperty(Fs,"fixedFields",{get:()=>Ui(Vi.visitors.document.objects.Media.fixedFields),enumerable:!0}),Object.defineProperty(Ps,"fixedFields",{get:()=>Ui(Vi.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const Hi=class extends ks{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idField(){throw new h("idField getter in Schema class is not not supported.")}set idField(e){throw new h("idField setter in Schema class is not not supported.")}get $schema(){throw new h("$schema getter in Schema class is not not supported.")}set $schema(e){throw new h("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new h("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new h("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new h("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new h("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new h("definitions getter in Schema class is not not supported.")}set definitions(e){throw new h("definitions setter in Schema class is not not supported.")}get base(){throw new h("base getter in Schema class is not not supported.")}set base(e){throw new h("base setter in Schema class is not not supported.")}get linksField(){throw new h("linksField getter in Schema class is not not supported.")}set linksField(e){throw new h("linksField setter in Schema class is not not supported.")}get media(){throw new h("media getter in Schema class is not not supported.")}set media(e){throw new h("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};const zi=class extends J{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}};const Gi=class extends J{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}};const Xi=class extends J{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}};const Ji=class extends J{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}};const Ki=class extends J{constructor(e,t,s){super(e,t,s),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}};const Wi=class extends J{constructor(e,t,s){super(e,t,s),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}},Yi={namespace:e=>{const{base:t}=e;return t.register("callback",K),t.register("components",W),t.register("contact",Y),t.register("discriminator",Q),t.register("encoding",Z),t.register("example",ee),t.register("externalDocumentation",te),t.register("header",re),t.register("info",ie),t.register("license",oe),t.register("link",ve),t.register("mediaType",be),t.register("oAuthFlow",we),t.register("oAuthFlows",Ee),t.register("openapi",Oe),t.register("openApi3_0",Se),t.register("operation",je),t.register("parameter",Ae),t.register("pathItem",Fe),t.register("paths",Pe),t.register("reference",Ce),t.register("requestBody",Ie),t.register("response",Me),t.register("responses",Te),t.register("schema",Hi),t.register("securityRequirement",zi),t.register("securityScheme",Gi),t.register("server",Xi),t.register("serverVariable",Ji),t.register("tag",Ki),t.register("xml",Wi),t}};class Qi extends ue{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Qi.primaryClass)}}const Zi=Qi;class eo extends ue{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(eo.primaryClass)}}const to=eo;class so extends ue{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(so.primaryClass)}}const no=so;class ro extends J{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(ro.primaryClass)}}const io=ro;class oo extends J{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(oo.primaryClass)}}const co=oo;class ao extends J{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(ao.primaryClass)}}const lo=ao;class uo extends J{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(uo.primaryClass),this.classes.push("parameters")}}const po=uo;class ho extends J{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ho.primaryClass),this.classes.push("examples")}}const mo=ho;class fo extends J{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(fo.primaryClass)}}const yo=fo;class go extends J{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(go.primaryClass)}}const xo=go;class vo extends J{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(vo.primaryClass)}}const bo=vo;class wo extends J{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(wo.primaryClass)}}const Eo=wo;class Oo extends J{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Oo.primaryClass)}}const So=Oo;class jo extends ue{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(jo.primaryClass),this.classes.push("servers")}}const ko=jo;class Ao extends ue{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Ao.primaryClass),this.classes.push("parameters")}}const Fo=Ao;class Po extends ue{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Po.primaryClass),this.classes.push("parameters")}}const Co=Po;class Io extends J{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Io.primaryClass),this.classes.push("examples")}}const Mo=Io;class To extends J{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(To.primaryClass),this.classes.push("content")}}const $o=To;class Do extends ue{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Do.primaryClass)}}const _o=Do;class Ro extends J{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Ro.primaryClass)}}const No=Ro;class qo extends ue{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(qo.primaryClass),this.classes.push("security")}}const Bo=qo;class Lo extends ue{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Lo.primaryClass),this.classes.push("servers")}}const Vo=Lo;class Uo extends J{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Uo.primaryClass),this.classes.push("content")}}const Ho=Uo;class zo extends J{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(zo.primaryClass),this.classes.push("examples")}}const Go=zo;class Xo extends J{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Xo.primaryClass)}}const Jo=Xo;class Ko extends J{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Ko.primaryClass)}}const Wo=Ko;class Yo extends J{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Yo.primaryClass)}}const Qo=Yo;class Zo extends J{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(Zo.primaryClass),this.classes.push("content")}}const ec=Zo;class tc extends J{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(tc.primaryClass)}}const sc=tc;class nc extends J{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(nc.primaryClass)}}const rc=nc;class ic extends J{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(ic.primaryClass)}}const oc=ic;class cc extends J{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(cc.primaryClass)}}const ac=cc;class lc extends J{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(lc.primaryClass),this.classes.push("examples")}}const uc=lc;class pc extends J{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(pc.primaryClass),this.classes.push("content")}}const hc=pc,dc={OpenApi3_0Element:{info:(...e)=>new ie(...e),servers:(...e)=>new Zi(...e),paths:(...e)=>new Pe(...e),components:(...e)=>new W(...e),security:(...e)=>new to(...e),tags:(...e)=>new no(...e),externalDocs:(...e)=>new te(...e)},InfoElement:{contact:(...e)=>new Y(...e),license:(...e)=>new oe(...e)},ServerElement:{variables:(...e)=>new io(...e)},ServerVariableElement:{enum:(...e)=>new ue(...e)},PathsElement:{"[key: *]":function(...e){return new Fe(...e)}},PathItemElement:{get:(...e)=>new je(...e),put:(...e)=>new je(...e),post:(...e)=>new je(...e),delete:(...e)=>new je(...e),options:(...e)=>new je(...e),head:(...e)=>new je(...e),patch:(...e)=>new je(...e),trace:(...e)=>new je(...e),servers:(...e)=>new ko(...e),parameters:(...e)=>new Fo(...e)},OperationElement:{tags:(...e)=>new _o(...e),externalDocs:(...e)=>new te(...e),parameters:(...e)=>new Co(...e),requestBody:(...e)=>new Ie(...e),responses:(...e)=>new Te(...e),callbacks:(...e)=>new No(...e),security:(...e)=>new Bo(...e),servers:(...e)=>new Vo(...e)},ParameterElement:{schema:(...e)=>new Hi(...e),examples:(...e)=>new Mo(...e),content:(...e)=>new $o(...e)},RequestBodyElement:{content:(...e)=>new Ho(...e)},MediaTypeElement:{schema:(...e)=>new Hi(...e),examples:(...e)=>new Go(...e),encoding:(...e)=>new Jo(...e)},EncodingElement:{headers:(...e)=>new Wo(...e)},ResponsesElement:{"[key: *]":function(...e){return new Me(...e)}},ResponseElement:{headers:(...e)=>new Qo(...e),content:(...e)=>new ec(...e),links:(...e)=>new sc(...e)},CallbackElement:{"[key: *]":function(...e){return new Fe(...e)}},LinkElement:{parameters:(...e)=>new ac(...e),server:(...e)=>new Xi(...e)},HeaderElement:{schema:(...e)=>new Hi(...e),examples:(...e)=>new uc(...e),content:(...e)=>new hc(...e)},ComponentsElement:{schemas:(...e)=>new co(...e),responses:(...e)=>new lo(...e),parameters:(...e)=>new po(...e),examples:(...e)=>new mo(...e),requestBodies:(...e)=>new yo(...e),headers:(...e)=>new xo(...e),securitySchemes:(...e)=>new bo(...e),links:(...e)=>new Eo(...e),callbacks:(...e)=>new So(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new ue(...e)}},TagElement:{externalDocs:(...e)=>new te(...e)},SchemaElement:{definitions(...e){const t=new J(...e);return t.classes.push("json-schema-definitions"),t},allOf(...e){const t=new ue(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new ue(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new ue(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new Hi(...e),items:(...e)=>new Hi(...e),properties(...e){const t=new J(...e);return t.classes.push("json-schema-properties"),t},patternProperties(...e){const t=new J(...e);return t.classes.push("json-schema-patternProperties"),t},additionalProperties:(...e)=>new Hi(...e),enum(...e){const t=new ue(...e);return t.classes.push("json-schema-enum"),t},required(...e){const t=new ue(...e);return t.classes.push("json-schema-required"),t},discriminator:(...e)=>new Q(...e),xml:(...e)=>new Wi(...e),externalDocs:(...e)=>new te(...e)},DiscriminatorElement:{mapping:(...e)=>new rc(...e)},SecuritySchemeElement:{flows:(...e)=>new Ee(...e)},OAuthFlowsElement:{implicit:(...e)=>new we(...e),password:(...e)=>new we(...e),clientCredentials:(...e)=>new we(...e),authorizationCode:(...e)=>new we(...e)},OAuthFlowElement:{scopes:(...e)=>new oc(...e)},[io.primaryClass]:{"[key: *]":function(...e){return new Ji(...e)}},[co.primaryClass]:{"[key: *]":function(...e){return new Hi(...e)}},[lo.primaryClass]:{"[key: *]":function(...e){return new Me(...e)}},[po.primaryClass]:{"[key: *]":function(...e){return new Ae(...e)}},[mo.primaryClass]:{"[key: *]":function(...e){return new ee(...e)}},[yo.primaryClass]:{"[key: *]":function(...e){return new Ie(...e)}},[xo.primaryClass]:{"[key: *]":function(...e){return new re(...e)}},[bo.primaryClass]:{"[key: *]":function(...e){return new Gi(...e)}},[Eo.primaryClass]:{"[key: *]":function(...e){return new ve(...e)}},[So.primaryClass]:{"[key: *]":function(...e){return new K(...e)}},[No.primaryClass]:{"[key: *]":function(...e){return new K(...e)}},[Mo.primaryClass]:{"[key: *]":function(...e){return new ee(...e)}},[$o.primaryClass]:{"[key: *]":function(...e){return new be(...e)}},[Ho.primaryClass]:{"[key: *]":function(...e){return new be(...e)}},[Go.primaryClass]:{"[key: *]":function(...e){return new ee(...e)}},[Jo.primaryClass]:{"[key: *]":function(...e){return new Z(...e)}},[Wo.primaryClass]:{"[key: *]":function(...e){return new re(...e)}},[Qo.primaryClass]:{"[key: *]":function(...e){return new re(...e)}},[ec.primaryClass]:{"[key: *]":function(...e){return new be(...e)}},[sc.primaryClass]:{"[key: *]":function(...e){return new ve(...e)}},"json-schema-$defs":{"[key: *]":function(...e){return new Hi(...e)}},"json-schema-dependentSchemas":{"[key: *]":function(...e){return new Hi(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new Hi(...e)}},[Zi.primaryClass]:{"<*>":function(...e){return new Xi(...e)}},[to.primaryClass]:{"<*>":function(...e){return new zi(...e)}},[no.primaryClass]:{"<*>":function(...e){return new Ki(...e)}},[ko.primaryClass]:{"<*>":function(...e){return new Xi(...e)}},[Fo.primaryClass]:{"<*>":function(...e){return new Ae(...e)}},[Co.primaryClass]:{"<*>":function(...e){return new Ae(...e)}},[Bo.primaryClass]:{"<*>":function(...e){return new zi(...e)}},[Vo.primaryClass]:{"<*>":function(...e){return new Xi(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Hi(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new Hi(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new Hi(...e)}},"json-schema-prefixItems":{"<*>":function(...e){return new Hi(...e)}}},mc=(e,t)=>{const s=cr(e),n=e.isMetaEmpty?void 0:e.classes.at(0),r=dc[s]||dc[n];return void 0===r?void 0:Object.hasOwn(r,"[key: *]")?r["[key: *]"]:r[t]},fc=()=>()=>({visitor:{StringElement(e){const t=e.node;if(!(e=>he(e)&&Ms(e,["yaml-e-node","yaml-e-scalar"]))(t))return;const s=e.getAncestorNodes().reverse(),n=s.at(-1);let r,i;if(ye(n)?(i=t,r=mc(n,"<*>")):xe(n)&&(i=s.at(-2),r=mc(i,tn(n.key))),"function"!=typeof r)return;const o=r.call({context:i},void 0,t.isMetaEmpty?void 0:t.meta.cloneDeep(),t.isAttributesEmpty?void 0:Hs(t.attributes));Rs.transfer(t,o),ln.transfer(t,o),e.replaceWith(o)}}});var yc=Ve(function(e,t,s){var n,r={};for(n in s=s||{},t=t||{})b(n,t)&&(r[n]=b(n,s)?e(n,t[n],s[n]):t[n]);for(n in s)b(n,s)&&!b(n,r)&&(r[n]=s[n]);return r});const gc=yc;var xc=Ve(function e(t,s,n){return gc(function(s,n,r){return wt(n)&&wt(r)?e(t,n,r):t(s,n,r)},s,n)});const vc=xc;const bc=g(function(e,t){return vc(function(e,t,s){return s},e,t)});const wc=Ve(function(e,t,s){return dn(e,He(t,s))});const Ec=ut(0,-1);var Oc=g(function(e,t){return e.apply(this,t)});const Sc=Oc;const jc=Yt(cs);const kc=Kt(Ii,vn);const Ac=Lt(3,function(e,t,s){var n=Xe(e,s),r=Xe(Ec(e),s);if(!jc(n)&&!kc(e)){var i=nt(n,r);return Sc(i,t)}});const Fc=class{namespace;constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};if(!e.isMetaEmpty){const s=this.serialiseMeta(e);s&&(t.meta=s.meta,s.rawKeys.length>0&&(t.__meta_raw__=s.rawKeys))}if(e.isAttributesEmpty||(t.attributes=this.serialiseObject(e.attributes)),!(e instanceof Rs)){const s=Rs.from(e);s&&(t.meta||(t.meta={}),t.meta.__mappings__=this.serialise(s))}if(!(e instanceof ln)){const s=ln.from(e);s&&(t.meta||(t.meta={}),t.meta.__styles__=this.serialise(s))}const s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));let s,n;t.element!==e.element&&(t.element=e.element);let r=e.meta;if(e.meta?.__mappings__||e.meta?.__styles__){const{__mappings__:t,__styles__:i,...o}=e.meta;s=t,n=i,r=Object.keys(o).length>0?o:void 0}const i=e.__meta_raw__?new Set(e.__meta_raw__):void 0;if(r)for(const[e,s]of Object.entries(r)){const n=this.deserialise(s);t.setMetaProperty(e,i?.has(e)?n.toValue():n)}if(s){this.deserialise(s).applyTo(t)}if(n){this.deserialise(n).applyTo(t)}e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const o=this.deserialiseContent(e.content);return void 0===o&&null!==t.content||(t.content=o),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t=e,s={key:this.serialise(t.key)};return t.value&&(s.value=this.serialise(t.value)),s}if(e&&Array.isArray(e)){if(0===e.length)return;return e.map(e=>this.serialise(e))}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(Array.isArray(e))return e.map(e=>this.deserialise(e))}return e}serialiseMeta(e){const t={},s=[];let n=!1;for(const[r,i]of Object.entries(e.meta))if(i instanceof this.namespace.elements.Element)t[r]=this.serialise(i),n=!0;else if(void 0!==i){const o=e.refract(i);t[r]=this.serialise(o),s.push(r),n=!0}return n?{meta:t,rawKeys:s}:void 0}serialiseObject(e){const t={};if(e.forEach((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))}),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach(s=>{t.set(s,this.deserialise(e[s]))})}},Pc=e=>null===e,Cc=e=>"string"==typeof e,Ic=e=>"number"==typeof e,Mc=e=>"boolean"==typeof e,Tc=e=>null!==e&&"object"==typeof e;class $c{elementMap={};elementDetection=[];Element;KeyValuePair;_elements;_attributeElementKeys=[];_attributeElementArrayKeys=[];constructor(e){this.Element=H,this.KeyValuePair=q,e&&e.noDefault||this.useDefault()}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",le).register("string",ce).register("number",ae).register("boolean",se).register("array",ue).register("object",J).register("member",X).register("ref",Ks).register("link",Js).register("sourceMap",Rs),this.detect(Pc,le,!1).detect(Cc,ce,!1).detect(Ic,ae,!1).detect(Mc,se,!1).detect(Array.isArray,ue,!1).detect(Tc,J,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(const[s,n]of this.elementDetection)if(s(e)){t=new n(e);break}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(e=>{const t=e[0].toUpperCase()+e.substring(1);this._elements[t]=this.elementMap[e]})),this._elements}get serialiser(){return new Fc(this)}}Fc.prototype.Namespace=$c;const Dc=$c,_c=new Dc,Rc={isElement:pe,isStringElement:he,isNumberElement:de,isNullElement:me,isBooleanElement:fe,isArrayElement:ye,isObjectElement:ge,isMemberElement:xe,isPrimitiveElement:e=>ge(e)&&"object"===e.element||ye(e)&&"array"===e.element||fe(e)&&"boolean"===e.element||de(e)&&"number"===e.element||he(e)&&"string"===e.element||me(e)&&"null"===e.element||xe(e)&&"member"===e.element,isLinkElement:Zs,isRefElement:en,isAnnotationElement:e=>e instanceof Ws,isCommentElement:e=>e instanceof Ys,isParseResultElement:e=>e instanceof Qs,isSourceMapElement:e=>e instanceof Rs,hasElementStyle:Cs,hasElementSourceMap:Is,includesSymbols:(e,t)=>{if(0===t.length)return!0;if(!e.hasAttributesProperty("symbols"))return!1;const s=e.attributes.get("symbols");return!!ye(s)&&t.every(e=>s.includes(e))},includesClasses:Ms},Nc={toolboxCreator:()=>({predicates:Rc,namespace:_c}),visitorOptions:{exposeEdits:!0}},qc=(e,t,s={})=>{if(0===t.length)return e;const n=bc(Nc,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=fr(c.map(wc({},"visitor")),i);c.forEach(Ac(["pre"],[]));const l=vr(e,a);return c.forEach(Ac(["post"],[])),l};function Bc(e){return void 0===e?new le:Lc(e)}function Lc(e){if(e instanceof H)return e;if("string"==typeof e)return new ce(e);if("number"==typeof e)return new ae(e);if("boolean"==typeof e)return new se(e);if(null===e)return new le;if(Array.isArray(e))return new ue(e.map(Bc));if("object"==typeof e)return new J(e);throw new Error("Cannot refract value of type "+typeof e)}qc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=bc(Nc,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=yr(c.map(wc({},"visitor")),i);await Promise.allSettled(c.map(Ac(["pre"],[])));const l=await br(e,a);return await Promise.allSettled(c.map(Ac(["post"],[]))),l},H.prototype.ObjectElement=J,H.prototype.ArrayElement=ue,H.prototype.RefElement=Ks,H.prototype.MemberElement=X,H.prototype.refract=Lc,N.prototype.Element=H,N.prototype.cloneDeepElement=e=>Hs(e);const Vc=class{element;consume=!1;consumeSafe=!1;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty||(t.meta=e.meta.cloneDeep()):t.meta=t.meta.merge(e.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty||(t.attributes=Hs(e.attributes)):t.attributes=cn(t.attributes,e.attributes),Rs.transfer(e,t),ln.transfer(e,t)}};const Uc=class extends Vc{enter(e){this.element=this.consume?e.node:Hs(e.node),e.stop()}};const Hc=class extends Vc{specObj;passingOptionsNames=["specObj","openApiGenericElement","sourceContext","openApiSemanticElement","consume"];openApiGenericElement;sourceContext;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:n,...r}){super({...r}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=n,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Xe(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return It(cs,["visitors",...e],this.specObj)?Xe(["visitors",...e],this.specObj):Xe(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof Uc&&n?.constructor===Uc?this.consume?t:Hs(t):(vr(t,n,{nodeTypeGetter:ar}),n.element)}};var zc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Et,e.prototype["@@transducer/result"]=Ot,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Fi(s):s},e}();function Gc(e){return function(t){return new zc(e,t)}}const Xc=g(bt(["take"],Gc,function(e,t){return ut(0,e<0?1/0:e,t)}));const Jc=g(function(e,t){return T(Xc(e.length,t),e)}),Kc=e=>ge(e)&&e.hasKey("$ref"),Wc=ge,Yc=ge,Qc=e=>he(e.key)&&Jc("x-",tn(e.key));const Zc=class extends Hc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Qc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=e.node,s=this.specPath(t),n=this.retrieveFixedFields(s);t.forEach((e,t,r)=>{const i=tn(t);if(he(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new X(this.consume?t:Hs(t),n);this.copyMetaAndAttributes(r,o),this.element.content.push(o),this.consume&&this.consumeSafe&&!r.isFrozen&&(r.value=void 0)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e),this.consume&&this.consumeSafe&&!r.isFrozen&&(r.value=void 0)}else this.ignoredFields.includes(i)||this.element.content.push(this.consume?r:Hs(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ea=class extends Hc{specPath;ignoredFields;fieldPatternPredicate=Ur;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Qc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=tn(t);if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new X(this.consume?t:Hs(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i),this.consume&&this.consumeSafe&&!s.isFrozen&&(s.value=void 0)}else this.ignoredFields.includes(n)||this.element.content.push(this.consume?s:Hs(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ta=class extends ea{constructor(e){super(e),this.fieldPatternPredicate=Sn}};const sa=class extends Hc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Oi(e,hn(t),mn)),n=Ri(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};function na(e,t,s){var n,r=typeof e;switch(r){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?e in s._items[r]||(t&&(s._items[r][e]=!0),!1):(t&&(s._items[r]={},s._items[r][e]=!0),!1);case"boolean":if(r in s._items){var i=e?1:0;return!!s._items[r][i]||(t&&(s._items[r][i]=!0),!1)}return t&&(s._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?!!ft(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1);case"undefined":return!!s._items[r]||(t&&(s._items[r]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(r=Object.prototype.toString.call(e))in s._items?!!ft(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1)}}const ra=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!na(e,!0,this)},e.prototype.has=function(e){return na(e,!1,this)},e}();const ia=g(function(e,t){for(var s=[],n=0,r=e.length,i=t.length,o=new ra,c=0;c<i;c+=1)o.add(t[c]);for(;n<r;)o.add(e[n])&&(s[s.length]=e[n]),n+=1;return s}),oa=Lr(Zc,ea);const ca=class extends oa{specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const t=e.node,{specPath:s,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const s=this.retrieveFixedFields(this.specPath(t));this.ignoredFields=[...n,...ia(t.keys(),s)],Zc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,ea.prototype.ObjectElement.call(this,e);const r=t.keys();this.element.content.sort((e,t)=>r.indexOf(tn(e.key))-r.indexOf(tn(t.key)))}catch(e){throw this.specPath=s,e}e.stop()}},aa=Lr(Hc,Uc),la=Lr(Zc,Uc),ua=Lr(ea,Uc),pa=Lr(ta,Uc),ha=Lr(sa,Uc),da=Lr(ca,Uc);const ma=class extends la{constructor(e){super(e),this.element=new Se,this.specPath=hn(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0}ObjectElement(e){la.prototype.ObjectElement.call(this,e)}};const fa=class extends aa{StringElement(e){const t=e.node,s=new Oe(tn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const ya=class extends Hc{MemberElement(e){this.element=Hs(e.node),this.element.classes.push("specification-extension"),e.stop()}};const ga=class extends la{constructor(e){super(e),this.element=new ie,this.specPath=hn(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};const xa=class extends Uc{StringElement(e){super.enter(e),this.element.classes.push("api-version"),this.element.classes.push("version")}};const va=class extends la{constructor(e){super(e),this.element=new Y,this.specPath=hn(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}};const ba=class extends la{constructor(e){super(e),this.element=new oe,this.specPath=hn(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}};const wa=class extends la{constructor(e){super(e),this.element=new ve,this.specPath=hn(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){la.prototype.ObjectElement.call(this,e),(he(this.element.operationId)||he(this.element.operationRef))&&this.element.classes.push("reference-element")}};const Ea=class extends Uc{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Oa=class extends Uc{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Sa=class extends pa{constructor(e){super(e),this.element=new ac,this.specPath=hn(["value"])}};const ja=class extends la{constructor(e){super(e),this.element=new Xi,this.specPath=hn(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};const ka=class extends Uc{StringElement(e){super.enter(e),this.element.classes.push("server-url")}};const Aa=class extends aa{constructor(e){super(e),this.element=new Zi}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Wc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Fa=class extends la{constructor(e){super(e),this.element=new Ji,this.specPath=hn(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};const Pa=class extends pa{constructor(e){super(e),this.element=new io,this.specPath=hn(["document","objects","ServerVariable"])}};const Ca=class extends la{constructor(e){super(e),this.element=new be,this.specPath=hn(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}},Ia=e=>e instanceof K,Ma=e=>e instanceof W,Ta=e=>e instanceof Y,$a=e=>e instanceof ee,Da=e=>e instanceof te,_a=e=>e instanceof re,Ra=e=>e instanceof ie,Na=e=>e instanceof oe,qa=e=>e instanceof ve,Ba=e=>e instanceof Oe,La=e=>e instanceof Se,Va=e=>e instanceof je,Ua=e=>e instanceof Ae,Ha=e=>e instanceof Fe,za=e=>e instanceof Pe,Ga=e=>e instanceof Ce,Xa=e=>e instanceof Ie,Ja=e=>e instanceof Me,Ka=e=>e instanceof Te,Wa=e=>e instanceof Hi,Ya=e=>e instanceof zi,Qa=e=>e instanceof Gi,Za=e=>e instanceof Xi,el=e=>e instanceof Ji,tl=e=>e instanceof be,sl=e=>e instanceof Zi;const nl=class extends ha{constructor(e){super(e),this.alternator=[{predicate:Kc,specPath:["document","objects","Reference"]},{predicate:Ei,specPath:["document","objects","Schema"]}]}ObjectElement(e){sa.prototype.enter.call(this,e),Ga(this.element)&&this.element.meta.set("referenced-element","schema")}};const rl=class extends pa{constructor(e){super(e),this.element=new J,this.element.classes.push("examples"),this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){pa.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","example")})}};const il=class extends rl{constructor(e){super(e),this.element=new Go}};const ol=class extends pa{constructor(e){super(e),this.element=new Jo,this.specPath=hn(["document","objects","Encoding"])}};const cl=class extends pa{constructor(e){super(e),this.element=new zi,this.specPath=hn(["value"])}};const al=class extends aa{constructor(e){super(e),this.element=new to}ArrayElement(e){const t=e.node;t.forEach(e=>{if(ge(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Hs(e))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ll=class extends la{constructor(e){super(e),this.element=new W,this.specPath=hn(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0}};const ul=class extends la{constructor(e){super(e),this.element=new Ki,this.specPath=hn(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}};const pl=class extends la{constructor(e){super(e),this.element=new Ce,this.specPath=hn(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){la.prototype.ObjectElement.call(this,e),he(this.element.$ref)&&this.element.classes.push("reference-element")}};const hl=class extends Uc{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const dl=class extends la{constructor(e){super(e),this.element=new Ae,this.specPath=hn(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Zc.prototype.ObjectElement.call(this,e),ge(this.element.contentField)&&this.element.contentField.filter(tl).forEach((e,t)=>{e.meta.set("media-type",tn(t))})}};const ml=class extends ha{constructor(e){super(e),this.alternator=[{predicate:Kc,specPath:["document","objects","Reference"]},{predicate:Ei,specPath:["document","objects","Schema"]}]}ObjectElement(e){sa.prototype.enter.call(this,e),Ga(this.element)&&this.element.meta.set("referenced-element","schema")}};const fl=class extends la{constructor(e){super(e),this.element=new re,this.specPath=hn(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}};const yl=class extends ha{constructor(e){super(e),this.alternator=[{predicate:Kc,specPath:["document","objects","Reference"]},{predicate:Ei,specPath:["document","objects","Schema"]}]}ObjectElement(e){sa.prototype.enter.call(this,e),Ga(this.element)&&this.element.meta.set("referenced-element","schema")}};const gl=class extends rl{constructor(e){super(e),this.element=new uc}};const xl=class extends pa{constructor(e){super(e),this.element=new J,this.element.classes.push("content"),this.specPath=hn(["document","objects","MediaType"])}};const vl=class extends xl{constructor(e){super(e),this.element=new hc}};const bl=class extends la{constructor(e){super(e),this.element=new Hi,this.specPath=hn(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}},wl=Li.visitors.document.objects.JSONSchema.fixedFields.allOf;const El=class extends wl{ArrayElement(e){wl.prototype.ArrayElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","schema")})}},Ol=Li.visitors.document.objects.JSONSchema.fixedFields.anyOf;const Sl=class extends Ol{ArrayElement(e){Ol.prototype.ArrayElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","schema")})}},jl=Li.visitors.document.objects.JSONSchema.fixedFields.oneOf;const kl=class extends jl{ArrayElement(e){jl.prototype.ArrayElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Al=class extends ai{ObjectElement(e){ai.prototype.ObjectElement.call(this,e),Ga(this.element)&&this.element.meta.set("referenced-element","schema")}ArrayElement(e){this.enter(e)}},Fl=Li.visitors.document.objects.JSONSchema.fixedFields.properties;const Pl=class extends Fl{ObjectElement(e){Fl.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","schema")})}},Cl=Li.visitors.document.objects.JSONSchema.fixedFields.type;const Il=class extends Cl{ArrayElement(e){this.enter(e)}},Ml=Li.visitors.JSONSchemaOrJSONReferenceVisitor;const Tl=class extends Ml{ObjectElement(e){Ml.prototype.enter.call(this,e),Ga(this.element)&&this.element.meta.set("referenced-element","schema")}};const $l=class extends la{constructor(e){super(e),this.element=new Q,this.specPath=hn(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};const Dl=class extends pa{constructor(e){super(e),this.element=new rc,this.specPath=hn(["value"])}};const _l=class extends la{constructor(e){super(e),this.element=new Wi,this.specPath=hn(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}};const Rl=class extends rl{constructor(e){super(e),this.element=new Mo}};const Nl=class extends xl{constructor(e){super(e),this.element=new $o}};const ql=class extends pa{constructor(e){super(e),this.element=new co,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Bl=class extends pa{constructor(e){super(e),this.element=new lo,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(Ja).forEach((e,t)=>{e.meta.set("http-status-code",tn(t))})}};const Ll=class extends pa{constructor(e){super(e),this.element=new po,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const Vl=class extends pa{constructor(e){super(e),this.element=new mo,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","example")})}};const Ul=class extends pa{constructor(e){super(e),this.element=new yo,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","requestBody")})}};const Hl=class extends pa{constructor(e){super(e),this.element=new xo,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.filter(_a).forEach((e,t)=>{e.meta.set("header-name",tn(t))})}};const zl=class extends pa{constructor(e){super(e),this.element=new bo,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","securityScheme")})}};const Gl=class extends pa{constructor(e){super(e),this.element=new Eo,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","link")})}};const Xl=class extends pa{constructor(e){super(e),this.element=new So,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","callback")})}};const Jl=class extends la{constructor(e){super(e),this.element=new ee,this.specPath=hn(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){la.prototype.ObjectElement.call(this,e),he(this.element.externalValue)&&this.element.classes.push("reference-element")}};const Kl=class extends Uc{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Wl=class extends la{constructor(e){super(e),this.element=new te,this.specPath=hn(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}};const Yl=class extends la{constructor(e){super(e),this.element=new Z,this.specPath=hn(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Zc.prototype.ObjectElement.call(this,e),ge(this.element.headers)&&this.element.headers.filter(_a).forEach((e,t)=>{e.meta.set("header-name",tn(t))})}};const Ql=class extends pa{constructor(e){super(e),this.element=new Wo,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!_a(e))return;const s=tn(t);e.meta.set("headerName",s)})}};const Zl=class extends ua{constructor(e){super(e),this.element=new Pe,this.specPath=hn(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0,this.fieldPatternPredicate=Ei}ObjectElement(e){ua.prototype.ObjectElement.call(this,e),this.element.filter(Ha).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.meta.set("path",tn(t))})}};const eu=class extends la{constructor(e){super(e),this.element=new Ie,this.specPath=hn(["document","objects","RequestBody"])}ObjectElement(e){Zc.prototype.ObjectElement.call(this,e),ge(this.element.contentField)&&this.element.contentField.filter(tl).forEach((e,t)=>{e.meta.set("media-type",tn(t))})}};const tu=class extends xl{constructor(e){super(e),this.element=new Ho}};const su=class extends ua{constructor(e){super(e),this.element=new K,this.specPath=hn(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ha).forEach((e,t)=>{e.meta.set("runtime-expression",tn(t))})}};const nu=class extends la{constructor(e){super(e),this.element=new Me,this.specPath=hn(["document","objects","Response"])}ObjectElement(e){la.prototype.ObjectElement.call(this,e),ge(this.element.contentField)&&this.element.contentField.filter(tl).forEach((e,t)=>{e.meta.set("media-type",tn(t))}),ge(this.element.headers)&&this.element.headers.filter(_a).forEach((e,t)=>{e.meta.set("header-name",tn(t))})}};const ru=class extends pa{constructor(e){super(e),this.element=new Qo,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){pa.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!_a(e))return;const s=tn(t);e.meta.set("header-name",s)})}};const iu=class extends xl{constructor(e){super(e),this.element=new ec}};const ou=class extends pa{constructor(e){super(e),this.element=new sc,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){pa.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","link")})}};function cu(e){return"[object Number]"===Object.prototype.toString.call(e)}var au=g(function(e,t){if(!cu(e)||!cu(t))throw new TypeError("Both arguments to range must be numbers");for(var s=e<t?Math.ceil(t-e):0,n=Array(s),r=0;r<s;)n[r]=r+e,r+=1;return n});const lu=au;const uu=class extends da{constructor(e){super(e),this.element=new Te,this.specPathFixedFields=hn(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${lu(100,600).join("|")})$`).test(String(e))}ObjectElement(e){da.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(Ja).forEach((e,t)=>{const s=Hs(t);this.fieldPatternPredicate(tn(s))&&e.meta.set("http-status-code",s)})}};const pu=class extends ha{constructor(e){super(e),this.alternator=[{predicate:Kc,specPath:["document","objects","Reference"]},{predicate:Ei,specPath:["document","objects","Response"]}]}ObjectElement(e){sa.prototype.enter.call(this,e),Ga(this.element)?this.element.meta.set("referenced-element","response"):Ja(this.element)&&this.element.meta.set("http-status-code","default")}};const hu=class extends la{constructor(e){super(e),this.element=new je,this.specPath=hn(["document","objects","Operation"])}};const du=class extends Uc{constructor(e){super(e),this.element=new _o}ArrayElement(e){const t=e.node;this.element=this.element.concat(Hs(t)),e.stop()}};const mu=class extends aa{constructor(e){super(e),this.element=new ue,this.element.classes.push("parameters")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Kc(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);Ga(s)&&s.meta.set("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const fu=class extends mu{constructor(e){super(e),this.element=new Co}};const yu=class extends sa{constructor(e){super(e),this.alternator=[{predicate:Kc,specPath:["document","objects","Reference"]},{predicate:Ei,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){sa.prototype.enter.call(this,e),Ga(this.element)&&this.element.meta.set("referenced-element","requestBody")}};const gu=class extends pa{specPath;constructor(e){super(e),this.element=new No,this.specPath=e=>Kc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){ta.prototype.ObjectElement.call(this,e),this.element.filter(Ga).forEach(e=>{e.meta.set("referenced-element","callback")})}};const xu=class extends aa{constructor(e){super(e),this.element=new Bo}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ge(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const vu=class extends Aa{constructor(e){super(e),this.element=new Vo}};const bu=class extends la{constructor(e){super(e),this.element=new Fe,this.specPath=hn(["document","objects","PathItem"]),this.consumeSafe=!0}ObjectElement(e){la.prototype.ObjectElement.call(this,e),this.element.filter(Va).forEach((e,t)=>{e.meta.set("http-method",tn(t).toUpperCase())}),he(this.element.$ref)&&this.element.classes.push("reference-element")}};const wu=class extends Uc{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Eu=class extends Aa{constructor(e){super(e),this.element=new ko}};const Ou=class extends mu{constructor(e){super(e),this.element=new Fo}};const Su=class extends la{constructor(e){super(e),this.element=new Gi,this.specPath=hn(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}};const ju=class extends la{constructor(e){super(e),this.element=new Ee,this.specPath=hn(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}};const ku=class extends la{constructor(e){super(e),this.element=new we,this.specPath=hn(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};const Au=class extends pa{constructor(e){super(e),this.element=new oc,this.specPath=hn(["value"])}};const Fu=class extends aa{constructor(e){super(e),this.element=new no}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Yc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}},{fixedFields:Pu}=Li.visitors.document.objects.JSONSchema,Cu={visitors:{value:Uc,document:{objects:{OpenApi:{$visitor:ma,element:"openApi3_0",fixedFields:{openapi:fa,info:{$ref:"#/visitors/document/objects/Info"},servers:Aa,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:al,tags:Fu,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ga,element:"info",fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:xa}},Contact:{$visitor:va,element:"contact",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:ba,element:"license",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:ja,element:"server",fixedFields:{url:ka,description:{$ref:"#/visitors/value"},variables:Pa}},ServerVariable:{$visitor:Fa,element:"serverVariable",fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:ll,element:"components",fixedFields:{schemas:ql,responses:Bl,parameters:Ll,examples:Vl,requestBodies:Ul,headers:Hl,securitySchemes:zl,links:{$visitor:Gl,alias:"linksField"},callbacks:Xl}},Paths:{$visitor:Zl,element:"paths"},PathItem:{$visitor:bu,element:"pathItem",fixedFields:{$ref:wu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation",alias:"getField"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation",alias:"deleteField"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Eu,parameters:Ou}},Operation:{$visitor:hu,element:"operation",fixedFields:{tags:du,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:fu,requestBody:yu,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:gu,deprecated:{$ref:"#/visitors/value"},security:xu,servers:vu}},ExternalDocumentation:{$visitor:Wl,element:"externalDocumentation",fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:dl,element:"parameter",fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:ml,example:{$ref:"#/visitors/value"},examples:Rl,content:{$visitor:Nl,alias:"contentField"}}},RequestBody:{$visitor:eu,element:"requestBody",fixedFields:{description:{$ref:"#/visitors/value"},content:{$visitor:tu,alias:"contentField"},required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Ca,element:"mediaType",fixedFields:{schema:nl,example:{$ref:"#/visitors/value"},examples:il,encoding:ol}},Encoding:{$visitor:Yl,element:"encoding",fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Ql,style:{$ref:"#/visitors/value",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:uu,element:"responses",fixedFields:{default:pu}},Response:{$visitor:nu,element:"response",fixedFields:{description:{$ref:"#/visitors/value"},headers:ru,content:{$visitor:iu,alias:"contentField"},links:{$visitor:ou,alias:"linksField"}}},Callback:{$visitor:su,element:"callback"},Example:{$visitor:Jl,element:"example",fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Kl}},Link:{$visitor:wa,element:"link",fixedFields:{operationRef:Ea,operationId:Oa,parameters:Sa,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:fl,element:"header",fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:yl,example:{$ref:"#/visitors/value"},examples:gl,content:{$visitor:vl,alias:"contentField"}}},Tag:{$visitor:ul,element:"tag",fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:pl,element:"reference",fixedFields:{$ref:hl}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:bl,element:"schema",fixedFields:{title:Pu.title,multipleOf:Pu.multipleOf,maximum:Pu.maximum,exclusiveMaximum:Pu.exclusiveMaximum,minimum:Pu.minimum,exclusiveMinimum:Pu.exclusiveMinimum,maxLength:Pu.maxLength,minLength:Pu.minLength,pattern:Pu.pattern,maxItems:Pu.maxItems,minItems:Pu.minItems,uniqueItems:Pu.uniqueItems,maxProperties:Pu.maxProperties,minProperties:Pu.minProperties,required:Pu.required,enum:Pu.enum,type:Il,allOf:El,anyOf:Sl,oneOf:kl,not:Tl,items:{$visitor:Al,alias:"itemsField"},properties:Pl,additionalProperties:Tl,description:Pu.description,format:Pu.format,default:Pu.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:$l,element:"discriminator",fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Dl}},XML:{$visitor:_l,element:"xml",fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Su,element:"securityScheme",fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:ju,element:"oAuthFlows",fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:ku,element:"oAuthFlow",fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Au}},SecurityRequirement:{$visitor:cl,element:"securityRequirement"}},extension:{$visitor:ya}}}},Iu=()=>{const e=new Dc,t={...s,...n,isStringElement:he};return e.use(Yi),{predicates:t,namespace:e}},Mu=(e,{element:t="openApi3_0",plugins:s=[],specificationObj:n=Cu,consume:r=!1}={})=>{const i=Lc(e),o=js(n),c=o.elementMap[t];if(!c)throw new Error(`Unknown element type: "${t}"`);const a=new(Xe(c,o))({specObj:o,consume:r});return vr(i,a,{nodeTypeGetter:ar}),qc(a.element,s,{toolboxCreator:Iu})},Tu=(e,t={})=>Mu(e,{...t,element:"openApi3_0"}),$u=(e,t={})=>Mu(e,{...t,element:"info"}),Du=(e,t={})=>Mu(e,{...t,element:"contact"}),_u=(e,t={})=>Mu(e,{...t,element:"license"}),Ru=(e,t={})=>Mu(e,{...t,element:"server"}),Nu=(e,t={})=>Mu(e,{...t,element:"serverVariable"}),qu=(e,t={})=>Mu(e,{...t,element:"components"}),Bu=(e,t={})=>Mu(e,{...t,element:"paths"}),Lu=(e,t={})=>Mu(e,{...t,element:"pathItem"}),Vu=(e,t={})=>Mu(e,{...t,element:"operation"}),Uu=(e,t={})=>Mu(e,{...t,element:"externalDocumentation"}),Hu=(e,t={})=>Mu(e,{...t,element:"parameter"}),zu=(e,t={})=>Mu(e,{...t,element:"requestBody"}),Gu=(e,t={})=>Mu(e,{...t,element:"mediaType"}),Xu=(e,t={})=>Mu(e,{...t,element:"encoding"}),Ju=(e,t={})=>Mu(e,{...t,element:"responses"}),Ku=(e,t={})=>Mu(e,{...t,element:"response"}),Wu=(e,t={})=>Mu(e,{...t,element:"callback"}),Yu=(e,t={})=>Mu(e,{...t,element:"example"}),Qu=(e,t={})=>Mu(e,{...t,element:"link"}),Zu=(e,t={})=>Mu(e,{...t,element:"header"}),ep=(e,t={})=>Mu(e,{...t,element:"tag"}),tp=(e,t={})=>Mu(e,{...t,element:"reference"}),sp=(e,t={})=>Mu(e,{...t,element:"schema"}),np=(e,t={})=>Mu(e,{...t,element:"discriminator"}),rp=(e,t={})=>Mu(e,{...t,element:"xml"}),ip=(e,t={})=>Mu(e,{...t,element:"securityScheme"}),op=(e,t={})=>Mu(e,{...t,element:"oAuthFlows"}),cp=(e,t={})=>Mu(e,{...t,element:"oAuthFlow"}),ap=(e,t={})=>Mu(e,{...t,element:"securityRequirement"}),lp=Mu;return t})());
|