@speclynx/apidom-ns-asyncapi-2 4.12.0 → 4.12.1

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.
@@ -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.apidomNsAsyncApi2=t():e.apidomNsAsyncApi2=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:()=>Bl,Amqp1ChannelBindingElement:()=>Mo,Amqp1MessageBindingElement:()=>Co,Amqp1OperationBindingElement:()=>$o,Amqp1ServerBindingElement:()=>Ao,AmqpChannelBindingElement:()=>Oo,AmqpMessageBindingElement:()=>jo,AmqpOperationBindingElement:()=>ko,AmqpServerBindingElement:()=>qo,AnypointmqChannelBindingElement:()=>Po,AnypointmqMessageBindingElement:()=>Fo,AnypointmqOperationBindingElement:()=>Io,AnypointmqServerBindingElement:()=>To,AsyncAPIMediaTypes:()=>g,AsyncApi2Element:()=>X,AsyncApiVersionElement:()=>Q,BaseAlternatingVisitor:()=>Il,BaseFixedFieldsVisitor:()=>$l,BaseMapVisitor:()=>Pl,BaseMixedFieldsVisitor:()=>Fl,BasePatternedFieldsVisitor:()=>Al,BaseSpecificationVisitor:()=>Cl,ChannelBindingsElement:()=>Z,ChannelItemElement:()=>ee,ChannelsElement:()=>te,ComponentsElement:()=>se,ContactElement:()=>ne,CorrelationIDElement:()=>ie,DefaultContentTypeElement:()=>re,ExternalDocumentationElement:()=>oe,FallbackVisitor:()=>Sl,FixedFieldsVisitor:()=>El,GooglepubsubChannelBindingElement:()=>Do,GooglepubsubMessageBindingElement:()=>Vo,GooglepubsubOperationBindingElement:()=>No,GooglepubsubServerBindingElement:()=>Ro,HttpChannelBindingElement:()=>_o,HttpMessageBindingElement:()=>Lo,HttpOperationBindingElement:()=>Jo,HttpServerBindingElement:()=>Uo,IbmmqChannelBindingElement:()=>Ho,IbmmqMessageBindingElement:()=>zo,IbmmqOperationBindingElement:()=>Go,IbmmqServerBindingElement:()=>Wo,IdentifierElement:()=>ce,InfoElement:()=>ae,JmsChannelBindingElement:()=>Ko,JmsMessageBindingElement:()=>Xo,JmsOperationBindingElement:()=>Yo,JmsServerBindingElement:()=>Qo,KafkaChannelBindingElement:()=>Zo,KafkaMessageBindingElement:()=>ec,KafkaOperationBindingElement:()=>tc,KafkaServerBindingElement:()=>sc,LicenseElement:()=>le,MapVisitor:()=>jl,MercureChannelBindingElement:()=>nc,MercureMessageBindingElement:()=>ic,MercureOperationBindingElement:()=>rc,MercureServerBindingElement:()=>oc,MessageBindingsElement:()=>de,MessageElement:()=>ue,MessageExampleElement:()=>pe,MessageTraitElement:()=>he,MixedFieldsVisitor:()=>Tl,Mqtt5ChannelBindingElement:()=>dc,Mqtt5MessageBindingElement:()=>pc,Mqtt5OperationBindingElement:()=>hc,Mqtt5ServerBindingElement:()=>mc,MqttChannelBindingElement:()=>cc,MqttMessageBindingElement:()=>ac,MqttOperationBindingElement:()=>lc,MqttServerBindingElement:()=>uc,NatsChannelBindingElement:()=>gc,NatsMessageBindingElement:()=>fc,NatsOperationBindingElement:()=>yc,NatsServerBindingElement:()=>bc,OAuthFlowElement:()=>me,OAuthFlowsElement:()=>ge,OperationBindingsElement:()=>ye,OperationElement:()=>fe,OperationTraitElement:()=>be,ParameterElement:()=>ve,ParametersElement:()=>xe,PatternedFieldsVisitor:()=>Ol,PulsarChannelBindingElement:()=>vc,PulsarMessageBindingElement:()=>xc,PulsarOperationBindingElement:()=>Sc,PulsarServerBindingElement:()=>wc,RedisChannelBindingElement:()=>Bc,RedisMessageBindingElement:()=>Ec,RedisOperationBindingElement:()=>Oc,RedisServerBindingElement:()=>jc,ReferenceElement:()=>Se,SchemaElement:()=>fo,SecurityRequirementElement:()=>yo,SecuritySchemeElement:()=>bo,ServerBindingsElement:()=>xo,ServerElement:()=>vo,ServerVariableElement:()=>wo,ServersElement:()=>So,SnsChannelBindingElement:()=>kc,SnsMessageBindingElement:()=>qc,SnsOperationBindingElement:()=>Mc,SnsServerBindingElement:()=>Cc,SolaceChannelBindingElement:()=>$c,SolaceMessageBindingElement:()=>Ac,SolaceOperationBindingElement:()=>Pc,SolaceServerBindingElement:()=>Fc,SpecificationExtensionVisitor:()=>Dl,SpecificationVisitor:()=>wl,SqsChannelBindingElement:()=>Ic,SqsMessageBindingElement:()=>Tc,SqsOperationBindingElement:()=>Dc,SqsServerBindingElement:()=>Vc,StompChannelBindingElement:()=>Nc,StompMessageBindingElement:()=>Rc,StompOperationBindingElement:()=>_c,StompServerBindingElement:()=>Lc,TagElement:()=>Bo,TagsElement:()=>Eo,Visitor:()=>xl,WebSocketChannelBindingElement:()=>Jc,WebSocketMessageBindingElement:()=>Uc,WebSocketOperationBindingElement:()=>Hc,WebSocketServerBindingElement:()=>zc,default:()=>Gc,isAsyncApi2Element:()=>Wa,isAsyncApiExtension:()=>vl,isAsyncApiVersionElement:()=>Ka,isBooleanJSONSchemaElement:()=>Ga,isChannelBindingsElement:()=>Xa,isChannelItemElement:()=>Ya,isChannelsElement:()=>Qa,isComponentsElement:()=>Za,isContactElement:()=>el,isIdentifierElement:()=>tl,isInfoElement:()=>sl,isLicenseElement:()=>nl,isOperationElement:()=>il,isParameterElement:()=>rl,isParametersElement:()=>ol,isReferenceElement:()=>cl,isReferenceLikeElement:()=>bl,isSchemaElement:()=>al,isSecurityRequirementElement:()=>ll,isServerBindingsElement:()=>dl,isServerElement:()=>ul,isServerVariableElement:()=>hl,isServersElement:()=>pl,mediaTypes:()=>f,refract:()=>kg,refractAmqp1ChannelBinding:()=>lm,refractAmqp1MessageBinding:()=>um,refractAmqp1OperationBinding:()=>dm,refractAmqp1ServerBinding:()=>pm,refractAmqpChannelBinding:()=>rm,refractAmqpMessageBinding:()=>om,refractAmqpOperationBinding:()=>cm,refractAmqpServerBinding:()=>am,refractAnypointmqChannelBinding:()=>hm,refractAnypointmqMessageBinding:()=>mm,refractAnypointmqOperationBinding:()=>gm,refractAnypointmqServerBinding:()=>fm,refractAsyncApi2:()=>Oh,refractAsyncApiVersion:()=>jh,refractChannelBindings:()=>Ph,refractChannelItem:()=>Fh,refractChannels:()=>Mh,refractComponents:()=>Ih,refractContact:()=>Th,refractCorrelationID:()=>Dh,refractDefaultContentType:()=>qh,refractExternalDocumentation:()=>Vh,refractGooglepubsubChannelBinding:()=>ym,refractGooglepubsubMessageBinding:()=>bm,refractGooglepubsubOperationBinding:()=>vm,refractGooglepubsubServerBinding:()=>xm,refractHttpChannelBinding:()=>Sm,refractHttpMessageBinding:()=>wm,refractHttpOperationBinding:()=>Bm,refractHttpServerBinding:()=>Em,refractIbmmqChannelBinding:()=>Om,refractIbmmqMessageBinding:()=>jm,refractIbmmqOperationBinding:()=>km,refractIbmmqServerBinding:()=>qm,refractIdentifier:()=>kh,refractInfo:()=>Nh,refractJmsChannelBinding:()=>Mm,refractJmsMessageBinding:()=>Cm,refractJmsOperationBinding:()=>$m,refractJmsServerBinding:()=>Am,refractKafkaChannelBinding:()=>Pm,refractKafkaMessageBinding:()=>Fm,refractKafkaOperationBinding:()=>Im,refractKafkaServerBinding:()=>Tm,refractLicense:()=>Rh,refractMercureChannelBinding:()=>Dm,refractMercureMessageBinding:()=>Vm,refractMercureOperationBinding:()=>Nm,refractMercureServerBinding:()=>Rm,refractMessage:()=>_h,refractMessageBindings:()=>Lh,refractMessageExample:()=>Jh,refractMessageTrait:()=>Uh,refractMqtt5ChannelBinding:()=>Hm,refractMqtt5MessageBinding:()=>zm,refractMqtt5OperationBinding:()=>Gm,refractMqtt5ServerBinding:()=>Wm,refractMqttChannelBinding:()=>_m,refractMqttMessageBinding:()=>Lm,refractMqttOperationBinding:()=>Jm,refractMqttServerBinding:()=>Um,refractNatsChannelBinding:()=>Km,refractNatsMessageBinding:()=>Xm,refractNatsOperationBinding:()=>Ym,refractNatsServerBinding:()=>Qm,refractOAuthFlow:()=>Hh,refractOAuthFlows:()=>zh,refractOperation:()=>Gh,refractOperationBindings:()=>Wh,refractOperationTrait:()=>Kh,refractParameter:()=>Xh,refractParameters:()=>$h,refractPulsarChannelBinding:()=>Zm,refractPulsarMessageBinding:()=>eg,refractPulsarOperationBinding:()=>tg,refractPulsarServerBinding:()=>sg,refractRedisChannelBinding:()=>ng,refractRedisMessageBinding:()=>ig,refractRedisOperationBinding:()=>rg,refractRedisServerBinding:()=>og,refractReference:()=>Yh,refractSchema:()=>Qh,refractSecurityRequirement:()=>Zh,refractSecurityScheme:()=>em,refractServer:()=>tm,refractServerBindings:()=>sm,refractServerVariable:()=>nm,refractServers:()=>Ch,refractSnsChannelBinding:()=>cg,refractSnsMessageBinding:()=>ag,refractSnsOperationBinding:()=>lg,refractSnsServerBinding:()=>ug,refractSolaceChannelBinding:()=>dg,refractSolaceMessageBinding:()=>pg,refractSolaceOperationBinding:()=>hg,refractSolaceServerBinding:()=>mg,refractSqsChannelBinding:()=>gg,refractSqsMessageBinding:()=>fg,refractSqsOperationBinding:()=>yg,refractSqsServerBinding:()=>bg,refractStompChannelBinding:()=>vg,refractStompMessageBinding:()=>xg,refractStompOperationBinding:()=>Sg,refractStompServerBinding:()=>wg,refractTag:()=>im,refractTags:()=>Ah,refractWebSocketChannelBinding:()=>Bg,refractWebSocketMessageBinding:()=>Eg,refractWebSocketOperationBinding:()=>Og,refractWebSocketServerBinding:()=>jg,refractorPluginReplaceEmptyElement:()=>za});var s={};e.r(s),e.d(s,{isAsyncApi2Element:()=>Wa,isAsyncApiVersionElement:()=>Ka,isBooleanJSONSchemaElement:()=>Ga,isChannelBindingsElement:()=>Xa,isChannelItemElement:()=>Ya,isChannelsElement:()=>Qa,isComponentsElement:()=>Za,isContactElement:()=>el,isIdentifierElement:()=>tl,isInfoElement:()=>sl,isLicenseElement:()=>nl,isOperationElement:()=>il,isParameterElement:()=>rl,isParametersElement:()=>ol,isReferenceElement:()=>cl,isSchemaElement:()=>al,isSecurityRequirementElement:()=>ll,isServerBindingsElement:()=>dl,isServerElement:()=>ul,isServerVariableElement:()=>hl,isServersElement:()=>pl});var n={};function i(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function r(e){return function t(s){return 0===arguments.length||i(s)?t:e.apply(this,arguments)}}function o(e,t){return t[e<0?t.length+e:e]}e.r(n),e.d(n,{isAsyncApiExtension:()=>vl,isReferenceLikeElement:()=>bl});const c=r(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 d=u;const p=class extends d{};const h=class extends p{};const m=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new h("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new h("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new h("latest method in MediaTypes class is not yet implemented.")}};class g extends m{filterByFormat(e="generic"){const t="generic"===e?"asyncapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="2.6.0",t="generic"){const s="generic"===t?`vnd.aai.asyncapi;version=${e}`:`vnd.aai.asyncapi+${t};version=${e}`;return this.find(e=>e.includes(s))||this.unknownMediaType}latest(e="generic"){return c(this.filterByFormat(e))}}const f=new g("application/vnd.aai.asyncapi;version=2.0.0","application/vnd.aai.asyncapi+json;version=2.0.0","application/vnd.aai.asyncapi+yaml;version=2.0.0","application/vnd.aai.asyncapi;version=2.1.0","application/vnd.aai.asyncapi+json;version=2.1.0","application/vnd.aai.asyncapi+yaml;version=2.1.0","application/vnd.aai.asyncapi;version=2.2.0","application/vnd.aai.asyncapi+json;version=2.2.0","application/vnd.aai.asyncapi+yaml;version=2.2.0","application/vnd.aai.asyncapi;version=2.3.0","application/vnd.aai.asyncapi+json;version=2.3.0","application/vnd.aai.asyncapi+yaml;version=2.3.0","application/vnd.aai.asyncapi;version=2.4.0","application/vnd.aai.asyncapi+json;version=2.4.0","application/vnd.aai.asyncapi+yaml;version=2.4.0","application/vnd.aai.asyncapi;version=2.5.0","application/vnd.aai.asyncapi+json;version=2.5.0","application/vnd.aai.asyncapi+yaml;version=2.5.0","application/vnd.aai.asyncapi;version=2.6.0","application/vnd.aai.asyncapi+json;version=2.6.0","application/vnd.aai.asyncapi+yaml;version=2.6.0");function y(e){return function t(s,n){switch(arguments.length){case 0:return t;case 1:return i(s)?t:r(function(t){return e(s,t)});default:return i(s)&&i(n)?t:i(s)?r(function(t){return e(t,n)}):i(n)?r(function(t){return e(s,t)}):e(s,n)}}}function b(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function v(e,t,s){for(var n=0,i=s.length;n<i;){if(e(t,s[n]))return!0;n+=1}return!1}function x(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const S="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var w=Object.prototype.toString;const B=function(){return"[object Arguments]"===w.call(arguments)?function(e){return"[object Arguments]"===w.call(e)}:function(e){return x("callee",e)}}();var E=!{toString:null}.propertyIsEnumerable("toString"),O=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=function(){return arguments.propertyIsEnumerable("length")}(),k=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},q="function"!=typeof Object.keys||j?r(function(e){if(Object(e)!==e)return[];var t,s,n=[],i=j&&B(e);for(t in e)!x(t,e)||i&&"length"===t||(n[n.length]=t);if(E)for(s=O.length-1;s>=0;)x(t=O[s],e)&&!k(n,t)&&(n[n.length]=t),s-=1;return n}):r(function(e){return Object(e)!==e?[]:Object.keys(e)});const M=q;const C=r(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function $(e,t,s,n){var i=b(e);function r(e,t){return A(e,t,s.slice(),n.slice())}return!v(function(e,t){return!v(r,t,e)},b(t),i)}function A(e,t,s,n){if(S(e,t))return!0;var i=C(e);if(i!==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(i){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||!S(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!S(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 r=s.length-1;r>=0;){if(s[r]===e)return n[r]===t;r-=1}switch(i){case"Map":return e.size===t.size&&$(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&$(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=M(e);if(o.length!==M(t).length)return!1;var c=s.concat([e]),a=n.concat([t]);for(r=o.length-1;r>=0;){var l=o[r];if(!x(l,t)||!A(t[l],e[l],c,a))return!1;r-=1}return!0}const P=y(function(e,t){return A(e,t,[],[])});function F(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function I(e,t,s){if(s||(s=new T),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n=function(n){var i=s.get(e);if(i)return i;for(var r in s.set(e,n),e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=t?I(e[r],!0,s):e[r]);return n};switch(C(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return F(e);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 T=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((r=s[n])[0]===e)return r[1]}else{var i=this.hash(e);if(s=this.map[i])for(n=0;n<s.length;n+=1){var r;if((r=s[n])[0]===e)return r[1]}}},e}();const D=r(function(e){return null!=e&&"function"==typeof e.clone?e.clone():I(e,!0)});class V{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 V;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 V;for(const[t,s]of Object.entries(this))s instanceof this.Element?e.set(t,this.cloneDeepElement(s)):e.set(t,D(s));return e}}const N=V;const R=class{key;value;constructor(e,t){this.key=e,this.value=t}toValue(){return{key:this.key?.toValue(),value:this.value?.toValue()}}};class _{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,i=s.key;if(void 0===n||void 0===i)throw new Error("MemberElement must have both key and value");return void 0!==t?e.call(t,n,i,s):e(n,i,s)})}filter(e,t){const s=this.elements.filter(s=>{const n=s.value,i=s.key;return void 0!==n&&void 0!==i&&(void 0!==t?e.call(t,n,i,s):e(n,i,s))});return new _(s)}reject(e,t){const s=[];for(const n of this.elements){const i=n.value,r=n.key;void 0!==i&&void 0!==r&&(e.call(t,i,r,n)||s.push(n))}return new _(s)}forEach(e,t){this.elements.forEach((s,n)=>{const i=s.value,r=s.key;void 0!==i&&void 0!==r&&(void 0!==t?e.call(t,i,r,s,n):e(i,r,s,n))})}find(e,t){return this.elements.find(s=>{const n=s.value,i=s.key;return void 0!==n&&void 0!==i&&(void 0!==t?e.call(t,n,i,s):e(n,i,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=_,J=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 R)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 J;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 R){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 R?e.toValue():Array.isArray(e)?e.map(e=>e.toValue()):e}equals(e){const t=e instanceof U?e.toValue():e;return P(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,i=void 0===s.results?[]:s.results;for(let t=0;t<this._content.length;t+=1){const s=this._content[t],r=s;n&&"function"==typeof r.findElements&&r.findElements(e,{results:i,recursive:n}),e(s,t,void 0)&&i.push(s)}return i}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 W=class extends H{constructor(e,t,s,n){super(new R,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 K=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 W(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,i,r)=>{const o=e.call(t,n,i,r);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],i=e(n,s.value,s.key,s,this);n=void 0===i?i:this.refract(i)}return n}empty(){return new this.constructor([])}};const X=class extends K{constructor(e,t,s){super(e,t,s),this.element="asyncApi2",this.classes.push("api")}get asyncapi(){return this.get("asyncapi")}set asyncapi(e){this.set("asyncapi",e)}get idField(){return this.get("id")}set idField(e){this.set("id",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 defaultContentType(){return this.get("defaultContentType")}set defaultContentType(e){this.set("defaultContentType",e)}get channels(){return this.get("channels")}set channels(e){this.set("channels",e)}get components(){return this.get("components")}set components(e){this.set("components",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 Y=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 Q=class extends Y{constructor(e,t,s){super(e,t,s),this.element="asyncApiVersion",this.classes.push("spec-version"),this.classes.push("version")}};const Z=class extends K{constructor(e,t,s){super(e,t,s),this.element="channelBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}};const ee=class extends K{constructor(e,t,s){super(e,t,s),this.element="channelItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get subscribe(){return this.get("subscribe")}set subscribe(e){this.set("subscribe",e)}get publish(){return this.get("publish")}set publish(e){this.set("publish",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}};const te=class extends K{constructor(e,t,s){super(e,t,s),this.element="channels"}};const se=class extends K{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 servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get serverVariables(){return this.get("serverVariables")}set serverVariables(e){this.set("serverVariables",e)}get messages(){return this.get("messages")}set messages(e){this.set("messages",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get correlationIds(){return this.get("correlationIds")}set correlationIds(e){this.set("correlationIds",e)}get operationTraits(){return this.get("operationTraits")}set operationTraits(e){this.set("operationTraits",e)}get messageTraits(){return this.get("messageTraits")}set messageTraits(e){this.set("messageTraits",e)}get serverBindings(){return this.get("serverBindings")}set serverBindings(e){this.set("serverBindings",e)}get channelBindings(){return this.get("channelBindings")}set channelBindings(e){this.set("channelBindings",e)}get operationBindings(){return this.get("operationBindings")}set operationBindings(e){this.set("operationBindings",e)}get messageBindings(){return this.get("messageBindings")}set messageBindings(e){this.set("messageBindings",e)}};const ne=class extends K{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 ie=class extends K{constructor(e,t,s){super(e,t,s),this.element="correlationID"}get description(){return this.get("description")}set description(e){this.set("description",e)}get location(){return this.get("location")}set location(e){this.set("location",e)}};const re=class extends Y{constructor(e,t,s){super(e,t,s),this.element="defaultContentType"}};const oe=class extends K{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 ce=class extends Y{constructor(e,t,s){super(e,t,s),this.element="identifier"}};const ae=class extends K{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 version(){return this.get("version")}set version(e){this.set("version",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}};const le=class extends K{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 ue=class extends K{constructor(e,t,s){super(e,t,s),this.element="message"}get messageId(){return this.get("messageId")}set messageId(e){this.set("messageId",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get payload(){return this.get("payload")}set payload(e){this.set("payload",e)}get correlationId(){return this.get("correlationId")}set correlationId(e){this.set("correlationId",e)}get schemaFormat(){return this.get("schemaFormat")}set schemaFormat(e){this.set("schemaFormat",e)}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get title(){return this.get("title")}set title(e){this.set("title",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 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)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get traits(){return this.get("traits")}set traits(e){this.set("traits",e)}};const de=class extends K{constructor(e,t,s){super(e,t,s),this.element="messageBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}};const pe=class extends K{constructor(e,t,s){super(e,t,s),this.element="messageExample"}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get payload(){return this.get("payload")}set payload(e){this.set("payload",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};const he=class extends K{constructor(e,t,s){super(e,t,s),this.element="messageTrait"}get messageId(){return this.get("messageId")}set messageId(e){this.set("messageId",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get correlationId(){return this.get("correlationId")}set correlationId(e){this.set("correlationId",e)}get schemaFormat(){return this.get("schemaFormat")}set schemaFormat(e){this.set("schemaFormat",e)}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get title(){return this.get("title")}set title(e){this.set("title",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 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)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const me=class extends K{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 ge=class extends K{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 fe=class extends K{constructor(e,t,s){super(e,t,s),this.element="operation"}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",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 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)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get traits(){return this.get("traits")}set traits(e){this.set("traits",e)}get message(){return this.get("message")}set message(e){this.set("message",e)}};const ye=class extends K{constructor(e,t,s){super(e,t,s),this.element="operationBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}};const be=class extends K{constructor(e,t,s){super(e,t,s),this.element="operationTrait"}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",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 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)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}};const ve=class extends K{constructor(e,t,s){super(e,t,s),this.element="parameter"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get location(){return this.get("location")}set location(e){this.set("location",e)}};const xe=class extends K{constructor(e,t,s){super(e,t,s),this.element="parameters"}};const Se=class extends K{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("json-reference"),this.classes.push("asyncapi-reference")}set $ref(e){this.set("$ref",e)}get $ref(){return this.get("$ref")}};function we(e,t,s){for(var n=0,i=s.length;n<i;)t=e(t,s[n]),n+=1;return t}var Be=y(function(e,t){return we(function(s,n){return s[n]=e(t[n],n,t),s},{},M(t))});const Ee=Be;const Oe=r(function(e){return null==e});var je=y(function(e,t){if(0===e.length||Oe(t))return!1;for(var s=t,n=0;n<e.length;){if(Oe(s)||!x(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const ke=je;var qe=y(function(e,t){return ke([e],t)});const Me=qe;function Ce(e){return function t(s,n,o){switch(arguments.length){case 0:return t;case 1:return i(s)?t:y(function(t,n){return e(s,t,n)});case 2:return i(s)&&i(n)?t:i(s)?y(function(t,s){return e(t,n,s)}):i(n)?y(function(t,n){return e(s,t,n)}):r(function(t){return e(s,n,t)});default:return i(s)&&i(n)&&i(o)?t:i(s)&&i(n)?y(function(t,s){return e(t,s,o)}):i(s)&&i(o)?y(function(t,s){return e(t,n,s)}):i(n)&&i(o)?y(function(t,n){return e(s,t,n)}):i(s)?r(function(t){return e(t,n,o)}):i(n)?r(function(t){return e(s,t,o)}):i(o)?r(function(t){return e(s,n,t)}):e(s,n,o)}}}const $e=Number.isInteger||function(e){return(e|0)===e};const Ae=function(e,t){if(null!=t)return $e(e)?o(e,t):t[e]};const Pe=y(Ae);const Fe=Ce(function(e,t,s){return e(Pe(t,s))});function Ie(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var i=e[n];s=$e(i)?o(i,s):s[i]}return s}const Te=y(Ie);function De(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,i){return t.apply(this,arguments)};case 5:return function(e,s,n,i,r){return t.apply(this,arguments)};case 6:return function(e,s,n,i,r,o){return t.apply(this,arguments)};case 7:return function(e,s,n,i,r,o,c){return t.apply(this,arguments)};case 8:return function(e,s,n,i,r,o,c,a){return t.apply(this,arguments)};case 9:return function(e,s,n,i,r,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,s,n,i,r,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 Ve(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Ne=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Re(e){return"[object String]"===Object.prototype.toString.call(e)}const _e=r(function(e){return!!Ne(e)||!!e&&("object"==typeof e&&(!Re(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Le="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Je(e,t,s){return function(n,i,r){if(_e(r))return e(n,i,r);if(null==r)return i;if("function"==typeof r["fantasy-land/reduce"])return t(n,i,r,"fantasy-land/reduce");if(null!=r[Le])return s(n,i,r[Le]());if("function"==typeof r.next)return s(n,i,r);if("function"==typeof r.reduce)return t(n,i,r,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ue(e,t,s){for(var n=0,i=s.length;n<i;){if((t=e["@@transducer/step"](t,s[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var He=y(function(e,t){return De(e.length,function(){return e.apply(t,arguments)})});const ze=He;function Ge(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 We(e,t,s,n){return e["@@transducer/result"](s[n](ze(e["@@transducer/step"],e),t))}const Ke=Je(Ue,We,Ge);var Xe=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 Ye=Ce(function(e,t,s){return Ke("function"==typeof e?new Xe(e):e,t,s)});function Qe(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return Ne(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const Ze=Ce(Qe("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const et=r(Qe("tail",Ze(1,1/0)));function tt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return De(arguments[0].length,Ye(Ve,arguments[0],et(arguments)))}var st=function(e,t){switch(arguments.length){case 0:return st;case 1:return function t(s){return 0===arguments.length?t:S(e,s)};default:return S(e,t)}};const nt=st;function it(e,t){return function(e,t,s){var n,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;s<e.length;){if(0===(i=e[s])&&1/i===n)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(i=e[s])&&i!=i)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(P(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function rt(e,t){for(var s=0,n=t.length,i=Array(n);s<n;)i[s]=e(t[s]),s+=1;return i}function ot(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 ct=function(e){return(e<10?"0":"")+e};const at="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ct(e.getUTCMonth()+1)+"-"+ct(e.getUTCDate())+"T"+ct(e.getUTCHours())+":"+ct(e.getUTCMinutes())+":"+ct(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function lt(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!Ne(n)){for(var i=0;i<e.length;){if("function"==typeof n[e[i]])return n[e[i]].apply(n,Array.prototype.slice.call(arguments,0,-1));i+=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 ut(e){return"[object Object]"===Object.prototype.toString.call(e)}const dt=function(){return this.xf["@@transducer/init"]()},pt=function(e){return this.xf["@@transducer/result"](e)};var ht=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=dt,e.prototype["@@transducer/result"]=pt,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function mt(e){return function(t){return new ht(e,t)}}var gt=y(lt(["fantasy-land/filter","filter"],mt,function(e,t){return ut(t)?we(function(s,n){return e(t[n])&&(s[n]=t[n]),s},{},M(t)):(s=t,"[object Map]"===Object.prototype.toString.call(s)?function(e,t){for(var s=new Map,n=t.entries(),i=n.next();!i.done;)e(i.value[1])&&s.set(i.value[0],i.value[1]),i=n.next();return s}(e,t):function(e,t){for(var s=0,n=t.length,i=[];s<n;)e(t[s])&&(i[i.length]=t[s]),s+=1;return i}(e,t));var s}));const ft=gt;const yt=y(function(e,t){return ft((s=e,function(){return!s.apply(this,arguments)}),t);var s});function bt(e,t){var s=function(s){var n=t.concat([e]);return it(s,n)?"<Circular>":bt(s,n)},n=function(e,t){return rt(function(t){return ot(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+rt(s,e).join(", ")+"))";case"[object Array]":return"["+rt(s,e).concat(n(e,yt(function(e){return/^\d+$/.test(e)},M(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):ot(at(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())+")":ot(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+n(e,M(e)).join(", ")+"}"}}const vt=r(function(e){return bt(e,[])});const xt=Ce(function(e,t,s){return e(Ie(t,s))});function St(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const wt=y(function(e,t){return e&&t});function Bt(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function Et(e,t,s,n){return s[n](e,t)}const Ot=Je(we,Et,Bt);var jt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=dt,e.prototype["@@transducer/result"]=pt,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const kt=function(e){return function(t){return new jt(e,t)}};function qt(e,t,s){return function(){for(var n=[],r=0,o=e,c=0,a=!1;c<t.length||r<arguments.length;){var l;c<t.length&&(!i(t[c])||r>=arguments.length)?l=t[c]:(l=arguments[r],r+=1),n[c]=l,i(l)?a=!0:o-=1,c+=1}return!a&&o<=0?s.apply(this,n):De(Math.max(0,o),qt(e,n,s))}}var Mt=y(function(e,t){return 1===e?r(t):De(e,qt(e,[],t))});const Ct=Mt;var $t=y(lt(["fantasy-land/map","map"],kt,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Ct(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return we(function(s,n){return s[n]=e(t[n]),s},{},M(t));default:return rt(e,t)}}));const At=$t;const Pt=y(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))}:Ot(function(e,s){return function(e,t){var s;t=t||[];var n=(e=e||[]).length,i=t.length,r=[];for(s=0;s<n;)r[r.length]=e[s],s+=1;for(s=0;s<i;)r[r.length]=t[s],s+=1;return r}(e,At(s,t))},[],e)});var Ft=y(function(e,t){var s=Ct(e,t);return Ct(e,function(){return we(Pt,At(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const It=Ft;var Tt=r(function(e){return It(e.length,e)});const Dt=Tt;const Vt=y(function(e,t){return St(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Dt(wt)(e,t)});const Nt=P(null);const Rt=Dt(r(function(e){return!e}));const _t=Rt(Nt);function Lt(e){return Lt="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},Lt(e)}const Jt=function(e){return"object"===Lt(e)};const Ut=Ct(1,Vt(_t,Jt));const Ht=y(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 i=s(typeof e,typeof t);if(void 0!==i)return i===typeof e?e:t;var r=vt(e),o=s(r,vt(t));return void 0!==o&&o===r?e:t});const zt=y(function(e,t){return At(Pe(e),t)});const Gt=r(function(e){return Ct(Ye(Ht,0,zt("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 Wt=Ct(1,tt(C,nt("GeneratorFunction")));const Kt=Ct(1,tt(C,nt("AsyncFunction")));const Xt=Gt([tt(C,nt("Function")),Wt,Kt]);var Yt=tt(C,nt("Object")),Qt=tt(vt,P(vt(Object))),Zt=xt(Vt(Xt,Qt),["constructor"]);const es=Ct(1,function(e){if(!Ut(e)||!Yt(e))return!1;var t=Object.getPrototypeOf(e);return!!Nt(t)||Zt(t)});const ts=Ct(1,tt(C,nt("String")));var ss=r(function(e){return Ct(e.length,e)});const ns=ss;const is=y(function(e,t){return Ct(e+1,function(){var s=arguments[e];if(null!=s&&St(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(vt(s)+' does not have a method named "'+t+'"')})});const rs=is(1,"split");var os=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=dt,e.prototype["@@transducer/result"]=pt,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 cs(e){return function(t){return new os(e,t)}}const as=y(lt(["dropWhile"],cs,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return Ze(s,1/0,t)}));const ls=is(1,"join");var us=r(function(e){return Ct(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 ds=us(y(it));const ps=ns(function(e,t){return tt(rs(""),as(ds(e)),ls(""))(t)}),hs=new WeakMap,ms=e=>{if(hs.has(e))return hs.get(e);const t={},s=(e,n,i)=>("string"==typeof e.element&&(t[e.element]=e.$visitor?[...i,"$visitor"]:i),Ee((e,t)=>{const r=[...i,t];if(es(e)&&Me("$ref",e)&&Fe(ts,"$ref",e)){const t=Te(["$ref"],e),s=ps("#/",t),i=Te(s.split("/"),n),{$ref:r,...o}=e;return Object.keys(o).length>0&&es(i)?{...i,...o}:i}return es(e)?s(e,n,r):e},e)),n=s(e,e,[]);return n.elementMap=t,hs.set(e,n),n};const gs=class extends K{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 fs=class extends K{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 ys=class extends K{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 bs=class extends K{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)}};const vs=class extends H{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}};const xs=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 Ss=class extends H{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}};const ws=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 i=e.call(t,n);i&&s.push(i)}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([])}},Bs=e=>e instanceof H,Es=e=>e instanceof Y,Os=e=>e instanceof vs,js=e=>e instanceof xs,ks=e=>e instanceof Ss,qs=e=>e instanceof ws,Ms=e=>e instanceof K,Cs=e=>e instanceof W,$s=e=>void 0!==e.style,As=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,Ps=(e,t)=>0===t.length||!!Bs(e)&&(!e.isMetaEmpty&&(!!e.hasMetaProperty("classes")&&t.every(t=>e.classes.includes(t))));class Fs extends Y{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:i,endCharacter:r,endOffset:o}=e;if("number"!=typeof t||"number"!=typeof s||"number"!=typeof n||"number"!=typeof i||"number"!=typeof r||"number"!=typeof o)return;const c="sm1:"+[t,s,n,i,r,o].map(Ts).join("");const a=new Fs(c);return a.startLine=t,a.startCharacter=s,a.startOffset=n,a.endLine=i,a.endCharacter=r,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=Ds(t,n);s.push(e.value),n=e.next}return s}(this.content))}}const Is="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ts(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 Ds(e,t=0){let s=0,n=0,i=t;for(;;){const t=e[i++],r=Is.indexOf(t);if(-1===r)throw new Error(`Invalid Base64 VLQ char: ${t}`);if(s|=(31&r)<<n,n+=5,!!!(32&r))break}return{value:s>>>0,next:i}}const Vs=Fs;const Ns=class extends d{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 Ns{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const _s=class extends Rs{};const Ls=class extends Rs{},Js=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const i=Gs(e);s.set(e,i);const{content:r}=e;return Array.isArray(r)?i.content=r.map(e=>Js(e,n)):Bs(r)?i.content=Js(r,n):i.content=r instanceof R?Us(r,n):r,i},Us=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const{key:i,value:r}=e,o=void 0!==i?Js(i,n):void 0,c=void 0!==r?Js(r,n):void 0,a=new R(o,c);return s.set(e,a),a},Hs=(e,t={})=>{if(e instanceof R)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 i=[...e].map(e=>Js(e,n)),r=new L(i);return s.set(e,r),r})(e,t);if(Bs(e))return Js(e,t);throw new _s("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 R(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)),As(e)&&Vs.transfer(e,t),$s(e)&&(t.style=D(e.style));const{content:s}=e;return Bs(s)?t.content=Gs(s):Array.isArray(s)?t.content=[...s]:t.content=s instanceof R?zs(s):s,t},Ws=e=>{if(e instanceof R)return zs(e);if(e instanceof L)return(e=>{const t=[...e];return new L(t)})(e);if(Bs(e))return Gs(e);throw new Ls("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ws.safe=e=>{try{return Ws(e)}catch{return e}};const Ks=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 Xs=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 Ys=class extends Y{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 Qs=class extends Y{constructor(e,t,s){super(e,t,s),this.element="comment"}};const Zs=class extends ws{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.filter(e=>Ps(e,["api"])).first}get results(){return this.filter(e=>Ps(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&&Ps(e,["warning"]))}get errors(){return this.filter(e=>"annotation"===e.element&&Ps(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)}},en=e=>e instanceof Ks,tn=e=>e instanceof Xs,sn=e=>{if(!Bs(e))return e;if(Es(e)||Os(e)||ks(e)||js(e))return e.toValue();const t=new WeakMap,s=e=>{if(!Bs(e))return e;if(Ms(e)){if(t.has(e))return t.get(e);const n={};return t.set(e,n),e.forEach((e,t)=>{const i=s(t),r=s(e);"string"==typeof i&&(n[i]=r)}),n}if(qs(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 tn(e)?String(e.toValue()):en(e)?Es(e.href)?e.href.toValue():"":e.toValue()};return s(e)},nn=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)},rn=(e,t)=>t.clone&&t.isMergeableElement(e)?cn(nn(e),e,t):e,on={clone:!0,isMergeableElement:e=>Ms(e)||qs(e),arrayElementMerge:(e,t,s)=>new(0,e.constructor)(e.concat(t).map(e=>rn(e,s))),objectElementMerge:(e,t,s)=>{const n=Ms(e)?nn(e):nn(t);return Ms(e)&&e.forEach((e,t,i)=>{const r=Ws(i);r.value=rn(e,s),n.content.push(r)}),t.forEach((t,i,r)=>{const o=sn(i);let c;if(Ms(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=Ws(r),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return cn;const s=t.customMerge(e,t);return"function"==typeof s?s:cn})(i,s)(n,t,s)}else c=Ws(r),c.value=rn(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},cn=(e,t,s)=>{const n={...on,...s};n.isMergeableElement=n.isMergeableElement??on.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??on.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??on.objectElementMerge;const i=qs(t);if(!(i===qs(e)))return rn(t,n);const r=i&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(e,t,n):n.objectElementMerge(e,t,n);return e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty?t.isMetaEmpty||(r.meta=t.meta.cloneDeep()):r.meta=e.meta.cloneDeep():r.meta=(e=>"function"!=typeof e.customMetaMerge?e=>e.cloneDeep():e.customMetaMerge)(n)(e.meta,t.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty?t.isAttributesEmpty||(r.attributes=Hs(t.attributes)):r.attributes=Hs(e.attributes):r.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Hs(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),r};cn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new K:e.reduce((e,s)=>cn(e,s,t),nn(e[0]))};const an=cn;class ln extends K{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 ln(e.style)}applyTo(e){e.style=this.toValue()}}const un=ln;const dn=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=an(t.attributes,e.attributes),Vs.transfer(e,t),un.transfer(e,t)}};const pn=class extends dn{enter(e){this.element=this.consume?e.node:Hs(e.node),e.stop()}};const hn=r(function(e){return function(){return e}});const mn=y(function(e,t){return null==t||t!=t?e:t});const gn=hn(void 0);const fn=P(gn());const yn=r(function(e){return Ct(Ye(Ht,0,zt("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 bn=r(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:Ne(e)?[]:Re(e)?"":ut(e)?{}:B(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 vn=bn;const xn=r(function(e){return null!=e&&P(e,vn(e))});const Sn=r(function(e){return!xn(e)});const wn=y(function(e,t){return e||t});const Bn=Ct(1,Vt(_t,y(function(e,t){return St(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Dt(wn)(e,t)})(Jt,Xt)));var En=Rt(Bn);const On=yn([ts,En,Sn]);const jn=y(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});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 qn 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 Mn=qn;const Cn=function(){const e=An,t=$n,s=this,n="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let i,r,o,c,a,l,u,d=0,p=0,h=0,m=0,g=0,f=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(y,b,x,S)=>{const w=`${n}parse(): `;d=0,p=0,h=0,m=0,g=0,i=void 0,r=void 0,o=void 0,c=void 0,f.refresh(),a=void 0,l=void 0,u=void 0,c=t.stringToChars(x),i=y.rules,r=y.udts;const B=b.toLowerCase();let E;for(const e in i)if(i.hasOwnProperty(e)&&B===i[e].lower){E=i[e].index;break}if(void 0===E)throw new Error(`${w}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(a=[],l=[],t=0;t<i.length;t+=1)a[t]=void 0;for(t=0;t<r.length;t+=1)l[t]=void 0;const c=[];for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(t=0;t<r.length;t+=1)c.push(r[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<i.length?a[t]=o:l[t-i.length]=o}})(),s.trace&&s.trace.init(i,r,c),s.stats&&s.stats.init(i,r),s.ast&&s.ast.init(i,r,c),u=S,o=[{type:e.RNM,index:E}],v(0,0),o=void 0;let O=!1;switch(f.state){case e.ACTIVE:throw new Error(`${w}final state should never be 'ACTIVE'`);case e.NOMATCH:O=!1;break;case e.EMPTY:case e.MATCH:O=f.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:O,state:f.state,stateName:e.idName(f.state),length:c.length,matched:f.phraseLength,maxMatched:g,maxTreeDepth:h,nodeHits:m}};const y=(t,s,i,r)=>{if(s.phraseLength>i){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${i}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!r)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}`)}},b=(t,a)=>{let p,h,m;const g=o[t],y=r[g.index];f.UdtIndex=y.index,d||(m=s.ast&&s.ast.udtDefined(g.index),m&&(h=i.length+g.index,p=s.ast.getLength(),s.ast.down(h,y.name)));const b=c.length-a;l[g.index](f,c,a,u),((t,s,i)=>{if(s.phraseLength>i){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${i}`,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}`)}})(y,f,b),d||m&&(f.state===e.NOMATCH?s.ast.setLength(p):s.ast.up(h,y.name,a,f.phraseLength))},v=(t,r)=>{const l=`${n}opExecute(): `,x=o[t];switch(m+=1,p>h&&(h=p),p+=1,f.refresh(),s.trace&&s.trace.down(x,r),x.type){case e.ALT:((t,s)=>{const n=o[t];for(let t=0;t<n.children.length&&(v(n.children[t],s),f.state===e.NOMATCH);t+=1);})(t,r);break;case e.CAT:((t,n)=>{let i,r,c,a;const l=o[t];s.ast&&(r=s.ast.getLength()),i=!0,c=n,a=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],c),f.state===e.NOMATCH){i=!1;break}c+=f.phraseLength,a+=f.phraseLength}i?(f.state=0===a?e.EMPTY:e.MATCH,f.phraseLength=a):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(r))})(t,r);break;case e.REP:((t,n)=>{let i,r,a,l;const u=o[t];if(0===u.max)return f.state=e.EMPTY,void(f.phraseLength=0);for(r=n,a=0,l=0,s.ast&&(i=s.ast.getLength());!(r>=c.length)&&(v(t+1,r),f.state!==e.NOMATCH)&&f.state!==e.EMPTY&&(l+=1,a+=f.phraseLength,r+=f.phraseLength,l!==u.max););f.state===e.EMPTY||l>=u.min?(f.state=0===a?e.EMPTY:e.MATCH,f.phraseLength=a):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,r);break;case e.RNM:((t,n)=>{let r,l,p;const h=o[t],m=i[h.index],g=a[m.index];if(d||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(r=s.ast.getLength(),s.ast.down(h.index,i[h.index].name))),g){const t=c.length-n;g(f,c,n,u),y(m,f,t,!0),f.state===e.ACTIVE&&(p=o,o=m.opcodes,v(0,n),o=p,g(f,c,n,u),y(m,f,t,!1))}else p=o,o=m.opcodes,v(0,n,f),o=p;d||l&&(f.state===e.NOMATCH?s.ast.setLength(r):s.ast.up(h.index,m.name,n,f.phraseLength))})(t,r);break;case e.TRG:((t,s)=>{const n=o[t];f.state=e.NOMATCH,s<c.length&&n.min<=c[s]&&c[s]<=n.max&&(f.state=e.MATCH,f.phraseLength=1)})(t,r);break;case e.TBS:((t,s)=>{const n=o[t],i=n.string.length;if(f.state=e.NOMATCH,s+i<=c.length){for(let e=0;e<i;e+=1)if(c[s+e]!==n.string[e])return;f.state=e.MATCH,f.phraseLength=i}})(t,r);break;case e.TLS:((t,s)=>{let n;const i=o[t];f.state=e.NOMATCH;const r=i.string.length;if(0!==r){if(s+r<=c.length){for(let e=0;e<r;e+=1)if(n=c[s+e],n>=65&&n<=90&&(n+=32),n!==i.string[e])return;f.state=e.MATCH,f.phraseLength=r}}else f.state=e.EMPTY})(t,r);break;case e.UDT:b(t,r);break;case e.AND:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.EMPTY;break;case e.NOMATCH:f.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${f.state}`)}})(t,r);break;case e.NOT:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.NOMATCH;break;case e.NOMATCH:f.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${f.state}`)}})(t,r);break;default:throw new Error(`${l}unrecognized operator`)}d||r+f.phraseLength>g&&(g=r+f.phraseLength),s.stats&&s.stats.collect(x,f),s.trace&&s.trace.up(x,f.state,r,f.phraseLength),p-=1}},$n={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)}},An={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 An.ALT:return"ALT";case An.CAT:return"CAT";case An.REP:return"REP";case An.RNM:return"RNM";case An.TRG:return"TRG";case An.TBS:return"TBS";case An.TLS:return"TLS";case An.UDT:return"UDT";case An.AND:return"AND";case An.NOT:return"NOT";case An.ACTIVE:return"ACTIVE";case An.EMPTY:return"EMPTY";case An.MATCH:return"MATCH";case An.NOMATCH:return"NOMATCH";case An.SEM_PRE:return"SEM_PRE";case An.SEM_POST:return"SEM_POST";case An.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};new kn;new kn,new Cn,new kn,new Cn,new kn,new Cn,new kn,new Cn;const Pn=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 Fn=class extends Mn{},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 Pn(String(e))}).join("/")}`}catch(t){throw new Fn("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class Tn 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 Dn=Tn;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 Vn=class extends Dn{},Nn=e=>{if(!Array.isArray(e))throw new Vn("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 Vn("Failed to compile normalized JSONPath",{cause:t,selectors:e})}},Rn=(e,t,s,n)=>{const{realm:i}=e,{value:r}=s;if(i.isObject(t)&&i.hasProperty(t,r)){n(i.getProperty(t,r),r)}},_n=(e,t,s,n)=>{const{realm:i}=e,{value:r}=s;if(!i.isArray(t))return;const o=i.getLength(t),c=((e,t)=>e>=0?e:t+e)(r,o);if(c>=0&&c<o){n(i.getElement(t,c),c)}},Ln=(e,t,s,n)=>{const{realm:i}=e;for(const[e,s]of i.entries(t))n(s,e)},Jn=(e,t)=>e>=0?Math.min(e,t):Math.max(t+e,0),Un=(e,t,s,n)=>{const{realm:i}=e,{start:r,end:o,step:c}=s;if(!i.isArray(t))return;const a=((e,t,s,n)=>{const i=s??1;if(0===i)return null;let r,o;if(i>0){const s=0,i=n,c=null!==e?Jn(e,n):s,a=null!==t?Jn(t,n):i;r=Math.max(c,0),o=Math.min(a,n)}else{const s=n-1,i=-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):i;o=Math.min(c,n-1),r=Math.max(a,-1)}return{lower:r,upper:o,step:i}})(r,o,c,i.getLength(t));if(null===a)return;const{lower:l,upper:u,step:d}=a;if(d>0)for(let e=l;e<u;e+=d){n(i.getElement(t,e),e)}else for(let e=u;e>l;e+=d){n(i.getElement(t,e),e)}},Hn=(e,t,s,n)=>n.value,zn=(e,t,s)=>{const{realm:n}=e,{selector:i}=s;switch(i.type){case"NameSelector":{const{value:e}=i;return n.isObject(t)&&n.hasProperty(t,e)?n.getProperty(t,e):void 0}case"IndexSelector":{const{value:e}=i;if(!n.isArray(t))return;const s=n.getLength(t),r=e>=0?e:s+e;return r>=0&&r<s?n.getElement(t,r):void 0}default:return}},Gn=(e,t,s,n)=>{const{selectors:i}=s;for(const s of i)ri(e,t,s,n)},Wn=(e,t,s)=>{const n=[],i=e=>{n.push(e)},{selector:r}=s;switch(r.type){case"BracketedSelection":Gn(e,t,r,i);break;case"NameSelector":case"WildcardSelector":case"IndexSelector":case"SliceSelector":case"FilterSelector":ri(e,t,r,i)}return n},Kn=(e,t,s,n)=>{let i=s;for(const t of n){const s=[];if("DescendantSegment"===t.type){const n=i=>{const{realm:r}=e,o=Wn(e,i,t);s.push(...o);for(const[,e]of r.entries(i))n(e)};for(const e of i)n(e)}else for(const n of i){const i=Wn(e,n,t);s.push(...i)}i=s}return i},Xn=(e,t,s,n)=>{const{query:i}=n;let r;switch(i.type){case"RelQuery":r=((e,t,s,n)=>{const{segments:i}=n;return 0===i.length?[s]:Kn(e,0,[s],i)})(e,0,s,i);break;case"JsonPathQuery":r=((e,t,s,n)=>{const{segments:i}=n;return 0===i.length?[t]:Kn(e,0,[t],i)})(e,t,0,i);break;default:r=[]}return o=r,Object.defineProperty(o,"_isNodelist",{value:!0,enumerable:!1,writable:!1}),o;var o};let Yn;const Qn=(e,t,s,n)=>{const{name:i,arguments:r}=n,o=e.functions[i];if("function"!=typeof o)return;const c=r.map(n=>((e,t,s,n)=>{switch(n.type){case"Literal":case"RelSingularQuery":case"AbsSingularQuery":case"FunctionExpr":return Zn(e,t,s,n);case"FilterQuery":return Xn(e,t,s,n);case"TestExpr":return"FilterQuery"===n.expression.type?Xn(e,t,s,n.expression):"FunctionExpr"===n.expression.type?Zn(e,t,s,n.expression):Yn(e,t,s,n);case"LogicalOrExpr":case"LogicalAndExpr":case"LogicalNotExpr":case"ComparisonExpr":return Yn(e,t,s,n);default:return}})(e,t,s,n));return o(e.realm,...c)},Zn=(e,t,s,n)=>{switch(n.type){case"Literal":return Hn(e,t,s,n);case"RelSingularQuery":return((e,t,s,n)=>{let i=s;for(const t of n.segments)if(i=zn(e,i,t),void 0===i)return;return i})(e,0,s,n);case"AbsSingularQuery":return((e,t,s,n)=>{let i=t;for(const t of n.segments)if(i=zn(e,i,t),void 0===i)return;return i})(e,t,0,n);case"FunctionExpr":return Qn(e,t,s,n);default:return}},ei=(e,t,s,n)=>{const{left:i,op:r,right:o}=n,c=Zn(e,t,s,i),a=Zn(e,t,s,o);return e.realm.compare(c,r,a)},ti=e=>Array.isArray(e),si=(e,t,s,n)=>{switch(n.type){case"LogicalOrExpr":return!!si(e,t,s,n.left)||si(e,t,s,n.right);case"LogicalAndExpr":return!!si(e,t,s,n.left)&&si(e,t,s,n.right);case"LogicalNotExpr":return!si(e,t,s,n.expression);case"TestExpr":{const{expression:i}=n;if("FilterQuery"===i.type){return Xn(e,t,s,i).length>0}if("FunctionExpr"===i.type){const n=Qn(e,t,s,i);return"boolean"==typeof n?n:void 0!==n&&(ti(n)?n.length>0:Boolean(n))}return!1}case"ComparisonExpr":return ei(e,t,s,n);default:return!1}};Yn=si;const ni=si,ii=(e,t,s,n)=>{const{realm:i,root:r}=e,{expression:o}=s;for(const[s,c]of i.entries(t)){ni(e,r,c,o)&&n(c,s)}},ri=(e,t,s,n)=>{switch(s.type){case"NameSelector":Rn(e,t,s,n);break;case"IndexSelector":_n(e,t,s,n);break;case"WildcardSelector":Ln(e,t,s,n);break;case"SliceSelector":Un(e,t,s,n);break;case"FilterSelector":ii(e,t,s,n)}};new Map;class oi{node;key;index;parent;parentPath;inList;revisited=!1;#e=!1;#t=!1;#s=!1;#n=!1;#i;#r=!1;constructor(e,t,s,n,i){this.node=e,this.parent=t,this.parentPath=s,this.key=n,this.index=i&&"number"==typeof n?n:void 0,this.inList=i}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:i}=t;if(Cs(n)&&"value"===s){if(!Es(n.key))throw new TypeError("MemberElement.key must be a StringElement");e.unshift(n.key.toValue())}else qs(i?.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):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.#r&&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.#i=e,this.node=e}remove(){this.#r&&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.#i}_wasReplaced(){return this.#n}_reset(){this.#e=!1,this.#t=!1,this.#s=!1,this.#n=!1,this.#i=void 0}_markStale(){this.#r=!0}}const ci=Ct(1,Vt(Bn,tt(vt,P("[object Promise]")))),ai=e=>{const t=e?.element;return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},li=e=>Bs(e),ui=e=>Ws(e),di=(e,t,s)=>{Cs(e)?e.value=s:Array.isArray(e)?e[t]=null===s?void 0:s:null===s?delete e[t]:e[t]=s},pi=e=>Cs(e)?["key","value"]:qs(e)||Ms(e)?["content"]:[],hi=(e,t)=>{if(void 0!==e[t])return e[t];const s=t.length;for(const n in e){if(!n.includes("|"))continue;const i=n.indexOf(t);if(-1===i)continue;const r=0===i||"|"===n[i-1],o=i+s===n.length||"|"===n[i+s];if(r&&o)return e[n]}},mi=(e,t,s)=>{if(void 0===t)return null;const n=e,i=s?"leave":"enter",r=hi(n,t);if(!s&&"function"==typeof r)return r;if(null!=r){const e=r[i];if("function"==typeof e)return e}const o=n[i];if("function"==typeof o)return o;if(null!=o){const e=hi(o,t);if("function"==typeof e)return e}return null},gi=(e,t={})=>{const{visitFnGetter:s=mi,nodeTypeGetter:n=ai,exposeEdits:i=!1}=t,r=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(r);return{enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===r){const r=s(e[u],n(a),!1);if("function"==typeof r){const s=yi(t,a),n=r.call(e[u],s);if(ci(n))throw new Ns("Async visitor not supported in sync mode",{visitor:e[u],visitFn:r});if(s.shouldStop&&(c[u]=o),s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!i)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!i)return t.replaceWith(n),n;a=n,l=!0}}}if(c.every(e=>e===o)&&t.stop(),l)return t.replaceWith(a),a},leave(t){const i=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===r){const r=s(e[a],n(i),!0);if("function"==typeof r){const s=yi(t,i),n=r.call(e[a],s);if(ci(n))throw new Ns("Async visitor not supported in sync mode",{visitor:e[a],visitFn:r});if(s.shouldStop&&(c[a]=o),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]===i&&(c[a]=r);c.every(e=>e===o)&&t.stop()}}},fi=(e,t={})=>{const{visitFnGetter:s=mi,nodeTypeGetter:n=ai,exposeEdits:i=!1}=t,r=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(r);return{async enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===r){const r=s(e[u],n(a),!1);if("function"==typeof r){const s=yi(t,a),n=await r.call(e[u],s);if(s.shouldStop&&(c[u]=o),s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!i)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!i)return t.replaceWith(n),n;a=n,l=!0}}}if(c.every(e=>e===o)&&t.stop(),l)return t.replaceWith(a),a},async leave(t){const i=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===r){const r=s(e[a],n(i),!0);if("function"==typeof r){const s=yi(t,i),n=await r.call(e[a],s);if(s.shouldStop&&(c[a]=o),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]===i&&(c[a]=r);c.every(e=>e===o)&&t.stop()}}};function yi(e,t){const s=new oi(t,e.parent,e.parentPath,e.key,e.inList);return s.revisited=e.revisited,s}gi[Symbol.for("nodejs.util.promisify.custom")]=fi;const bi=e=>!0===e?"skip":!1===e||void 0===e?"never":e;function*vi(e,t,s){const{keyMap:n,state:i,nodeTypeGetter:r,nodePredicate:o,nodeCloneFn:c,detectCycles:a,skipVisited:l,mutable:u,mutationFn:d}=s,p="function"==typeof n,h="never"!==l?new WeakSet:null;let m,g,f=Array.isArray(e),y=[e],b=-1,v=[],x=e,S=null,w=null;const B=[];do{b+=1;const e=b===y.length;let s,E=!1;const O=e&&0!==v.length;if(e){if(s=0===B.length?void 0:S?.key,x=g,g=B.pop(),w=S?.parentPath?.parentPath??null,O)if(u)for(const[e,t]of v)d(x,e,t);else if(f){x=x.slice();let e=0;for(const[t,s]of v){const n=t-e;null===s?(x.splice(n,1),e+=1):x[n]=s}}else{x=c(x);for(const[e,t]of v)x[e]=t}if(void 0!==m){b=m.index,y=m.keys,v=m.edits;const e=m.inArray;if(w=m.parentPath,E=m.revisitNoDescend,m=m.prev,O&&!u){const t=e?b:y[b];v.push([t,x])}f=e}}else if(void 0!==g&&(s=f?b:y[b],x=g[s],void 0===x))continue;if(!Array.isArray(x)){if(!o(x))throw new Ns(`Invalid AST Node: ${String(x)}`,{node:x});if(a&&B.includes(x))continue;if("never"!==l&&!e)if(h.has(x)){if("enter-only"!==l)continue;E=!0}else h.add(x);S=new oi(x,g,w,s,f),S.revisited=E;const n=mi(t,r(x),e);if(n){for(const[e,s]of Object.entries(i))t[e]=s;const r=yield{visitFn:n,path:S,isLeaving:e};if(S.shouldStop)break;if(S.removed){if(v.push([s,null]),!e)continue}else if(S._wasReplaced()){const t=S._getReplacementNode();if(v.push([s,t]),!e){if(S.shouldSkip)continue;if(!o(t))continue;x=t}}else if(S.shouldSkip){if(!e)continue}else if(void 0!==r&&(v.push([s,r]),!e)){if(!o(r))continue;x=r}S._markStale()}}if(!e){if(m={inArray:f,index:b,keys:y,edits:v,parentPath:w,revisitNoDescend:E,prev:m},f=Array.isArray(x),E)y=[];else if(f)y=x;else if(p)y=n(x);else{const e=r(x);y=void 0!==e?n[e]??[]:[]}b=-1,v=[],void 0!==g&&B.push(g),g=x,w=S}}while(void 0!==m);return 0!==v.length?v.at(-1)[1]:e}const xi=(e,t,s={})=>{const n=vi(e,t,{keyMap:s.keyMap??pi,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??ai,nodePredicate:s.nodePredicate??li,nodeCloneFn:s.nodeCloneFn??ui,detectCycles:s.detectCycles??!0,skipVisited:bi(s.skipVisited),mutable:s.mutable??!1,mutationFn:s.mutationFn??di});let i=n.next();for(;!i.done;){const e=i.value,s=e.visitFn.call(t,e.path);if(ci(s))throw new Ns("Async visitor not supported in sync mode",{visitor:t,visitFn:e.visitFn});i=n.next(s)}return i.value},Si=async(e,t,s={})=>{const n=vi(e,t,{keyMap:s.keyMap??pi,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??ai,nodePredicate:s.nodePredicate??li,nodeCloneFn:s.nodeCloneFn??ui,detectCycles:s.detectCycles??!0,skipVisited:bi(s.skipVisited),mutable:s.mutable??!1,mutationFn:s.mutationFn??di});let i=n.next();for(;!i.done;){const e=i.value,s=await e.visitFn.call(t,e.path);i=n.next(s)}return i.value};xi[Symbol.for("nodejs.util.promisify.custom")]=Si,oi.prototype.traverse=function(e,t){return xi(this.node,e,t)},oi.prototype.traverseAsync=function(e,t){return Si(this.node,e,t)};const wi=class extends dn{specObj;passingOptionsNames=["specObj","parent","consume"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Te(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return xt(Xt,["visitors",...e],this.specObj)?Te(["visitors",...e],this.specObj):Te(["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):(xi(t,n,s),n.element)}};const Bi=class extends wi{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,i)=>{const r=sn(t);if(Es(t)&&n.includes(r)&&!this.ignoredFields.includes(r)){const n=this.toRefractedElement([...s,"fixedFields",r],e),o=new W(this.consume?t:Hs(t),n);this.copyMetaAndAttributes(i,o),this.element.content.push(o),this.consume&&this.consumeSafe&&!i.isFrozen&&(i.value=void 0)}else this.ignoredFields.includes(r)||this.element.content.push(this.consume?i:Hs(i))}),this.copyMetaAndAttributes(t,this.element),e.stop()}},Ei=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},Oi=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:Oi(s,[...t,s])},ji=(e,t,s=[])=>{var n;const i=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>Oi(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,r=Object.create(i),o=Oi(i);for(let t of e){let e=Oi(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(Ei(r,n,["constructor",...s]),o.push(n))}}return r.constructor=t,r},ki=e=>e.filter((t,s)=>e.indexOf(t)==s),qi=(e,t)=>{const s=t.map(e=>Oi(e));let n=0,i=!0;for(;i;){i=!1;for(let r=t.length-1;r>=0;r--){const t=s[r][n];if(null!=t&&(i=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[r][0]}n++}},Mi=(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(qi(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==qi(n,e)||void 0!==t[n],get:(s,n)=>(qi(n,e)||t)[n],set(t,s,n){const i=qi(s,e);if(void 0===i)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return i[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)))}),Ci=null,$i="copy",Ai="copy",Pi="deep",Fi=new WeakMap,Ii=e=>Fi.get(e),Ti=(e,t)=>{var s,n;const i=ki([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),r={};for(let o of i)r[o]=ki([...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 r},Di=(e,t)=>{var s,n,i,r;return{property:Ti(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:Ti(null!==(i=null==e?void 0:e.method)&&void 0!==i?i:{},null!==(r=null==t?void 0:t.method)&&void 0!==r?r:{})}},Vi=(e,t)=>{var s,n,i,r,o,c;return{class:ki([...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:Di(null!==(i=null==e?void 0:e.static)&&void 0!==i?i:{},null!==(r=null==t?void 0:t.static)&&void 0!==r?r:{}),instance:Di(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Ni=new Map,Ri=(...e)=>{const t=((...e)=>{var t;const s=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const i=[...Oi(e.prototype).map(e=>e.constructor),...null!==(t=Ii(e))&&void 0!==t?t:[]].filter(e=>!s.has(e));for(let e of i)n.add(e);s.add(e),n.delete(e)}return[...s]})(...e).map(e=>Ni.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>Vi(e,t))},_i=e=>{let t=Ni.get(e);return t||(t={},Ni.set(e,t)),t};function Li(...e){var t,s,n;const i=e.map(e=>e.prototype),r=Ci;if(null!==r){const e=i.map(e=>e[r]).filter(e=>"function"==typeof e),t=function(...t){for(let s of e)s.apply(this,t)},s={[r]:t};i.push(s)}function o(...t){for(const s of e)Ei(this,new s(...t));null!==r&&"function"==typeof this[r]&&this[r].apply(this,t)}var c,a;o.prototype="copy"===Ai?ji(i,o):(c=i,a=o,Mi([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===$i?ji(e,null,["prototype"]):Mi(e,Function.prototype));let l=o;if("none"!==Pi){const i="deep"===Pi?Ri(...e):((...e)=>{const t=e.map(e=>_i(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>Vi(e,t))})(...e);for(let e of null!==(t=null==i?void 0:i.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Ji(null!==(s=null==i?void 0:i.static)&&void 0!==s?s:{},l),Ji(null!==(n=null==i?void 0:i.instance)&&void 0!==n?n:{},l.prototype)}var u,d;return u=l,d=e,Fi.set(u,d),l}const Ji=(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 Ui=function(){return!1};const Hi=class extends wi{specPath;ignoredFields;fieldPatternPredicate=Ui;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=sn(t);if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),i=this.toRefractedElement(n,e),r=new W(this.consume?t:Hs(t),i);this.copyMetaAndAttributes(s,r),r.classes.push("patterned-field"),this.element.content.push(r),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 zi=class extends Hi{constructor(e){super(e),this.fieldPatternPredicate=On}};const Gi=class{parent;constructor({parent:e}){this.parent=e}},Wi=Li(Bi,Gi,pn),Ki=Li(Bi,pn),Xi=Li(Bi,pn),Yi=Li(Bi,pn),Qi=Li(wi,Gi,pn),Zi=Li(wi,Gi,pn),er=Li(wi,Gi,pn),tr=Li(wi,Gi,pn),sr=Li(wi,Gi,pn),nr=Li(zi,Gi,pn),ir=Li(zi,Gi,pn),rr=Li(zi,Gi,pn),or=Li(zi,Gi,pn);const cr=class extends Wi{constructor(e){super(e),this.element=new gs,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,Bi.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(fn(this.parent)&&!Es(e.get("$schema")))this.element.meta.set("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(this.parent instanceof gs&&!Es(e.get("$schema"))){const e=mn(this.parent.meta.get("inheritedDialectIdentifier"),sn(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=sn(e.get(t));On(n)&&s.push(n),this.element.meta.set("ancestorsSchemaIdentifiers",s)}},ar=e=>Ms(e)&&e.hasKey("$ref");const lr=class extends tr{ObjectElement(e){const t=e.node,s=ar(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];this.element=this.toRefractedElement(s,t),e.stop()}ArrayElement(e){const t=e.node;this.element=new ws,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ur=class extends pn{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-required")}};const dr=class extends or{constructor(e){super(e),this.element=new K,this.element.classes.push("json-schema-properties"),this.specPath=e=>ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const pr=class extends rr{constructor(e){super(e),this.element=new K,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const hr=class extends ir{constructor(e){super(e),this.element=new K,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const mr=class extends pn{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-enum")}};const gr=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 fr=class extends Qi{constructor(e){super(e),this.element=new ws,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const yr=class extends Zi{constructor(e){super(e),this.element=new ws,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const br=class extends er{constructor(e){super(e),this.element=new ws,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const vr=class extends nr{constructor(e){super(e),this.element=new K,this.element.classes.push("json-schema-definitions"),this.specPath=e=>ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const xr=class extends sr{constructor(e){super(e),this.element=new ws,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 Sr=class extends Ki{constructor(e){super(e),this.element=new fs,this.specPath=hn(["document","objects","JSONReference"])}ObjectElement(e){Bi.prototype.ObjectElement.call(this,e),Es(this.element.$ref)&&this.element.classes.push("reference-element")}};const wr=class extends pn{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Br=function(){return!0};const Er=Ce(function(e,t,s){return Ct(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const Or=r(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var jr=y(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const kr=jr;const qr=r(function(e){return o(0,e)});function Mr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Cr=r(Mr);const $r=Rt(Oe);const Ar=Ct(1,Xt(Array.isArray)?Array.isArray:tt(C,nt("Array")));const Pr=Vt(Ar,Sn);function Fr(e){return function(e){if(Array.isArray(e))return Ir(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 Ir(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)?Ir(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 Ir(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 Tr=tt(kr(Or(function(e,t){return e.length>t.length})),qr,Pe("length")),Dr=ns(function(e,t,s){var n=s.apply(void 0,Fr(e));return $r(n)?Cr(n):t});const Vr=Er(Pr,function(e){var t=Tr(e);return Ct(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return Ye(Dr(s),void 0,e)})},gn);const Nr=class extends wi{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Er(e,hn(t),gn)),n=Vr(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const Rr=class extends Nr{constructor(e){super(e),this.alternator=[{predicate:ar,specPath:["document","objects","JSONReference"]},{predicate:Br,specPath:["document","objects","JSONSchema"]}]}};const _r=class extends Yi{constructor(e){super(e),this.element=new ys,this.specPath=hn(["document","objects","Media"])}};const Lr=class extends Xi{constructor(e){super(e),this.element=new bs,this.specPath=hn(["document","objects","LinkDescription"])}},Jr={visitors:{value:pn,JSONSchemaOrJSONReferenceVisitor:Rr,document:{objects:{JSONSchema:{element:"JSONSchemaDraft4",$visitor:cr,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:Rr,items:{$visitor:lr,alias:"itemsField"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:ur,properties:dr,additionalProperties:Rr,patternProperties:pr,dependencies:hr,enum:mr,type:gr,allOf:fr,anyOf:yr,oneOf:br,not:Rr,definitions:vr,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:{$visitor:xr,alias:"linksField"},media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{element:"JSONReference",$visitor:Sr,fixedFields:{$ref:wr}},Media:{element:"media",$visitor:_r,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{element:"linkDescription",$visitor:Lr,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Rr,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Rr}}}}}},Ur=ms(Jr),Hr=e=>Object.entries(e).map(([e,t])=>es(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(gs,"fixedFields",{get:()=>Hr(Ur.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(fs,"fixedFields",{get:()=>Hr(Ur.visitors.document.objects.JSONReference.fixedFields),enumerable:!0}),Object.defineProperty(ys,"fixedFields",{get:()=>Hr(Ur.visitors.document.objects.Media.fixedFields),enumerable:!0}),Object.defineProperty(bs,"fixedFields",{get:()=>Hr(Ur.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const zr=class extends gs{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idField(){throw new p("id keyword from Core vocabulary has been renamed to $id.")}set idField(e){throw new p("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsField(){return this.get("contains")}set containsField(e){this.set("contains",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Gr=class extends bs{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new p("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new p("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new p("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new p("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new p("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new p("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var Wr=Ce(function e(t,s,n){if(0===t.length)return s;var i=t[0];if(t.length>1){var r=Ae(i,n);(Oe(r)||"object"!=typeof r)&&(r=$e(t[1])?[]:{}),s=e(Array.prototype.slice.call(t,1),s,r)}return function(e,t,s){if($e(e)&&Ne(s)){var n=e<0?s.length+e:e,i=[].concat(s);return i[n]=t,i}var r={};for(var o in s)r[o]=s[o];return r[e]=t,r}(i,s,n)});const Kr=Wr;const Xr=Ce(function(e,t,s){var n=Array.prototype.slice.call(s,0);return n.splice(e,t),n});var Yr=Ce(function(e,t,s){return Kr([e],t,s)});const Qr=Yr;var Zr=y(function e(t,s){if(null==s)return s;switch(t.length){case 0:return s;case 1:return function(e,t){if(null==t)return t;if($e(e)&&Ne(t))return Xr(e,1,t);var s={};for(var n in t)s[n]=t[n];return delete s[e],s}(t[0],s);default:var n=t[0],i=Array.prototype.slice.call(t,1);return null==s[n]?function(e,t){if($e(e)&&Ne(t))return[].concat(t);var s={};for(var n in t)s[n]=t[n];return s}(n,s):Qr(n,e(i,s[n]),s)}});const eo=Zr;const to=class extends cr{constructor(e){super(e),this.element=new zr}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){this.enter(e),this.element.classes.push("boolean-json-schema")}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const so=class extends lr{BooleanElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}};const no=class extends pn{ArrayElement(e){this.enter(e),this.element.classes.push("json-schema-examples")}};const io=class extends Lr{constructor(e){super(e),this.element=new Gr}},ro=tt(Kr(["visitors","document","objects","JSONSchema","element"],"JSONSchemaDraft6"),Kr(["visitors","document","objects","JSONSchema","$visitor"],to),eo(["visitors","document","objects","JSONSchema","fixedFields","id"]),Kr(["visitors","document","objects","JSONSchema","fixedFields","$id"],{$ref:"#/visitors/value"}),Kr(["visitors","document","objects","JSONSchema","fixedFields","contains"],{$visitor:Jr.visitors.JSONSchemaOrJSONReferenceVisitor,alias:"containsField"}),Kr(["visitors","document","objects","JSONSchema","fixedFields","items"],{$visitor:so,alias:"itemsField"}),Kr(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),Kr(["visitors","document","objects","JSONSchema","fixedFields","const"],{$ref:"#/visitors/value"}),Kr(["visitors","document","objects","JSONSchema","fixedFields","examples"],no),Kr(["visitors","document","objects","LinkDescription","$visitor"],io),Kr(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Kr(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","LinkDescription","fixedFields","method"]),eo(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Kr(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],{$ref:"#/visitors/value"}))(Jr),oo=ms(ro),co=e=>Object.entries(e).map(([e,t])=>es(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(zr,"fixedFields",{get:()=>co(oo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(Gr,"fixedFields",{get:()=>co(oo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const ao=class extends zr{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new p('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new p('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const lo=class extends Gr{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new p("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new p("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new p("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new p("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const uo=class extends to{constructor(e){super(e),this.element=new ao}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const po=class extends io{constructor(e){super(e),this.element=new lo}},ho=tt(Kr(["visitors","document","objects","JSONSchema","element"],"JSONSchemaDraft7"),Kr(["visitors","document","objects","JSONSchema","$visitor"],uo),Kr(["visitors","document","objects","JSONSchema","fixedFields","$comment"],ro.visitors.value),Kr(["visitors","document","objects","JSONSchema","fixedFields","if"],ro.visitors.JSONSchemaOrJSONReferenceVisitor),Kr(["visitors","document","objects","JSONSchema","fixedFields","then"],ro.visitors.JSONSchemaOrJSONReferenceVisitor),Kr(["visitors","document","objects","JSONSchema","fixedFields","else"],ro.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","JSONSchema","fixedFields","media"]),Kr(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],ro.visitors.value),Kr(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],ro.visitors.value),Kr(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","$visitor"],po),Kr(["visitors","document","objects","LinkDescription","fixedFields","anchor"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],ro.visitors.value),eo(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Kr(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","fixedFields","description"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","fixedFields","$comment"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],ro.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Kr(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],ro.visitors.value))(ro),mo=ms(ho),go=e=>Object.entries(e).map(([e,t])=>es(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(ao,"fixedFields",{get:()=>go(mo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(lo,"fixedFields",{get:()=>go(mo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const fo=class extends ao{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-7")}get not(){return this.get("not")}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get contains(){return this.get("contains")}set contains(e){this.set("contains",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get discriminator(){return this.get("discriminator")}get externalDocs(){return this.get("externalDocs")}get deprecated(){return this.get("deprecated")}};const yo=class extends K{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}};const bo=class extends K{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 vo=class extends K{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 protocol(){return this.get("protocol")}set protocol(e){this.set("protocol",e)}get protocolVersion(){return this.get("protocolVersion")}set protocolVersion(e){this.set("protocolVersion",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)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}};const xo=class extends K{constructor(e,t,s){super(e,t,s),this.element="serverBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}};const So=class extends K{constructor(e,t,s){super(e,t,s),this.element="servers"}};const wo=class extends K{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)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Bo=class extends K{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 Eo=class extends ws{constructor(e,t,s){super(e,t,s),this.element="tags"}};const Oo=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqpChannelBinding",this.classes.push("channel-binding")}get is(){return this.get("is")}set is(e){this.set("is",e)}get exchange(){return this.get("exchange")}set exchange(e){this.set("exchange",e)}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const jo=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqpMessageBinding",this.classes.push("message-binding")}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get messageType(){return this.get("messageType")}set messageType(e){this.set("messageType",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const ko=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqpOperationBinding",this.classes.push("operation-binding")}get expiration(){return this.get("expiration")}set expiration(e){this.set("expiration",e)}get userId(){return this.get("userId")}set userId(e){this.set("userId",e)}get cc(){return this.get("cc")}set cc(e){this.set("cc",e)}get priority(){return this.get("priority")}set priority(e){this.set("priority",e)}get deliveryMode(){return this.get("deliveryMode")}set deliveryMode(e){this.set("deliveryMode",e)}get mandatory(){return this.get("mandatory")}set mandatory(e){this.set("mandatory",e)}get bcc(){return this.get("bcc")}set bcc(e){this.set("bcc",e)}get replyTo(){return this.get("replyTo")}set replyTo(e){this.set("replyTo",e)}get timestamp(){return this.get("timestamp")}set timestamp(e){this.set("timestamp",e)}get ack(){return this.get("ack")}set ack(e){this.set("ack",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const qo=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqpServerBinding",this.classes.push("server-binding")}};const Mo=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqp1ChannelBinding",this.classes.push("channel-binding")}};const Co=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqp1MessageBinding",this.classes.push("message-binding")}};const $o=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqp1OperationBinding",this.classes.push("operation-binding")}};const Ao=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqp1ServerBinding",this.classes.push("server-binding")}};const Po=class extends K{constructor(e,t,s){super(e,t,s),this.element="anypointmqChannelBinding",this.classes.push("channel-binding")}get destination(){return this.get("destination")}set destination(e){this.set("destination",e)}get destinationType(){return this.get("destinationType")}set destinationType(e){this.set("destinationType",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Fo=class extends K{constructor(e,t,s){super(e,t,s),this.element="anypointmqMessageBinding",this.classes.push("message-binding")}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Io=class extends K{constructor(e,t,s){super(e,t,s),this.element="anypointmqOperationBinding",this.classes.push("operation-binding")}};const To=class extends K{constructor(e,t,s){super(e,t,s),this.element="anypointmqServerBinding",this.classes.push("server-binding")}};const Do=class extends K{constructor(e,t,s){super(e,t,s),this.element="googlepubsubChannelBinding",this.classes.push("channel-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get labels(){return this.get("labels")}set labels(e){this.set("labels",e)}get messageRetentionDuration(){return this.get("messageRetentionDuration")}set messageRetentionDuration(e){this.set("messageRetentionDuration",e)}get messageStoragePolicy(){return this.get("messageStoragePolicy")}set messageStoragePolicy(e){this.set("messageStoragePolicy",e)}get schemaSettings(){return this.get("schemaSettings")}set schemaSettings(e){this.set("schemaSettings",e)}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}};const Vo=class extends K{constructor(e,t,s){super(e,t,s),this.element="googlepubsubMessageBinding",this.classes.push("message-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get attributesField(){return this.get("attributes")}set attributesField(e){this.set("attributes",e)}get orderingKey(){return this.get("orderingKey")}set orderingKey(e){this.set("orderingKey",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const No=class extends K{constructor(e,t,s){super(e,t,s),this.element="googlepubsubOperationBinding",this.classes.push("operation-binding")}};const Ro=class extends K{constructor(e,t,s){super(e,t,s),this.element="googlepubsubServerBinding",this.classes.push("server-binding")}};const _o=class extends K{constructor(e,t,s){super(e,t,s),this.element="httpChannelBinding",this.classes.push("channel-binding")}};const Lo=class extends K{constructor(e,t,s){super(e,t,s),this.element="httpMessageBinding",this.classes.push("message-binding")}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Jo=class extends K{constructor(e,t,s){super(e,t,s),this.element="httpOperationBinding",this.classes.push("operation-binding")}get type(){return this.get("type")}set type(e){this.set("type",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get query(){return this.get("query")}set query(e){this.set("query",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Uo=class extends K{constructor(e,t,s){super(e,t,s),this.element="httpServerBinding",this.classes.push("server-binding")}};const Ho=class extends K{constructor(e,t,s){super(e,t,s),this.element="ibmmqChannelBinding",this.classes.push("channel-binding")}get destinationType(){return this.get("destinationType")}set destinationType(e){this.set("destinationType",e)}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}get maxMsgLength(){return this.get("maxMsgLength")}set maxMsgLength(e){this.set("maxMsgLength",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const zo=class extends K{constructor(e,t,s){super(e,t,s),this.element="ibmmqMessageBinding",this.classes.push("message-binding")}get type(){return this.get("type")}set type(e){this.set("type",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get expiry(){return this.get("expiry")}set expiry(e){this.set("expiry",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Go=class extends K{constructor(e,t,s){super(e,t,s),this.element="ibmmqOperationBinding",this.classes.push("operation-binding")}};const Wo=class extends K{constructor(e,t,s){super(e,t,s),this.element="ibmmqServerBinding",this.classes.push("server-binding")}get groupId(){return this.get("groupId")}set groupId(e){this.set("groupId",e)}get ccdtQueueManagerName(){return this.get("ccdtQueueManagerName")}set ccdtQueueManagerName(e){this.set("ccdtQueueManagerName",e)}get cipherSpec(){return this.get("cipherSpec")}set cipherSpec(e){this.set("cipherSpec",e)}get multiEndpointServer(){return this.get("multiEndpointServer")}set multiEndpointServer(e){this.set("multiEndpointServer",e)}get heartBeatInterval(){return this.get("heartBeatInterval")}set heartBeatInterval(e){this.set("heartBeatInterval",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Ko=class extends K{constructor(e,t,s){super(e,t,s),this.element="jmsChannelBinding",this.classes.push("channel-binding")}};const Xo=class extends K{constructor(e,t,s){super(e,t,s),this.element="jmsMessageBinding",this.classes.push("message-binding")}};const Yo=class extends K{constructor(e,t,s){super(e,t,s),this.element="jmsOperationBinding",this.classes.push("operation-binding")}};const Qo=class extends K{constructor(e,t,s){super(e,t,s),this.element="jmsServerBinding",this.classes.push("server-binding")}};const Zo=class extends K{constructor(e,t,s){super(e,t,s),this.element="kafkaChannelBinding",this.classes.push("channel-binding")}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}get partitions(){return this.get("partitions")}set partitions(e){this.set("partitions",e)}get replicas(){return this.get("replicas")}set replicas(e){this.set("replicas",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const ec=class extends K{constructor(e,t,s){super(e,t,s),this.element="kafkaMessageBinding",this.classes.push("message-binding")}get key(){return this.get("key")}set key(e){this.set("key",e)}get schemaIdLocation(){return this.get("schemaIdLocation")}set schemaIdLocation(e){this.set("schemaIdLocation",e)}get schemaIdPayloadEncoding(){return this.get("schemaIdPayloadEncoding")}set schemaIdPayloadEncoding(e){this.set("schemaIdPayloadEncoding",e)}get schemaLookupStrategy(){return this.get("schemaLookupStrategy")}set schemaLookupStrategy(e){this.set("schemaLookupStrategy",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const tc=class extends K{constructor(e,t,s){super(e,t,s),this.element="kafkaOperationBinding",this.classes.push("operation-binding")}get groupId(){return this.get("groupId")}set groupId(e){this.set("groupId",e)}get clientId(){return this.get("clientId")}set clientId(e){this.set("clientId",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const sc=class extends K{constructor(e,t,s){super(e,t,s),this.element="kafkaServerBinding",this.classes.push("server-binding")}get schemaRegistryUrl(){return this.get("schemaRegistryUrl")}set schemaRegistryUrl(e){this.set("schemaRegistryUrl",e)}get schemaRegistryVendor(){return this.get("schemaRegistryVendor")}set schemaRegistryVendor(e){this.set("schemaRegistryVendor",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const nc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mercureChannelBinding",this.classes.push("channel-binding")}};const ic=class extends K{constructor(e,t,s){super(e,t,s),this.element="mercureMessageBinding",this.classes.push("message-binding")}};const rc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mercureOperationBinding",this.classes.push("operation-binding")}};const oc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mercureServerBinding",this.classes.push("server-binding")}};const cc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqttChannelBinding",this.classes.push("channel-binding")}};const ac=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqttMessageBinding",this.classes.push("message-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const lc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqttOperationBinding",this.classes.push("operation-binding")}get qos(){return this.get("qos")}set qos(e){this.set("qos",e)}get retain(){return this.get("retain")}set retain(e){this.set("retain",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const uc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqttServerBinding",this.classes.push("server-binding")}get clientId(){return this.get("clientId")}set clientId(e){this.set("clientId",e)}get cleanSession(){return this.get("cleanSession")}set cleanSession(e){this.set("cleanSession",e)}get lastWill(){return this.get("lastWill")}set lastWill(e){this.set("lastWill",e)}get keepAlive(){return this.get("keepAlive")}set keepAlive(e){this.set("keepAlive",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const dc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqtt5ChannelBinding",this.classes.push("channel-binding")}};const pc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqtt5MessageBinding",this.classes.push("message-binding")}};const hc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqtt5OperationBinding",this.classes.push("operation-binding")}};const mc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqtt5ServerBinding",this.classes.push("server-binding")}};const gc=class extends K{constructor(e,t,s){super(e,t,s),this.element="natsChannelBinding",this.classes.push("channel-binding")}};const fc=class extends K{constructor(e,t,s){super(e,t,s),this.element="natsMessageBinding",this.classes.push("message-binding")}};const yc=class extends K{constructor(e,t,s){super(e,t,s),this.element="natsOperationBinding",this.classes.push("operation-binding")}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const bc=class extends K{constructor(e,t,s){super(e,t,s),this.element="natsServerBinding",this.classes.push("server-binding")}};const vc=class extends K{constructor(e,t,s){super(e,t,s),this.element="pulsarChannelBinding",this.classes.push("channel-binding")}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get persistence(){return this.get("persistence")}set persistence(e){this.set("persistence",e)}get compaction(){return this.get("compaction")}set compaction(e){this.set("compaction",e)}get"geo-replication"(){return this.get("geo-replication")}set"geo-replication"(e){this.set("geo-replication",e)}get retention(){return this.get("retention")}set retention(e){this.set("retention",e)}get ttl(){return this.get("ttl")}set ttl(e){this.set("ttl",e)}get deduplication(){return this.get("deduplication")}set deduplication(e){this.set("deduplication",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const xc=class extends K{constructor(e,t,s){super(e,t,s),this.element="pulsarMessageBinding",this.classes.push("message-binding")}};const Sc=class extends K{constructor(e,t,s){super(e,t,s),this.element="pulsarOperationBinding",this.classes.push("operation-binding")}};const wc=class extends K{constructor(e,t,s){super(e,t,s),this.element="pulsarServerBinding",this.classes.push("server-binding")}get tenant(){return this.get("tenant")}set tenant(e){this.set("tenant",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Bc=class extends K{constructor(e,t,s){super(e,t,s),this.element="redisChannelBinding",this.classes.push("channel-binding")}};const Ec=class extends K{constructor(e,t,s){super(e,t,s),this.element="redisMessageBinding",this.classes.push("message-binding")}};const Oc=class extends K{constructor(e,t,s){super(e,t,s),this.element="redisOperationBinding",this.classes.push("operation-binding")}};const jc=class extends K{constructor(e,t,s){super(e,t,s),this.element="redisServerBinding",this.classes.push("server-binding")}};const kc=class extends K{constructor(e,t,s){super(e,t,s),this.element="snsChannelBinding",this.classes.push("channel-binding")}};const qc=class extends K{constructor(e,t,s){super(e,t,s),this.element="snsMessageBinding",this.classes.push("message-binding")}};const Mc=class extends K{constructor(e,t,s){super(e,t,s),this.element="snsOperationBinding",this.classes.push("operation-binding")}};const Cc=class extends K{constructor(e,t,s){super(e,t,s),this.element="snsServerBinding",this.classes.push("server-binding")}};const $c=class extends K{constructor(e,t,s){super(e,t,s),this.element="solaceChannelBinding",this.classes.push("channel-binding")}};const Ac=class extends K{constructor(e,t,s){super(e,t,s),this.element="solaceMessageBinding",this.classes.push("message-binding")}};const Pc=class extends K{constructor(e,t,s){super(e,t,s),this.element="solaceOperationBinding",this.classes.push("operation-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get destinations(){return this.get("destinations")}set destinations(e){this.set("destinations",e)}};const Fc=class extends K{constructor(e,t,s){super(e,t,s),this.element="solaceServerBinding",this.classes.push("server-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get msgVpn(){return this.get("msgVpn")}set msgVpn(e){this.set("msgVpn",e)}};const Ic=class extends K{constructor(e,t,s){super(e,t,s),this.element="sqsChannelBinding",this.classes.push("channel-binding")}};const Tc=class extends K{constructor(e,t,s){super(e,t,s),this.element="sqsMessageBinding",this.classes.push("message-binding")}};const Dc=class extends K{constructor(e,t,s){super(e,t,s),this.element="sqsOperationBinding",this.classes.push("operation-binding")}};const Vc=class extends K{constructor(e,t,s){super(e,t,s),this.element="sqsServerBinding",this.classes.push("server-binding")}};const Nc=class extends K{constructor(e,t,s){super(e,t,s),this.element="stompChannelBinding",this.classes.push("channel-binding")}};const Rc=class extends K{constructor(e,t,s){super(e,t,s),this.element="stompMessageBinding",this.classes.push("message-binding")}};const _c=class extends K{constructor(e,t,s){super(e,t,s),this.element="stompOperationBinding",this.classes.push("operation-binding")}};const Lc=class extends K{constructor(e,t,s){super(e,t,s),this.element="stompServerBinding",this.classes.push("server-binding")}};const Jc=class extends K{constructor(e,t,s){super(e,t,s),this.element="webSocketChannelBinding",this.classes.push("channel-binding")}get method(){return this.get("method")}set method(e){this.set("method",e)}get query(){return this.get("query")}set query(e){this.set("query",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Uc=class extends K{constructor(e,t,s){super(e,t,s),this.element="webSocketMessageBinding",this.classes.push("message-binding")}};const Hc=class extends K{constructor(e,t,s){super(e,t,s),this.element="webSocketOperationBinding",this.classes.push("operation-binding")}};const zc=class extends K{constructor(e,t,s){super(e,t,s),this.element="webSocketServerBinding",this.classes.push("server-binding")}},Gc={namespace:e=>{const{base:t}=e;return t.register("asyncApi2",X),t.register("asyncApiVersion",Q),t.register("channelBindings",Z),t.register("channelItem",ee),t.register("channels",te),t.register("components",se),t.register("contact",ne),t.register("correlationID",ie),t.register("defaultContentType",re),t.register("externalDocumentation",oe),t.register("identifier",ce),t.register("info",ae),t.register("license",le),t.register("message",ue),t.register("messageBindings",de),t.register("messageExample",pe),t.register("messageTrait",he),t.register("oAuthFlow",me),t.register("oAuthFlows",ge),t.register("operation",fe),t.register("operationBindings",ye),t.register("operationTrait",be),t.register("parameter",ve),t.register("parameters",xe),t.register("reference",Se),t.register("schema",fo),t.register("securityRequirement",yo),t.register("securityScheme",bo),t.register("server",vo),t.register("serverBindings",xo),t.register("servers",So),t.register("serverVariable",wo),t.register("tag",Bo),t.register("tags",Eo),t.register("amqpChannelBinding",Oo),t.register("amqpMessageBinding",jo),t.register("amqpOperationBinding",ko),t.register("amqpServerBinding",qo),t.register("amqp1ChannelBinding",Mo),t.register("amqp1MessageBinding",Co),t.register("amqp1OperationBinding",$o),t.register("amqp1ServerBinding",Ao),t.register("anypointmqChannelBinding",Po),t.register("anypointmqMessageBinding",Fo),t.register("anypointmqOperationBinding",Io),t.register("anypointmqServerBinding",To),t.register("googlepubsubChannelBinding",Do),t.register("googlepubsubMessageBinding",Vo),t.register("googlepubsubOperationBinding",No),t.register("googlepubsubServerBinding",Ro),t.register("httpChannelBinding",_o),t.register("httpMessageBinding",Lo),t.register("httpOperationBinding",Jo),t.register("httpServerBinding",Uo),t.register("ibmmqChannelBinding",Ho),t.register("ibmmqMessageBinding",zo),t.register("ibmmqOperationBinding",Go),t.register("ibmmqServerBinding",Wo),t.register("jmsChannelBinding",Ko),t.register("jmsMessageBinding",Xo),t.register("jmsOperationBinding",Yo),t.register("jmsServerBinding",Qo),t.register("kafkaChannelBinding",Zo),t.register("kafkaMessageBinding",ec),t.register("kafkaOperationBinding",tc),t.register("kafkaServerBinding",sc),t.register("mercureChannelBinding",nc),t.register("mercureMessageBinding",ic),t.register("mercureOperationBinding",rc),t.register("mercureServerBinding",oc),t.register("mqttChannelBinding",cc),t.register("mqttMessageBinding",ac),t.register("mqttOperationBinding",lc),t.register("mqttServerBinding",uc),t.register("mqtt5ChannelBinding",dc),t.register("mqtt5MessageBinding",pc),t.register("mqtt5OperationBinding",hc),t.register("mqtt5ServerBinding",mc),t.register("natsChannelBinding",gc),t.register("natsMessageBinding",fc),t.register("natsOperationBinding",yc),t.register("natsServerBinding",bc),t.register("pulsarChannelBinding",vc),t.register("pulsarMessageBinding",xc),t.register("pulsarOperationBinding",Sc),t.register("pulsarServerBinding",wc),t.register("redisChannelBinding",Bc),t.register("redisMessageBinding",Ec),t.register("redisOperationBinding",Oc),t.register("redisServerBinding",jc),t.register("snsChannelBinding",kc),t.register("snsMessageBinding",qc),t.register("snsOperationBinding",Mc),t.register("snsServerBinding",Cc),t.register("solaceChannelBinding",$c),t.register("solaceMessageBinding",Ac),t.register("solaceOperationBinding",Pc),t.register("solaceServerBinding",Fc),t.register("sqsChannelBinding",Ic),t.register("sqsMessageBinding",Tc),t.register("sqsOperationBinding",Dc),t.register("sqsServerBinding",Vc),t.register("stompChannelBinding",Nc),t.register("stompMessageBinding",Rc),t.register("stompOperationBinding",_c),t.register("stompServerBinding",Lc),t.register("webSocketChannelBinding",Jc),t.register("webSocketMessageBinding",Uc),t.register("webSocketOperationBinding",Hc),t.register("webSocketServerBinding",zc),t}};class Wc extends K{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Wc.primaryClass)}}const Kc=Wc;class Xc extends K{static primaryClass="components-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Xc.primaryClass)}}const Yc=Xc;class Qc extends K{static primaryClass="components-server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Qc.primaryClass)}}const Zc=Qc;class ea extends K{static primaryClass="components-messages";constructor(e,t,s){super(e,t,s),this.classes.push(ea.primaryClass)}}const ta=ea;class sa extends K{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(sa.primaryClass)}}const na=sa;class ia extends K{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(ia.primaryClass)}}const ra=ia;class oa extends K{static primaryClass="components-correlation-ids";constructor(e,t,s){super(e,t,s),this.classes.push(oa.primaryClass)}}const ca=oa;class aa extends K{static primaryClass="components-operation-traits";constructor(e,t,s){super(e,t,s),this.classes.push(aa.primaryClass)}}const la=aa;class ua extends K{static primaryClass="components-message-traits";constructor(e,t,s){super(e,t,s),this.classes.push(ua.primaryClass)}}const da=ua;class pa extends K{static primaryClass="components-server-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(pa.primaryClass)}}const ha=pa;class ma extends K{static primaryClass="components-channel-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(ma.primaryClass)}}const ga=ma;class fa extends K{static primaryClass="components-operation-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(fa.primaryClass)}}const ya=fa;class ba extends K{static primaryClass="components-message-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(ba.primaryClass)}}const va=ba;class xa extends K{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(xa.primaryClass)}}const Sa=xa;class wa extends ws{static primaryClass="channel-item-server-names-list";constructor(e,t,s){super(e,t,s),this.classes.push(wa.primaryClass)}}const Ba=wa;class Ea extends K{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(Ea.primaryClass)}}const Oa=Ea;class ja extends ws{static primaryClass="operation-traits";constructor(e,t,s){super(e,t,s),this.classes.push(ja.primaryClass)}}const ka=ja;class qa extends ws{static primaryClass="server-security";constructor(e,t,s){super(e,t,s),this.classes.push(qa.primaryClass)}}const Ma=qa;class Ca extends K{static primaryClass="operation-message-map";constructor(e,t,s){super(e,t,s),this.classes.push(Ca.primaryClass)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}}const $a=Ca;class Aa extends ws{static primaryClass="operation-message";constructor(e,t,s){super(e,t,s),this.classes.push(Aa.primaryClass)}}const Pa=Aa;class Fa extends ws{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Fa.primaryClass)}}const Ia=Fa;class Ta extends ws{static primaryClass="operation-trait-security";constructor(e,t,s){super(e,t,s),this.classes.push(Ta.primaryClass)}}const Da=Ta;class Va extends ws{static primaryClass="message-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Va.primaryClass)}}const Na=Va;class Ra extends ws{static primaryClass="message-traits";constructor(e,t,s){super(e,t,s),this.classes.push(Ra.primaryClass)}}const _a=Ra;class La extends ws{static primaryClass="message-trait-examples";constructor(e,t,s){super(e,t,s),this.classes.push(La.primaryClass)}}const Ja=La,Ua={AsyncApi2Element:{asyncapi:(...e)=>new Q(...e),identifier:(...e)=>new ce(...e),info:(...e)=>new ae(...e),servers:(...e)=>new So(...e),defaultContentType:(...e)=>new re(...e),channels:(...e)=>new te(...e),components:(...e)=>new se(...e),tags:(...e)=>new Eo(...e),externalDocs:(...e)=>new oe(...e)},InfoElement:{contact:(...e)=>new ne(...e),license:(...e)=>new le(...e)},ServersElement:{"[key: *]":function(...e){return new vo(...e)}},ServerElement:{variables:(...e)=>new Sa(...e),security:(...e)=>new Ma(...e),tags:(...e)=>new Eo(...e),bindings:(...e)=>new xo(...e)},ServerVariableElement:{enum:(...e)=>new ws(...e),examples:(...e)=>new ws(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new ws(...e)}},ChannelsElement:{"[key: *]":function(...e){return new ee(...e)}},ChannelItemElement:{servers:(...e)=>new Ba(...e),subscribe:(...e)=>new fe(...e),publish:(...e)=>new fe(...e),parameters:(...e)=>new ve(...e),bindings:(...e)=>new Z(...e)},OperationElement:{tags:(...e)=>new Eo(...e),externalDocs:(...e)=>new oe(...e),bindings:(...e)=>new ye(...e),traits:(...e)=>new ka(...e),message:(...e)=>new ue(...e)},ComponentsElement:{schemas:(...e)=>new Kc(...e),servers:(...e)=>new Yc(...e),serverVariables:(...e)=>new Zc(...e),messages:(...e)=>new ta(...e),securitySchemes:(...e)=>new na(...e),parameters:(...e)=>new ra(...e),correlationIds:(...e)=>new ca(...e),operationTraits:(...e)=>new la(...e),messageTraits:(...e)=>new da(...e),serverBindings:(...e)=>new ha(...e),channelBindings:(...e)=>new ga(...e),operationBindings:(...e)=>new ya(...e),messageBindings:(...e)=>new va(...e)},TagElement:{externalDocs:(...e)=>new oe(...e)},MessageElement:{headers:(...e)=>new fo(...e),correlationId:(...e)=>new ie(...e),tags:(...e)=>new Eo(...e),externalDocs:(...e)=>new oe(...e),bindings:(...e)=>new de(...e),examples:(...e)=>new ws(...e),traits:(...e)=>new ws(...e),payload(...e){const{context:t}=this,s=mn(f.latest(),sn(t.schemaFormat));return f.includes(s)?new fo(...e):new K(...e)}},SecuritySchemeElement:{flows:(...e)=>new ge(...e)},OAuthFlowsElement:{implicit:(...e)=>new me(...e),password:(...e)=>new me(...e),clientCredentials:(...e)=>new me(...e),authorizationCode:(...e)=>new me(...e)},OAuthFlow:{scopes:(...e)=>new Oa(...e)},ParametersElement:{"[key: *]":function(...e){return new ve(...e)}},ParameterElement:{schema:(...e)=>new fo(...e)},OperationTraitElement:{tags:(...e)=>new Eo(...e),externalDocs:(...e)=>new oe(...e),bindings:(...e)=>new ye(...e)},MessageTraitElement:{headers:(...e)=>new fo(...e),correlationId:(...e)=>new ie(...e),tags:(...e)=>new Eo(...e),externalDocs:(...e)=>new oe(...e),bindings:(...e)=>new de(...e),examples:(...e)=>new ws(...e)},MessageExampleElement:{headers:(...e)=>new K(...e)},OperationBindingsElement:{http:(...e)=>new Jo(...e),ws:(...e)=>new Hc(...e),kafka:(...e)=>new tc(...e),anypointmq:(...e)=>new Io(...e),amqp:(...e)=>new ko(...e),amqp1:(...e)=>new $o(...e),mqtt:(...e)=>new lc(...e),mqtt5:(...e)=>new hc(...e),nats:(...e)=>new yc(...e),jms:(...e)=>new Yo(...e),sns:(...e)=>new Mc(...e),solace:(...e)=>new Pc(...e),sqs:(...e)=>new Dc(...e),stomp:(...e)=>new _c(...e),redis:(...e)=>new Oc(...e),mercure:(...e)=>new rc(...e),googlepubsub:(...e)=>new No(...e),ibmmq:(...e)=>new Go(...e),pulsar:(...e)=>new Sc(...e)},MessageBindingsElement:{http:(...e)=>new Lo(...e),ws:(...e)=>new Uc(...e),kafka:(...e)=>new ec(...e),anypointmq:(...e)=>new Fo(...e),amqp:(...e)=>new jo(...e),amqp1:(...e)=>new Co(...e),mqtt:(...e)=>new ac(...e),mqtt5:(...e)=>new pc(...e),nats:(...e)=>new fc(...e),jms:(...e)=>new Xo(...e),sns:(...e)=>new qc(...e),solace:(...e)=>new Ac(...e),sqs:(...e)=>new Tc(...e),stomp:(...e)=>new Rc(...e),redis:(...e)=>new Ec(...e),mercure:(...e)=>new ic(...e),ibmmq:(...e)=>new zo(...e),googlepubsub:(...e)=>new Vo(...e),pulsar:(...e)=>new xc(...e)},ServerBindingsElement:{http:(...e)=>new Uo(...e),ws:(...e)=>new zc(...e),kafka:(...e)=>new sc(...e),anypointmq:(...e)=>new To(...e),amqp:(...e)=>new qo(...e),amqp1:(...e)=>new Ao(...e),mqtt:(...e)=>new uc(...e),mqtt5:(...e)=>new mc(...e),nats:(...e)=>new bc(...e),jms:(...e)=>new Qo(...e),sns:(...e)=>new Cc(...e),solace:(...e)=>new Fc(...e),sqs:(...e)=>new Vc(...e),stomp:(...e)=>new Lc(...e),redis:(...e)=>new jc(...e),mercure:(...e)=>new oc(...e),ibmmq:(...e)=>new Wo(...e),googlepubsub:(...e)=>new Ro(...e),pulsar:(...e)=>new wc(...e)},ChannelBindingsElement:{http:(...e)=>new _o(...e),ws:(...e)=>new Jc(...e),kafka:(...e)=>new Zo(...e),anypointmq:(...e)=>new Po(...e),amqp:(...e)=>new Oo(...e),amqp1:(...e)=>new Mo(...e),mqtt:(...e)=>new cc(...e),mqtt5:(...e)=>new dc(...e),nats:(...e)=>new gc(...e),jms:(...e)=>new Ko(...e),sns:(...e)=>new kc(...e),solace:(...e)=>new $c(...e),sqs:(...e)=>new Ic(...e),stomp:(...e)=>new Nc(...e),redis:(...e)=>new Bc(...e),mercure:(...e)=>new nc(...e),ibmmq:(...e)=>new Ho(...e),googlepubsub:(...e)=>new Do(...e),pulsar:(...e)=>new vc(...e)},SchemaElement:{allOf(...e){const t=new ws(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new ws(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new ws(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new fo(...e),if:(...e)=>new fo(...e),then:(...e)=>new fo(...e),else:(...e)=>new fo(...e),enum:(...e)=>new ws(...e),items:(...e)=>new fo(...e),additionalItems:(...e)=>new fo(...e),contains:(...e)=>new fo(...e),required(...e){const t=new ws(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new K(...e);return t.classes.push("json-schema-properties"),t},patternProperties(...e){const t=new K(...e);return t.classes.push("json-schema-patternProperties"),t},additionalProperties:(...e)=>new fo(...e),dependencies(...e){const t=new K(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new fo(...e),examples(...e){const t=new ws(...e);return t.classes.push("json-schema-examples"),t},definitions(...e){const t=new K(...e);return t.classes.push("json-schema-definitions"),t},externalDocs:(...e)=>new oe(...e)},HttpOperationBindingElement:{query:(...e)=>new fo(...e)},HttpMessageBindingElement:{headers:(...e)=>new fo(...e)},WebSocketChannelBindingElement:{query:(...e)=>new fo(...e),headers:(...e)=>new fo(...e)},KafkaOperationBindingElement:{groupId:(...e)=>new fo(...e),clientId:(...e)=>new fo(...e)},KafkaMessageBindingElement:{key:(...e)=>new fo(...e)},AnypointmqMessageBindingElement:{headers:(...e)=>new fo(...e)},AmqpChannelBindingElement:{exchange:(...e)=>new K(...e),queue:(...e)=>new K(...e)},AmqpOperationBindingElement:{cc:(...e)=>new ws(...e),bcc:(...e)=>new ws(...e)},IbmmqChannelBindingElement:{queue:(...e)=>new K(...e),topic:(...e)=>new K(...e)},MqttServerBindingElement:{lastWill:(...e)=>new K(...e)},SolaceOperationBindingElement:{destinations:(...e)=>new ws(...e)},GooglepubsubChannelBindingElement:{labels:(...e)=>new K(...e),messageStoragePolicy:(...e)=>new K(...e),schemaSettings:(...e)=>new K(...e)},GooglepubsubMessageBindingElement:{attributes:(...e)=>new K(...e),schema:(...e)=>new K(...e)},PulsarChannelBindingElement:{"geo-replication":function(...e){return new ws(...e)},retention:(...e)=>new K(...e)},TagsElement:{"<*>":function(...e){return new Bo(...e)}},[Kc.primaryClass]:{"[key: *]":function(...e){return new fo(...e)}},[Yc.primaryClass]:{"[key: *]":function(...e){return new vo(...e)}},[Zc.primaryClass]:{"[key: *]":function(...e){return new wo(...e)}},[ta.primaryClass]:{"[key: *]":function(...e){return new ue(...e)}},[na.primaryClass]:{"[key: *]":function(...e){return new bo(...e)}},[ra.primaryClass]:{"[key: *]":function(...e){return new ve(...e)}},[ca.primaryClass]:{"[key: *]":function(...e){return new ie(...e)}},[la.primaryClass]:{"[key: *]":function(...e){return new be(...e)}},[da.primaryClass]:{"[key: *]":function(...e){return new he(...e)}},[ha.primaryClass]:{"[key: *]":function(...e){return new xo(...e)}},[ga.primaryClass]:{"[key: *]":function(...e){return new Z(...e)}},[ya.primaryClass]:{"[key: *]":function(...e){return new ye(...e)}},[va.primaryClass]:{"[key: *]":function(...e){return new de(...e)}},[Sa.primaryClass]:{"[key: *]":function(...e){return new wo(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new fo(...e)}},[Ma.primaryClass]:{"<*>":function(...e){return new yo(...e)}},[ka.primaryClass]:{"<*>":function(...e){return new be(...e)}},[$a.primaryClass]:{oneOf:(...e)=>new Pa(...e)},[Pa.primaryClass]:{"<*>":function(...e){return new ue(...e)}},[Ia.primaryClass]:{"<*>":function(...e){return new yo(...e)}},[Da.primaryClass]:{"<*>":function(...e){return new yo(...e)}},[Na.primaryClass]:{"<*>":function(...e){return new pe(...e)}},[_a.primaryClass]:{"<*>":function(...e){return new he(...e)}},[Ja.primaryClass]:{"<*>":function(...e){return new pe(...e)}},"json-schema-allOf":{"<*>":function(...e){return new fo(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new fo(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new fo(...e)}}},Ha=(e,t)=>{const s=ai(e),n=e.isMetaEmpty?void 0:e.classes.at(0),i=Ua[s]||Ua[n];return void 0===i?void 0:Object.hasOwn(i,"[key: *]")?i["[key: *]"]:i[t]},za=()=>()=>({visitor:{StringElement(e){const t=e.node;if(!(e=>Es(e)&&Ps(e,["yaml-e-node","yaml-e-scalar"]))(t))return;const s=e.getAncestorNodes().reverse().filter(Bs),n=s.at(-1);let i,r;if(qs(n)?(r=t,i=Ha(n,"<*>")):Cs(n)&&(r=s.at(-2),i=Ha(r,sn(n.key))),"function"!=typeof i)return;const o=i.call({context:r},void 0,t.isMetaEmpty?void 0:t.meta.cloneDeep(),t.isAttributesEmpty?void 0:Hs(t.attributes));Vs.transfer(t,o),un.transfer(t,o),e.replaceWith(o)}}});const Ga=e=>ks(e)&&Ps(e,["boolean-json-schema"]),Wa=e=>e instanceof X,Ka=e=>e instanceof Q,Xa=e=>e instanceof Z,Ya=e=>e instanceof ee,Qa=e=>e instanceof te,Za=e=>e instanceof se,el=e=>e instanceof ne,tl=e=>e instanceof ce,sl=e=>e instanceof ae,nl=e=>e instanceof le,il=e=>e instanceof fe,rl=e=>e instanceof ve,ol=e=>e instanceof xe,cl=e=>e instanceof Se,al=e=>e instanceof fo,ll=e=>e instanceof yo,ul=e=>e instanceof vo,dl=e=>e instanceof xo,pl=e=>e instanceof So,hl=e=>e instanceof wo;var ml=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=dt,e.prototype["@@transducer/result"]=pt,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?Mr(s):s},e}();function gl(e){return function(t){return new ml(e,t)}}const fl=y(lt(["take"],gl,function(e,t){return Ze(0,e<0?1/0:e,t)}));const yl=y(function(e,t){return P(fl(e.length,t),e)}),bl=e=>Ms(e)&&e.hasKey("$ref"),vl=e=>Es(e.key)&&yl("x-",sn(e.key));const xl=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=an(t.attributes,e.attributes),Vs.transfer(e,t),un.transfer(e,t)}};const Sl=class extends xl{enter(e){this.element=this.consume?e.node:Hs(e.node),e.stop()}};const wl=class extends xl{specObj;passingOptionsNames=["specObj","consume"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Te(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return xt(Xt,["visitors",...e],this.specObj)?Te(["visitors",...e],this.specObj):Te(["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 Sl&&n?.constructor===Sl?this.consume?t:Hs(t):(xi(t,n),n.element)}};const Bl=class extends wl{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Er(e,hn(t),gn)),n=Vr(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const El=class extends wl{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=vl;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),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,i)=>{const r=sn(t);if(Es(t)&&n.includes(r)&&!this.ignoredFields.includes(r)){const n=this.toRefractedElement([...s,"fixedFields",r],e),o=new W(this.consume?t:Hs(t),n);this.copyMetaAndAttributes(i,o),this.element.content.push(o),this.consume&&this.consumeSafe&&!i.isFrozen&&(i.value=void 0)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(i)){const e=this.toRefractedElement(["document","extension"],i);this.element.content.push(e),this.consume&&this.consumeSafe&&!i.isFrozen&&(i.value=void 0)}else this.ignoredFields.includes(r)||this.element.content.push(this.consume?i:Hs(i))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ol=class extends wl{specPath;ignoredFields;fieldPatternPredicate=Ui;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=vl;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:n,specificationExtensionPredicate:i,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof i&&(this.specificationExtensionPredicate=i)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=sn(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),i=this.toRefractedElement(n,e),r=new W(this.consume?t:Hs(t),i);this.copyMetaAndAttributes(s,r),r.classes.push("patterned-field"),this.element.content.push(r),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 jl=class extends Ol{constructor(e){super(e),this.fieldPatternPredicate=On}};function kl(e,t,s){var n,i=typeof e;switch(i){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):i in s._items?e in s._items[i]||(t&&(s._items[i][e]=!0),!1):(t&&(s._items[i]={},s._items[i][e]=!0),!1);case"boolean":if(i in s._items){var r=e?1:0;return!!s._items[i][r]||(t&&(s._items[i][r]=!0),!1)}return t&&(s._items[i]=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):i in s._items?!!it(e,s._items[i])||(t&&s._items[i].push(e),!1):(t&&(s._items[i]=[e]),!1);case"undefined":return!!s._items[i]||(t&&(s._items[i]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in s._items?!!it(e,s._items[i])||(t&&s._items[i].push(e),!1):(t&&(s._items[i]=[e]),!1)}}const ql=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!kl(e,!0,this)},e.prototype.has=function(e){return kl(e,!1,this)},e}();const Ml=y(function(e,t){for(var s=[],n=0,i=e.length,r=t.length,o=new ql,c=0;c<r;c+=1)o.add(t[c]);for(;n<i;)o.add(e[n])&&(s[s.length]=e[n]),n+=1;return s}),Cl=Li(wl,Sl),$l=Li(El,Sl),Al=Li(Ol,Sl),Pl=Li(jl,Sl),Fl=Li(El,Ol),Il=Li(Bl,Sl);const Tl=class extends Fl{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,...Ml(t.keys(),s)],El.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,Ol.prototype.ObjectElement.call(this,e);const i=t.keys();this.element.content.sort((e,t)=>i.indexOf(sn(e.key))-i.indexOf(sn(t.key)))}catch(e){throw this.specPath=s,e}e.stop()}};const Dl=class extends wl{MemberElement(e){const t=e.node;this.element=Hs(t),this.element.classes.push("specification-extension"),e.stop()}};function Vl(e){return void 0===e?new xs:Nl(e)}function Nl(e){if(e instanceof H)return e;if("string"==typeof e)return new Y(e);if("number"==typeof e)return new vs(e);if("boolean"==typeof e)return new Ss(e);if(null===e)return new xs;if(Array.isArray(e))return new ws(e.map(Vl));if("object"==typeof e)return new K(e);throw new Error("Cannot refract value of type "+typeof e)}H.prototype.ObjectElement=K,H.prototype.ArrayElement=ws,H.prototype.RefElement=Xs,H.prototype.MemberElement=W,H.prototype.refract=Nl,N.prototype.Element=H,N.prototype.cloneDeepElement=e=>Hs(e);var Rl=Ce(function(e,t,s){var n,i={};for(n in s=s||{},t=t||{})x(n,t)&&(i[n]=x(n,s)?e(n,t[n],s[n]):t[n]);for(n in s)x(n,s)&&!x(n,i)&&(i[n]=s[n]);return i});const _l=Rl;var Ll=Ce(function e(t,s,n){return _l(function(s,n,i){return ut(n)&&ut(i)?e(t,n,i):t(s,n,i)},s,n)});const Jl=Ll;const Ul=y(function(e,t){return Jl(function(e,t,s){return s},e,t)});const Hl=Ce(function(e,t,s){return mn(e,Pe(t,s))});const zl=Ze(0,-1);var Gl=y(function(e,t){return e.apply(this,t)});const Wl=Gl;const Kl=Rt(Xt);const Xl=Vt(Ar,xn);const Yl=Ct(3,function(e,t,s){var n=Te(e,s),i=Te(zl(e),s);if(!Kl(n)&&!Xl(e)){var r=ze(n,i);return Wl(r,t)}});const Ql=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 Vs)){const s=Vs.from(e);s&&(t.meta||(t.meta={}),t.meta.__mappings__=this.serialise(s))}if(!(e instanceof un)){const s=un.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 i=e.meta;if(e.meta?.__mappings__||e.meta?.__styles__){const{__mappings__:t,__styles__:r,...o}=e.meta;s=t,n=r,i=Object.keys(o).length>0?o:void 0}const r=e.__meta_raw__?new Set(e.__meta_raw__):void 0;if(i)for(const[e,s]of Object.entries(i)){const n=this.deserialise(s);t.setMetaProperty(e,r?.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[i,r]of Object.entries(e.meta))if(r instanceof this.namespace.elements.Element)t[i]=this.serialise(r),n=!0;else if(void 0!==r){const o=e.refract(r);t[i]=this.serialise(o),s.push(i),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]))})}},Zl=e=>null===e,eu=e=>"string"==typeof e,tu=e=>"number"==typeof e,su=e=>"boolean"==typeof e,nu=e=>null!==e&&"object"==typeof e;class iu{elementMap={};elementDetection=[];Element;KeyValuePair;_elements;_attributeElementKeys=[];_attributeElementArrayKeys=[];constructor(e){this.Element=H,this.KeyValuePair=R,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",xs).register("string",Y).register("number",vs).register("boolean",Ss).register("array",ws).register("object",K).register("member",W).register("ref",Xs).register("link",Ks).register("sourceMap",Vs),this.detect(Zl,xs,!1).detect(eu,Y,!1).detect(tu,vs,!1).detect(su,Ss,!1).detect(Array.isArray,ws,!1).detect(nu,K,!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 Ql(this)}}Ql.prototype.Namespace=iu;const ru=iu,ou=new ru,cu={isElement:Bs,isStringElement:Es,isNumberElement:Os,isNullElement:js,isBooleanElement:ks,isArrayElement:qs,isObjectElement:Ms,isMemberElement:Cs,isPrimitiveElement:e=>Ms(e)&&"object"===e.element||qs(e)&&"array"===e.element||ks(e)&&"boolean"===e.element||Os(e)&&"number"===e.element||Es(e)&&"string"===e.element||js(e)&&"null"===e.element||Cs(e)&&"member"===e.element,isLinkElement:en,isRefElement:tn,isAnnotationElement:e=>e instanceof Ys,isCommentElement:e=>e instanceof Qs,isParseResultElement:e=>e instanceof Zs,isSourceMapElement:e=>e instanceof Vs,hasElementStyle:$s,hasElementSourceMap:As,includesSymbols:(e,t)=>{if(0===t.length)return!0;if(!e.hasAttributesProperty("symbols"))return!1;const s=e.attributes.get("symbols");return!!qs(s)&&t.every(e=>s.includes(e))},includesClasses:Ps},au={toolboxCreator:()=>({predicates:cu,namespace:ou}),visitorOptions:{exposeEdits:!0}},lu=(e,t,s={})=>{if(0===t.length)return e;const n=Ul(au,s),{toolboxCreator:i,visitorOptions:r,traverseOptions:o}=n,c=i(),a=t.map(e=>e(c)),l=gi(a.map(Hl({},"visitor")),r);a.forEach(Yl(["pre"],[]));const u=xi(e,l,o);return a.forEach(Yl(["post"],[])),u};lu[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=Ul(au,s),{toolboxCreator:i,visitorOptions:r,traverseOptions:o}=n,c=i(),a=t.map(e=>e(c)),l=fi(a.map(Hl({},"visitor")),r);await Promise.allSettled(a.map(Yl(["pre"],[])));const u=await Si(e,l,o);return await Promise.allSettled(a.map(Yl(["post"],[]))),u};const uu=class extends $l{constructor(e){super(e),this.element=new X,this.consumeSafe=!0,this.specPath=hn(["document","objects","AsyncApi"]),this.canSupportSpecificationExtensions=!0}};const du=class extends Cl{StringElement(e){const t=e.node,s=new Q(sn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const pu=class extends Cl{StringElement(e){const t=e.node,s=new ce(sn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const hu=class extends $l{constructor(e){super(e),this.element=new ae,this.specPath=hn(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};const mu=class extends Sl{StringElement(e){const t=e.node;this.element=new Y(sn(t)),this.copyMetaAndAttributes(t,this.element),this.element.classes.push("api-version"),this.element.classes.push("version"),e.stop()}};const gu=class extends $l{constructor(e){super(e),this.element=new ne,this.specPath=hn(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}};const fu=class extends $l{constructor(e){super(e),this.element=new ie,this.specPath=hn(["document","objects","CorrelationID"]),this.canSupportSpecificationExtensions=!0}};const yu=class extends Cl{StringElement(e){const t=e.node,s=new re(sn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const bu=class extends $l{constructor(e){super(e),this.element=new le,this.specPath=hn(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}};const vu=class extends $l{constructor(e){super(e),this.element=new ge,this.specPath=hn(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}};const xu=class extends $l{constructor(e){super(e),this.element=new me,this.specPath=hn(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};const Su=class extends Pl{constructor(e){super(e),this.element=new Oa,this.specPath=hn(["value"])}};const wu=y(function(e,t){if(s=e,"[object RegExp]"!==Object.prototype.toString.call(s))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+vt(e));var s;return F(e).test(t)});const Bu=class extends Al{constructor(e){super(e),this.element=new So,this.element.classes.push("servers"),this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Server"],this.canSupportSpecificationExtensions=!1,this.fieldPatternPredicate=wu(/^[A-Za-z0-9_-]+$/)}ObjectElement(e){Al.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","server")})}};const Eu=class extends $l{constructor(e){super(e),this.element=new vo,this.specPath=hn(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};const Ou=class extends Sl{StringElement(e){super.enter(e),this.element.classes.push("server-url")}};const ju=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","ServerBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","serverBindings")}};const ku=class extends Pl{constructor(e){super(e),this.element=new Sa,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","ServerVariable"]}};const qu=class extends Cl{constructor(e){super(e),this.element=new Ma}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Mu=class extends $l{constructor(e){super(e),this.element=new wo,this.specPath=hn(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};const Cu=class extends $l{constructor(e){super(e),this.element=new xo,this.specPath=hn(["document","objects","ServerBindings"]),this.canSupportSpecificationExtensions=!0}};const $u=class extends $l{constructor(e){super(e),this.element=new bo,this.specPath=hn(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}};const Au=class extends Pl{constructor(e){super(e),this.element=new yo,this.specPath=hn(["value"])}};const Pu=class extends $l{constructor(e){super(e),this.element=new Se,this.specPath=hn(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){$l.prototype.ObjectElement.call(this,e),Es(this.element.$ref)&&this.element.classes.push("reference-element")}};const Fu=class extends Sl{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Iu=class extends $l{constructor(e){super(e),this.specPath=hn(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){this.element=new fo,$l.prototype.ObjectElement.call(this,e)}BooleanElement(e){super.enter(e),this.element.classes.push("boolean-json-schema")}},Tu=ho.visitors.JSONSchemaOrJSONReferenceVisitor;const Du=class extends Tu{enter(e){Tu.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","schema")}},Vu=ho.visitors.document.objects.JSONSchema.fixedFields.allOf;const Nu=class extends Vu{ArrayElement(e){Vu.prototype.ArrayElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Ru=ho.visitors.document.objects.JSONSchema.fixedFields.anyOf;const _u=class extends Ru{ArrayElement(e){Ru.prototype.ArrayElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Lu=ho.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Ju=class extends Lu{ArrayElement(e){Lu.prototype.ArrayElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Uu=ho.visitors.document.objects.JSONSchema.fixedFields.definitions;const Hu=class extends Uu{ObjectElement(e){Uu.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},zu=ho.visitors.document.objects.JSONSchema.fixedFields.dependencies;const Gu=class extends zu{ObjectElement(e){zu.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Wu=ho.visitors.document.objects.JSONSchema.fixedFields.items.$visitor;const Ku=class extends Wu{ObjectElement(e){Wu.prototype.ObjectElement.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","schema")}ArrayElement(e){Wu.prototype.ArrayElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Xu=ho.visitors.document.objects.JSONSchema.fixedFields.patternProperties;const Yu=class extends Xu{ObjectElement(e){Xu.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Qu=ho.visitors.document.objects.JSONSchema.fixedFields.properties;const Zu=class extends Qu{ObjectElement(e){Qu.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},ed=At(e=>e===ho.visitors.JSONSchemaOrJSONReferenceVisitor?Du:e,ho.visitors.document.objects.JSONSchema.fixedFields);const td=class extends Al{constructor(e){super(e),this.element=new xe,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Parameter"],this.canSupportSpecificationExtensions=!1,this.fieldPatternPredicate=e=>"string"==typeof e&&/^[A-Za-z0-9_-]+$/.test(e)}ObjectElement(e){Al.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const sd=class extends $l{constructor(e){super(e),this.element=new ve,this.specPath=hn(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}};const nd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","Schema"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","schema")}};const id=class extends $l{constructor(e){super(e),this.element=new oe,this.specPath=hn(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}};const rd=class extends $l{constructor(e){super(e),this.element=new se,this.specPath=hn(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}};const od=class extends Pl{constructor(e){super(e),this.element=new Kc,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}};const cd=class extends Pl{constructor(e){super(e),this.element=new Yc,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Server"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","server")})}};const ad=class extends Pl{constructor(e){super(e),this.element=new Zc,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","ServerVariable"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","serverVariable")})}};class ld extends K{static primaryClass="components-channels";constructor(e,t,s){super(e,t,s),this.classes.push(ld.primaryClass)}}const ud=ld;const dd=class extends Pl{constructor(e){super(e),this.element=new ud,this.specPath=hn(["document","objects","ChannelItem"])}};const pd=class extends Pl{constructor(e){super(e),this.element=new ta,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Message"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","message")})}};const hd=class extends Pl{constructor(e){super(e),this.element=new na,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","securityScheme")})}};const md=class extends Pl{constructor(e){super(e),this.element=new ra,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const gd=class extends Pl{constructor(e){super(e),this.element=new ca,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","CorrelationID"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","correlationID")})}};const fd=class extends Pl{constructor(e){super(e),this.element=new la,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","OperationTrait"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","operationTrait")})}};const yd=class extends Pl{constructor(e){super(e),this.element=new da,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","MessageTrait"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","messageTrait")})}};const bd=class extends Pl{constructor(e){super(e),this.element=new ha,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","ServerBindings"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","serverBindings")})}};const vd=class extends Pl{constructor(e){super(e),this.element=new ga,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","ChannelBindings"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","channelBindings")})}};const xd=class extends Pl{constructor(e){super(e),this.element=new ya,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","OperationBindings"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","operationBindings")})}};const Sd=class extends Pl{constructor(e){super(e),this.element=new va,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","MessageBindings"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","messageBindings")})}};const wd=class extends $l{constructor(e){super(e),this.element=new fe,this.specPath=hn(["document","objects","Operation"])}};const Bd=class extends Cl{constructor(e){super(e),this.element=new Ia}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ed=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","OperationBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","operationBindings")}};const Od=class extends Cl{constructor(e){super(e),this.element=new ka}ArrayElement(e){const t=e.node;t.forEach(e=>{let t;bl(e)?(t=this.toRefractedElement(["document","objects","Reference"],e),t.meta.set("referenced-element","operationTrait")):t=this.toRefractedElement(["document","objects","OperationTrait"],e),this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const jd=class extends Cl{ObjectElement(e){const t=e.node;if(bl(t))this.element=this.toRefractedElement(["document","objects","Reference"],t),this.element.meta.set("referenced-element","message");else if(qs(t.get("oneOf"))){this.element=new $a;const e=new Pa;t.get("oneOf").forEach(t=>{let s;const n=t;bl(n)?(s=this.toRefractedElement(["document","objects","Reference"],n),s.meta.set("referenced-element","message")):s=this.toRefractedElement(["document","objects","Message"],n),e.push(s)}),this.element.oneOf=e}else this.element=this.toRefractedElement(["document","objects","Message"],t);this.copyMetaAndAttributes(t,this.element),e.stop()}};const kd=class extends Cl{constructor(e){super(e),this.element=new Eo}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const qd=class extends $l{constructor(e){super(e),this.element=new Bo,this.specPath=hn(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}};const Md=class extends Pl{constructor(e){super(e),this.element=new te,this.specPath=hn(["document","objects","ChannelItem"])}};const Cd=class extends $l{constructor(e){super(e),this.element=new Z,this.specPath=hn(["document","objects","ChannelBindings"]),this.canSupportSpecificationExtensions=!0}};const $d=class extends $l{constructor(e){super(e),this.element=new ee,this.specPath=hn(["document","objects","ChannelItem"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){$l.prototype.ObjectElement.call(this,e),Es(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.meta.set("referenced-element","channelItem"))}};const Ad=class extends Sl{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Pd=class extends Cl{constructor(e){super(e),this.element=new Ba}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Hs(e);Es(t)&&t.classes.push("server-name"),this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Fd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","ChannelBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","channelBindings")}};const Id=class extends $l{constructor(e){super(e),this.element=new de,this.specPath=hn(["document","objects","MessageBindings"]),this.canSupportSpecificationExtensions=!0}};const Td=class extends $l{constructor(e){super(e),this.element=new pe,this.specPath=hn(["document","objects","MessageExample"]),this.canSupportSpecificationExtensions=!0}};const Dd=class extends $l{constructor(e){super(e),this.element=new he,this.specPath=hn(["document","objects","MessageTrait"]),this.canSupportSpecificationExtensions=!0}};const Vd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","Schema"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","schema")}};const Nd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","CorrelationID"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","correlationID")}};const Rd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","MessageBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","messageBindings")}};const _d=class extends Cl{constructor(e){super(e),this.element=new Ja}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","MessageExample"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ld=class extends $l{constructor(e){super(e),this.element=new ue,this.specPath=hn(["document","objects","Message"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){$l.prototype.ObjectElement.call(this,e);const t=e.node,s=this.element.get("payload"),n=mn(f.latest(),sn(t.get("schemaFormat")));if(f.includes(n)&&bl(s)){const e=this.toRefractedElement(["document","objects","Reference"],s);e.meta.set("referenced-element","schema"),this.element.payload=e}else f.includes(n)&&Ms(this.element.payload)&&(this.element.payload=this.toRefractedElement(["document","objects","Schema"],s))}};const Jd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","Schema"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","schema")}};const Ud=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","CorrelationID"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","correlationID")}};const Hd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","MessageBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","messageBindings")}};const zd=class extends Cl{constructor(e){super(e),this.element=new Na}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","MessageExample"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Gd=class extends Cl{constructor(e){super(e),this.element=new _a}ArrayElement(e){const t=e.node;t.forEach(e=>{let t;bl(e)?(t=this.toRefractedElement(["document","objects","Reference"],e),t.meta.set("referenced-element","messageTrait")):t=this.toRefractedElement(["document","objects","MessageTrait"],e),this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Wd=class extends $l{constructor(e){super(e),this.element=new ye,this.specPath=hn(["document","objects","OperationBindings"]),this.canSupportSpecificationExtensions=!0}};const Kd=class extends $l{constructor(e){super(e),this.element=new be,this.specPath=hn(["document","objects","OperationTrait"]),this.canSupportSpecificationExtensions=!0}};const Xd=class extends Cl{constructor(e){super(e),this.element=new Da}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Yd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","OperationBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","operationBindings")}};const Qd=class extends $l{constructor(e){super(e),this.element=new Oo,this.specPath=hn(["document","objects","bindings","amqp","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Zd=class extends $l{constructor(e){super(e),this.element=new jo,this.specPath=hn(["document","objects","bindings","amqp","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const ep=class extends $l{constructor(e){super(e),this.element=new ko,this.specPath=hn(["document","objects","bindings","amqp","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const tp=class extends $l{constructor(e){super(e),this.element=new qo,this.specPath=hn(["document","objects","bindings","amqp","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const sp=class extends $l{constructor(e){super(e),this.element=new Mo,this.specPath=hn(["document","objects","bindings","amqp1","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const np=class extends $l{constructor(e){super(e),this.element=new Co,this.specPath=hn(["document","objects","bindings","amqp1","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const ip=class extends $l{constructor(e){super(e),this.element=new $o,this.specPath=hn(["document","objects","bindings","amqp1","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const rp=class extends $l{constructor(e){super(e),this.element=new Ao,this.specPath=hn(["document","objects","bindings","amqp1","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const op=class extends $l{constructor(e){super(e),this.element=new Po,this.specPath=hn(["document","objects","bindings","anypointmq","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const cp=class extends $l{constructor(e){super(e),this.element=new Fo,this.specPath=hn(["document","objects","bindings","anypointmq","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const ap=class extends $l{constructor(e){super(e),this.element=new Io,this.specPath=hn(["document","objects","bindings","anypointmq","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const lp=class extends $l{constructor(e){super(e),this.element=new To,this.specPath=hn(["document","objects","bindings","anypointmq","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const up=class extends $l{constructor(e){super(e),this.element=new _o,this.specPath=hn(["document","objects","bindings","http","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const dp=class extends $l{constructor(e){super(e),this.element=new Lo,this.specPath=hn(["document","objects","bindings","http","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const pp=class extends $l{constructor(e){super(e),this.element=new Jo,this.specPath=hn(["document","objects","bindings","http","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const hp=class extends $l{constructor(e){super(e),this.element=new Uo,this.specPath=hn(["document","objects","bindings","http","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const mp=class extends $l{constructor(e){super(e),this.element=new Do,this.specPath=hn(["document","objects","bindings","googlepubsub","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const gp=class extends $l{constructor(e){super(e),this.element=new Vo,this.specPath=hn(["document","objects","bindings","googlepubusb","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const fp=class extends $l{constructor(e){super(e),this.element=new No,this.specPath=hn(["document","objects","bindings","googlepubsub","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const yp=class extends $l{constructor(e){super(e),this.element=new Ro,this.specPath=hn(["document","objects","bindings","googlepubsub","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const bp=class extends $l{constructor(e){super(e),this.element=new Ho,this.specPath=hn(["document","objects","bindings","ibmmq","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const vp=class extends $l{constructor(e){super(e),this.element=new zo,this.specPath=hn(["document","objects","bindings","ibmmq","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const xp=class extends $l{constructor(e){super(e),this.element=new Go,this.specPath=hn(["document","objects","bindings","ibmmq","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Sp=class extends $l{constructor(e){super(e),this.element=new Wo,this.specPath=hn(["document","objects","bindings","ibmmq","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const wp=class extends $l{constructor(e){super(e),this.element=new Ko,this.specPath=hn(["document","objects","bindings","jms","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Bp=class extends $l{constructor(e){super(e),this.element=new Xo,this.specPath=hn(["document","objects","bindings","jms","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Ep=class extends $l{constructor(e){super(e),this.element=new Yo,this.specPath=hn(["document","objects","bindings","jms","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Op=class extends $l{constructor(e){super(e),this.element=new Qo,this.specPath=hn(["document","objects","bindings","jms","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const jp=class extends $l{constructor(e){super(e),this.element=new Zo,this.specPath=hn(["document","objects","bindings","kafka","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const kp=class extends $l{constructor(e){super(e),this.element=new ec,this.specPath=hn(["document","objects","bindings","kafka","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const qp=class extends $l{constructor(e){super(e),this.element=new tc,this.specPath=hn(["document","objects","bindings","kafka","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Mp=class extends $l{constructor(e){super(e),this.element=new sc,this.specPath=hn(["document","objects","bindings","kafka","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const Cp=class extends $l{constructor(e){super(e),this.element=new nc,this.specPath=hn(["document","objects","bindings","mercure","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const $p=class extends $l{constructor(e){super(e),this.element=new ic,this.specPath=hn(["document","objects","bindings","mercure","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Ap=class extends $l{constructor(e){super(e),this.element=new rc,this.specPath=hn(["document","objects","bindings","mercure","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Pp=class extends $l{constructor(e){super(e),this.element=new oc,this.specPath=hn(["document","objects","bindings","mercure","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const Fp=class extends $l{constructor(e){super(e),this.element=new cc,this.specPath=hn(["document","objects","bindings","mqtt","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Ip=class extends $l{constructor(e){super(e),this.element=new ac,this.specPath=hn(["document","objects","bindings","mqtt","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Tp=class extends $l{constructor(e){super(e),this.element=new lc,this.specPath=hn(["document","objects","bindings","mqtt","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Dp=class extends $l{constructor(e){super(e),this.element=new uc,this.specPath=hn(["document","objects","bindings","mqtt","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const Vp=class extends $l{constructor(e){super(e),this.element=new dc,this.specPath=hn(["document","objects","bindings","mqtt5","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Np=class extends $l{constructor(e){super(e),this.element=new pc,this.specPath=hn(["document","objects","bindings","mqtt5","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Rp=class extends $l{constructor(e){super(e),this.element=new hc,this.specPath=hn(["document","objects","bindings","mqtt5","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const _p=class extends $l{constructor(e){super(e),this.element=new mc,this.specPath=hn(["document","objects","bindings","mqtt5","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const Lp=class extends $l{constructor(e){super(e),this.element=new gc,this.specPath=hn(["document","objects","bindings","nats","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Jp=class extends $l{constructor(e){super(e),this.element=new fc,this.specPath=hn(["document","objects","bindings","nats","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Up=class extends $l{constructor(e){super(e),this.element=new yc,this.specPath=hn(["document","objects","bindings","nats","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Hp=class extends $l{constructor(e){super(e),this.element=new bc,this.specPath=hn(["document","objects","bindings","nats","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const zp=class extends $l{constructor(e){super(e),this.element=new vc,this.specPath=hn(["document","objects","bindings","pulsar","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Gp=class extends $l{constructor(e){super(e),this.element=new xc,this.specPath=hn(["document","objects","bindings","pulsar","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Wp=class extends $l{constructor(e){super(e),this.element=new Sc,this.specPath=hn(["document","objects","bindings","pulsar","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Kp=class extends $l{constructor(e){super(e),this.element=new wc,this.specPath=hn(["document","objects","bindings","pulsar","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const Xp=class extends $l{constructor(e){super(e),this.element=new Bc,this.specPath=hn(["document","objects","bindings","redis","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Yp=class extends $l{constructor(e){super(e),this.element=new Ec,this.specPath=hn(["document","objects","bindings","redis","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Qp=class extends $l{constructor(e){super(e),this.element=new Oc,this.specPath=hn(["document","objects","bindings","redis","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Zp=class extends $l{constructor(e){super(e),this.element=new jc,this.specPath=hn(["document","objects","bindings","redis","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const eh=class extends $l{constructor(e){super(e),this.element=new kc,this.specPath=hn(["document","objects","bindings","sns","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const th=class extends $l{constructor(e){super(e),this.element=new qc,this.specPath=hn(["document","objects","bindings","sns","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const sh=class extends $l{constructor(e){super(e),this.element=new Mc,this.specPath=hn(["document","objects","bindings","sns","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const nh=class extends $l{constructor(e){super(e),this.element=new Cc,this.specPath=hn(["document","objects","bindings","sns","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const ih=class extends $l{constructor(e){super(e),this.element=new $c,this.specPath=hn(["document","objects","bindings","solace","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const rh=class extends $l{constructor(e){super(e),this.element=new Ac,this.specPath=hn(["document","objects","bindings","solace","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const oh=class extends $l{constructor(e){super(e),this.element=new Pc,this.specPath=hn(["document","objects","bindings","solace","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const ch=class extends $l{constructor(e){super(e),this.element=new Fc,this.specPath=hn(["document","objects","bindings","solace","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const ah=class extends $l{constructor(e){super(e),this.element=new Ic,this.specPath=hn(["document","objects","bindings","sqs","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const lh=class extends $l{constructor(e){super(e),this.element=new Tc,this.specPath=hn(["document","objects","bindings","sqs","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const uh=class extends $l{constructor(e){super(e),this.element=new Dc,this.specPath=hn(["document","objects","bindings","sqs","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const dh=class extends $l{constructor(e){super(e),this.element=new Vc,this.specPath=hn(["document","objects","bindings","sqs","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const ph=class extends $l{constructor(e){super(e),this.element=new Nc,this.specPath=hn(["document","objects","bindings","stomp","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const hh=class extends $l{constructor(e){super(e),this.element=new Rc,this.specPath=hn(["document","objects","bindings","stomp","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const mh=class extends $l{constructor(e){super(e),this.element=new _c,this.specPath=hn(["document","objects","bindings","stomp","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const gh=class extends $l{constructor(e){super(e),this.element=new Lc,this.specPath=hn(["document","objects","bindings","stomp","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const fh=class extends $l{constructor(e){super(e),this.element=new Jc,this.specPath=hn(["document","objects","bindings","ws","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const yh=class extends $l{constructor(e){super(e),this.element=new Uc,this.specPath=hn(["document","objects","bindings","ws","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const bh=class extends $l{constructor(e){super(e),this.element=new Hc,this.specPath=hn(["document","objects","bindings","ws","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const vh=class extends $l{constructor(e){super(e),this.element=new zc,this.specPath=hn(["document","objects","bindings","ws","ServerBinding"]),this.canSupportSpecificationExtensions=!1}},xh={element:"reference",$visitor:Pu,fixedFields:{$ref:Fu}},Sh={element:"schema",$visitor:Iu,fixedFields:{...ed,allOf:Nu,anyOf:_u,oneOf:Ju,items:{$visitor:Ku,alias:"itemsField"},properties:Zu,patternProperties:Yu,dependencies:Gu,definitions:Hu,discriminator:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},deprecated:{$ref:"#/visitors/value"}}},wh={visitors:{value:Sl,document:{objects:{AsyncApi:{element:"asyncApi2",$visitor:uu,fixedFields:{asyncapi:{$ref:"#/visitors/document/objects/AsyncApiVersion"},id:{$visitor:pu,alias:"idField"},info:{$ref:"#/visitors/document/objects/Info"},servers:{$ref:"#/visitors/document/objects/Servers"},defaultContentType:{$ref:"#/visitors/document/objects/DefaultContentType"},channels:{$ref:"#/visitors/document/objects/Channels"},components:{$ref:"#/visitors/document/objects/Components"},tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},AsyncApiVersion:{element:"asyncApiVersion",$visitor:du},Identifier:{element:"identifier",$visitor:pu},Info:{element:"info",$visitor:hu,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},version:mu,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"}}},Contact:{element:"contact",$visitor:gu,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{element:"license",$visitor:bu,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Servers:{element:"servers",$visitor:Bu},Server:{element:"server",$visitor:Eu,fixedFields:{url:Ou,protocol:{$ref:"#/visitors/value"},protocolVersion:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},variables:ku,security:qu,tags:{$ref:"#/visitors/document/objects/Tags"},bindings:ju}},ServerVariable:{element:"serverVariable",$visitor:Mu,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},examples:{$ref:"#/visitors/value"}}},DefaultContentType:{element:"defaultContentType",$visitor:yu},Channels:{element:"channels",$visitor:Md},ChannelItem:{element:"channelItem",$visitor:$d,fixedFields:{$ref:Ad,description:{$ref:"#/visitors/value"},servers:Pd,subscribe:{$ref:"#/visitors/document/objects/Operation"},publish:{$ref:"#/visitors/document/objects/Operation"},parameters:{$ref:"#/visitors/document/objects/Parameters"},bindings:Fd}},Operation:{element:"operation",$visitor:wd,fixedFields:{operationId:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},security:Bd,tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Ed,traits:Od,message:jd}},OperationTrait:{element:"operationTrait",$visitor:Kd,fixedFields:{operationId:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},security:Xd,tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Yd}},Message:{element:"message",$visitor:Ld,fixedFields:{messageId:{$ref:"#/visitors/value"},headers:Jd,payload:{$ref:"#/visitors/value"},correlationId:Ud,schemaFormat:{$ref:"#/visitors/value"},contentType:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Hd,examples:zd,traits:Gd}},MessageTrait:{element:"messageTrait",$visitor:Dd,fixedFields:{messageId:{$ref:"#/visitors/value"},headers:Vd,correlationId:Nd,schemaFormat:{$ref:"#/visitors/value"},contentType:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Rd,examples:_d}},MessageExample:{element:"messageExample",$visitor:Td,fixedFields:{headers:{$ref:"#/visitors/value"},payload:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"}}},Tags:{element:"tags",$visitor:kd},Tag:{element:"tag",$visitor:qd,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},ExternalDocumentation:{element:"externalDocumentation",$visitor:id,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Components:{element:"components",$visitor:rd,fixedFields:{schemas:od,servers:cd,serverVariables:ad,channels:dd,messages:pd,securitySchemes:hd,parameters:md,correlationIds:gd,operationTraits:fd,messageTraits:yd,serverBindings:bd,channelBindings:vd,operationBindings:xd,messageBindings:Sd}},JSONReference:xh,Reference:xh,JSONSchema:Sh,Schema:Sh,LinkDescription:ho.visitors.document.objects.LinkDescription,SecurityScheme:{element:"securityScheme",$visitor:$u,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"}}},SecurityRequirement:{element:"securityRequirement",$visitor:Au},OAuthFlows:{element:"oAuthFlows",$visitor:vu,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:{element:"oAuthFlow",$visitor:xu,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Su}},ServerBindings:{element:"serverBindings",$visitor:Cu,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/ServerBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/ServerBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/ServerBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/ServerBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/ServerBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/ServerBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/ServerBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/ServerBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/ServerBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/ServerBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/ServerBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/ServerBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/ServerBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/ServerBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/ServerBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/ServerBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/ServerBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/ServerBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/ServerBinding"}}},Parameters:{element:"parameters",$visitor:td},Parameter:{element:"parameter",$visitor:sd,fixedFields:{description:{$ref:"#/visitors/value"},schema:nd,location:{$ref:"#/visitors/value"}}},ChannelBindings:{element:"channelBindings",$visitor:Cd,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/ChannelBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/ChannelBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/ChannelBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/ChannelBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/ChannelBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/ChannelBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/ChannelBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/ChannelBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/ChannelBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/ChannelBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/ChannelBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/ChannelBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/ChannelBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/ChannelBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/ChannelBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/ChannelBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/ChannelBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/ChannelBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/ChannelBinding"}}},OperationBindings:{element:"operationBindings",$visitor:Wd,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/OperationBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/OperationBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/OperationBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/OperationBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/OperationBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/OperationBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/OperationBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/OperationBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/OperationBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/OperationBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/OperationBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/OperationBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/OperationBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/OperationBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/OperationBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/OperationBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/OperationBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/OperationBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/OperationBinding"}}},MessageBindings:{element:"messageBindings",$visitor:Id,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/MessageBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/MessageBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/MessageBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/MessageBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/MessageBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/MessageBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/MessageBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/MessageBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/MessageBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/MessageBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/MessageBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/MessageBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/MessageBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/MessageBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/MessageBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/MessageBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/MessageBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/MessageBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/MessageBinding"}}},CorrelationID:{element:"correlationID",$visitor:fu,fixedFields:{description:{$ref:"#/visitors/value"},location:{$ref:"#/visitors/value"}}},bindings:{http:{ServerBinding:{element:"httpServerBinding",$visitor:hp},ChannelBinding:{element:"httpChannelBinding",$visitor:up},OperationBinding:{element:"httpOperationBinding",$visitor:pp,fixedFields:{type:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},query:Du,bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"httpMessageBinding",$visitor:dp,fixedFields:{headers:Du,bindingVersion:{$ref:"#/visitors/value"}}}},ws:{ServerBinding:{element:"webSocketServerBinding",$visitor:vh},ChannelBinding:{element:"webSocketChannelBinding",$visitor:fh,fixedFields:{method:{$ref:"#/visitors/value"},query:Du,headers:Du,bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"webSocketOperationBinding",$visitor:bh},MessageBinding:{element:"webSocketMessageBinding",$visitor:yh}},kafka:{ServerBinding:{element:"kafkaServerBinding",$visitor:Mp,fixedFields:{schemaRegistryUrl:{$ref:"#/visitors/value"},schemaRegistryVendor:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{element:"kafkaChannelBinding",$visitor:jp,fixedFields:{topic:{$ref:"#/visitors/value"},partitions:{$ref:"#/visitors/value"},replicas:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"kafkaOperationBinding",$visitor:qp,fixedFields:{groupId:Du,clientId:Du,bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"kafkaMessageBinding",$visitor:kp,fixedFields:{key:Du,schemaIdLocation:{$ref:"#/visitors/value"},schemaIdPayloadEncoding:{$ref:"#/visitors/value"},schemaLookupStrategy:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}}},anypointmq:{ServerBinding:{element:"anypointmqServerBinding",$visitor:lp},ChannelBinding:{element:"anypointmqChannelBinding",$visitor:op,fixedFields:{destination:{$ref:"#/visitors/value"},destinationType:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"anypointmqOperationBinding",$visitor:ap},MessageBinding:{element:"anypointmqMessageBinding",$visitor:cp,fixedFields:{headers:Du,bindingVersion:{$ref:"#/visitors/value"}}}},amqp:{ServerBinding:{element:"amqpServerBinding",$visitor:tp},ChannelBinding:{element:"amqpChannelBinding",$visitor:Qd,fixedFields:{is:{$ref:"#/visitors/value"},exchange:{$ref:"#/visitors/value"},queue:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"amqpOperationBinding",$visitor:ep,fixedFields:{expiration:{$ref:"#/visitors/value"},userId:{$ref:"#/visitors/value"},cc:{$ref:"#/visitors/value"},priority:{$ref:"#/visitors/value"},deliveryMode:{$ref:"#/visitors/value"},mandatory:{$ref:"#/visitors/value"},bcc:{$ref:"#/visitors/value"},replyTo:{$ref:"#/visitors/value"},timestamp:{$ref:"#/visitors/value"},ack:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"amqpMessageBinding",$visitor:Zd,fixedFields:{contentEncoding:{$ref:"#/visitors/value"},messageType:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}}},amqp1:{ServerBinding:{element:"amqp1ServerBinding",$visitor:rp},ChannelBinding:{element:"amqp1ChannelBinding",$visitor:sp},OperationBinding:{element:"amqp1OperationBinding",$visitor:ip},MessageBinding:{element:"amqp1MessageBinding",$visitor:np}},mqtt:{ServerBinding:{element:"mqttServerBinding",$visitor:Dp,fixedFields:{clientId:{$ref:"#/visitors/value"},cleanSession:{$ref:"#/visitors/value"},lastWill:{$ref:"#/visitors/value"},keepAlive:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{element:"mqttChannelBinding",$visitor:Fp},OperationBinding:{element:"mqttOperationBinding",$visitor:Tp,fixedFields:{qos:{$ref:"#/visitors/value"},retain:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"mqttMessageBinding",$visitor:Ip,fixedFields:{bindingVersion:{$ref:"#/visitors/value"}}}},mqtt5:{ServerBinding:{element:"mqtt5ServerBinding",$visitor:_p},ChannelBinding:{element:"mqtt5ChannelBinding",$visitor:Vp},OperationBinding:{element:"mqtt5OperationBinding",$visitor:Rp},MessageBinding:{element:"mqtt5MessageBinding",$visitor:Np}},nats:{ServerBinding:{element:"natsServerBinding",$visitor:Hp},ChannelBinding:{element:"natsChannelBinding",$visitor:Lp},OperationBinding:{element:"natsOperationBinding",$visitor:Up,fixedFields:{queue:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"natsMessageBinding",$visitor:Jp}},pulsar:{ServerBinding:{element:"pulsarServerBinding",$visitor:Kp,fixedFields:{tenant:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{element:"pulsarChannelBinding",$visitor:zp,fixedFields:{namespace:{$ref:"#/visitors/value"},persistence:{$ref:"#/visitors/value"},compaction:{$ref:"#/visitors/value"},"geo-replication":{$ref:"#/visitors/value"},retention:{$ref:"#/visitors/value"},ttl:{$ref:"#/visitors/value"},deduplication:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"pulsarOperationBinding",$visitor:Wp},MessageBinding:{element:"pulsarMessageBinding",$visitor:Gp}},jms:{ServerBinding:{element:"jmsServerBinding",$visitor:Op},ChannelBinding:{element:"jmsChannelBinding",$visitor:wp},OperationBinding:{element:"jmsOperationBinding",$visitor:Ep},MessageBinding:{element:"jmsMessageBinding",$visitor:Bp}},sns:{ServerBinding:{element:"snsServerBinding",$visitor:nh},ChannelBinding:{element:"snsChannelBinding",$visitor:eh},OperationBinding:{element:"snsOperationBinding",$visitor:sh},MessageBinding:{element:"snsMessageBinding",$visitor:th}},solace:{ServerBinding:{element:"solaceServerBinding",$visitor:ch,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},msgVpn:{$ref:"#/visitors/value"}}},ChannelBinding:{element:"solaceChannelBinding",$visitor:ih},OperationBinding:{element:"solaceOperationBinding",$visitor:oh,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},destinations:{$ref:"#/visitors/value"}}},MessageBinding:{element:"solaceMessageBinding",$visitor:rh}},sqs:{ServerBinding:{element:"sqsServerBinding",$visitor:dh},ChannelBinding:{element:"sqsChannelBinding",$visitor:ah},OperationBinding:{element:"sqsOperationBinding",$visitor:uh},MessageBinding:{element:"sqsMessageBinding",$visitor:lh}},stomp:{ServerBinding:{element:"stompServerBinding",$visitor:gh},ChannelBinding:{element:"stompChannelBinding",$visitor:ph},OperationBinding:{element:"stompOperationBinding",$visitor:mh},MessageBinding:{element:"stompMessageBinding",$visitor:hh}},redis:{ServerBinding:{element:"redisServerBinding",$visitor:Zp},ChannelBinding:{element:"redisChannelBinding",$visitor:Xp},OperationBinding:{element:"redisOperationBinding",$visitor:Qp},MessageBinding:{element:"redisMessageBinding",$visitor:Yp}},mercure:{ServerBinding:{element:"mercureServerBinding",$visitor:Pp},ChannelBinding:{element:"mercureChannelBinding",$visitor:Cp},OperationBinding:{element:"mercureOperationBinding",$visitor:Ap},MessageBinding:{element:"mercureMessageBinding",$visitor:$p}},googlepubsub:{ServerBinding:{element:"googlepubsubServerBinding",$visitor:yp},ChannelBinding:{element:"googlepubsubChannelBinding",$visitor:mp,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},labels:{$ref:"#/visitors/value"},messageRetentionDuration:{$ref:"#/visitors/value"},messageStoragePolicy:{$ref:"#/visitors/value"},schemaSettings:{$ref:"#/visitors/value"},topic:{$ref:"#/visitors/value"}}},OperationBinding:{element:"googlepubsubOperationBinding",$visitor:fp},MessageBinding:{element:"googlepubsubMessageBinding",$visitor:gp,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},attributes:{$ref:"#/visitors/value",alias:"attributesField"},orderingKey:{$ref:"#/visitors/value"},schema:{$ref:"#/visitors/value"}}}},ibmmq:{ServerBinding:{element:"ibmmqServerBinding",$visitor:Sp,fixedFields:{groupId:{$ref:"#/visitors/value"},ccdtQueueManagerName:{$ref:"#/visitors/value"},cipherSpec:{$ref:"#/visitors/value"},multiEndpointServer:{$ref:"#/visitors/value"},heartBeatInterval:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{element:"ibmmqChannelBinding",$visitor:bp,fixedFields:{destinationType:{$ref:"#/visitors/value"},queue:{$ref:"#/visitors/value"},topic:{$ref:"#/visitors/value"},maxMsgLength:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"ibmmqMessageBinding",$visitor:vp,fixedFields:{type:{$ref:"#/visitors/value"},headers:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},expiry:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"ibmmqOperationBinding",$visitor:xp}}}},extension:{$visitor:Dl}}}},Bh=()=>{const e=new ru,t={...n,...s,isStringElement:Es};return e.use(Gc),{predicates:t,namespace:e}},Eh=(e,{element:t="asyncApi2",plugins:s=[],specificationObj:n=wh,consume:i=!1}={})=>{const r=Nl(e),o=ms(n),c=o.elementMap[t];if(!c)throw new Error(`Unknown element type: "${t}"`);const a=new(Te(c,o))({specObj:o,consume:i});return xi(r,a),lu(a.element,s,{toolboxCreator:Bh})},Oh=(e,t={})=>Eh(e,{...t,element:"asyncApi2"}),jh=(e,t={})=>Eh(e,{...t,element:"asyncApiVersion"}),kh=(e,t={})=>Eh(e,{...t,element:"identifier"}),qh=(e,t={})=>Eh(e,{...t,element:"defaultContentType"}),Mh=(e,t={})=>Eh(e,{...t,element:"channels"}),Ch=(e,t={})=>Eh(e,{...t,element:"servers"}),$h=(e,t={})=>Eh(e,{...t,element:"parameters"}),Ah=(e,t={})=>Eh(e,{...t,element:"tags"}),Ph=(e,t={})=>Eh(e,{...t,element:"channelBindings"}),Fh=(e,t={})=>Eh(e,{...t,element:"channelItem"}),Ih=(e,t={})=>Eh(e,{...t,element:"components"}),Th=(e,t={})=>Eh(e,{...t,element:"contact"}),Dh=(e,t={})=>Eh(e,{...t,element:"correlationID"}),Vh=(e,t={})=>Eh(e,{...t,element:"externalDocumentation"}),Nh=(e,t={})=>Eh(e,{...t,element:"info"}),Rh=(e,t={})=>Eh(e,{...t,element:"license"}),_h=(e,t={})=>Eh(e,{...t,element:"message"}),Lh=(e,t={})=>Eh(e,{...t,element:"messageBindings"}),Jh=(e,t={})=>Eh(e,{...t,element:"messageExample"}),Uh=(e,t={})=>Eh(e,{...t,element:"messageTrait"}),Hh=(e,t={})=>Eh(e,{...t,element:"oAuthFlow"}),zh=(e,t={})=>Eh(e,{...t,element:"oAuthFlows"}),Gh=(e,t={})=>Eh(e,{...t,element:"operation"}),Wh=(e,t={})=>Eh(e,{...t,element:"operationBindings"}),Kh=(e,t={})=>Eh(e,{...t,element:"operationTrait"}),Xh=(e,t={})=>Eh(e,{...t,element:"parameter"}),Yh=(e,t={})=>Eh(e,{...t,element:"reference"}),Qh=(e,t={})=>Eh(e,{...t,element:"schema"}),Zh=(e,t={})=>Eh(e,{...t,element:"securityRequirement"}),em=(e,t={})=>Eh(e,{...t,element:"securityScheme"}),tm=(e,t={})=>Eh(e,{...t,element:"server"}),sm=(e,t={})=>Eh(e,{...t,element:"serverBindings"}),nm=(e,t={})=>Eh(e,{...t,element:"serverVariable"}),im=(e,t={})=>Eh(e,{...t,element:"tag"}),rm=(e,t={})=>Eh(e,{...t,element:"amqpChannelBinding"}),om=(e,t={})=>Eh(e,{...t,element:"amqpMessageBinding"}),cm=(e,t={})=>Eh(e,{...t,element:"amqpOperationBinding"}),am=(e,t={})=>Eh(e,{...t,element:"amqpServerBinding"}),lm=(e,t={})=>Eh(e,{...t,element:"amqp1ChannelBinding"}),um=(e,t={})=>Eh(e,{...t,element:"amqp1MessageBinding"}),dm=(e,t={})=>Eh(e,{...t,element:"amqp1OperationBinding"}),pm=(e,t={})=>Eh(e,{...t,element:"amqp1ServerBinding"}),hm=(e,t={})=>Eh(e,{...t,element:"anypointmqChannelBinding"}),mm=(e,t={})=>Eh(e,{...t,element:"anypointmqMessageBinding"}),gm=(e,t={})=>Eh(e,{...t,element:"anypointmqOperationBinding"}),fm=(e,t={})=>Eh(e,{...t,element:"anypointmqServerBinding"}),ym=(e,t={})=>Eh(e,{...t,element:"googlepubsubChannelBinding"}),bm=(e,t={})=>Eh(e,{...t,element:"googlepubsubMessageBinding"}),vm=(e,t={})=>Eh(e,{...t,element:"googlepubsubOperationBinding"}),xm=(e,t={})=>Eh(e,{...t,element:"googlepubsubServerBinding"}),Sm=(e,t={})=>Eh(e,{...t,element:"httpChannelBinding"}),wm=(e,t={})=>Eh(e,{...t,element:"httpMessageBinding"}),Bm=(e,t={})=>Eh(e,{...t,element:"httpOperationBinding"}),Em=(e,t={})=>Eh(e,{...t,element:"httpServerBinding"}),Om=(e,t={})=>Eh(e,{...t,element:"ibmmqChannelBinding"}),jm=(e,t={})=>Eh(e,{...t,element:"ibmmqMessageBinding"}),km=(e,t={})=>Eh(e,{...t,element:"ibmmqOperationBinding"}),qm=(e,t={})=>Eh(e,{...t,element:"ibmmqServerBinding"}),Mm=(e,t={})=>Eh(e,{...t,element:"jmsChannelBinding"}),Cm=(e,t={})=>Eh(e,{...t,element:"jmsMessageBinding"}),$m=(e,t={})=>Eh(e,{...t,element:"jmsOperationBinding"}),Am=(e,t={})=>Eh(e,{...t,element:"jmsServerBinding"}),Pm=(e,t={})=>Eh(e,{...t,element:"kafkaChannelBinding"}),Fm=(e,t={})=>Eh(e,{...t,element:"kafkaMessageBinding"}),Im=(e,t={})=>Eh(e,{...t,element:"kafkaOperationBinding"}),Tm=(e,t={})=>Eh(e,{...t,element:"kafkaServerBinding"}),Dm=(e,t={})=>Eh(e,{...t,element:"mercureChannelBinding"}),Vm=(e,t={})=>Eh(e,{...t,element:"mercureMessageBinding"}),Nm=(e,t={})=>Eh(e,{...t,element:"mercureOperationBinding"}),Rm=(e,t={})=>Eh(e,{...t,element:"mercureServerBinding"}),_m=(e,t={})=>Eh(e,{...t,element:"mqttChannelBinding"}),Lm=(e,t={})=>Eh(e,{...t,element:"mqttMessageBinding"}),Jm=(e,t={})=>Eh(e,{...t,element:"mqttOperationBinding"}),Um=(e,t={})=>Eh(e,{...t,element:"mqttServerBinding"}),Hm=(e,t={})=>Eh(e,{...t,element:"mqtt5ChannelBinding"}),zm=(e,t={})=>Eh(e,{...t,element:"mqtt5MessageBinding"}),Gm=(e,t={})=>Eh(e,{...t,element:"mqtt5OperationBinding"}),Wm=(e,t={})=>Eh(e,{...t,element:"mqtt5ServerBinding"}),Km=(e,t={})=>Eh(e,{...t,element:"natsChannelBinding"}),Xm=(e,t={})=>Eh(e,{...t,element:"natsMessageBinding"}),Ym=(e,t={})=>Eh(e,{...t,element:"natsOperationBinding"}),Qm=(e,t={})=>Eh(e,{...t,element:"natsServerBinding"}),Zm=(e,t={})=>Eh(e,{...t,element:"pulsarChannelBinding"}),eg=(e,t={})=>Eh(e,{...t,element:"pulsarMessageBinding"}),tg=(e,t={})=>Eh(e,{...t,element:"pulsarOperationBinding"}),sg=(e,t={})=>Eh(e,{...t,element:"pulsarServerBinding"}),ng=(e,t={})=>Eh(e,{...t,element:"redisChannelBinding"}),ig=(e,t={})=>Eh(e,{...t,element:"redisMessageBinding"}),rg=(e,t={})=>Eh(e,{...t,element:"redisOperationBinding"}),og=(e,t={})=>Eh(e,{...t,element:"redisServerBinding"}),cg=(e,t={})=>Eh(e,{...t,element:"snsChannelBinding"}),ag=(e,t={})=>Eh(e,{...t,element:"snsMessageBinding"}),lg=(e,t={})=>Eh(e,{...t,element:"snsOperationBinding"}),ug=(e,t={})=>Eh(e,{...t,element:"snsServerBinding"}),dg=(e,t={})=>Eh(e,{...t,element:"solaceChannelBinding"}),pg=(e,t={})=>Eh(e,{...t,element:"solaceMessageBinding"}),hg=(e,t={})=>Eh(e,{...t,element:"solaceOperationBinding"}),mg=(e,t={})=>Eh(e,{...t,element:"solaceServerBinding"}),gg=(e,t={})=>Eh(e,{...t,element:"sqsChannelBinding"}),fg=(e,t={})=>Eh(e,{...t,element:"sqsMessageBinding"}),yg=(e,t={})=>Eh(e,{...t,element:"sqsOperationBinding"}),bg=(e,t={})=>Eh(e,{...t,element:"sqsServerBinding"}),vg=(e,t={})=>Eh(e,{...t,element:"stompChannelBinding"}),xg=(e,t={})=>Eh(e,{...t,element:"stompMessageBinding"}),Sg=(e,t={})=>Eh(e,{...t,element:"stompOperationBinding"}),wg=(e,t={})=>Eh(e,{...t,element:"stompServerBinding"}),Bg=(e,t={})=>Eh(e,{...t,element:"webSocketChannelBinding"}),Eg=(e,t={})=>Eh(e,{...t,element:"webSocketMessageBinding"}),Og=(e,t={})=>Eh(e,{...t,element:"webSocketOperationBinding"}),jg=(e,t={})=>Eh(e,{...t,element:"webSocketServerBinding"}),kg=Eh;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.apidomNsAsyncApi2=t():e.apidomNsAsyncApi2=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:()=>Bl,Amqp1ChannelBindingElement:()=>Mo,Amqp1MessageBindingElement:()=>Co,Amqp1OperationBindingElement:()=>$o,Amqp1ServerBindingElement:()=>Ao,AmqpChannelBindingElement:()=>Oo,AmqpMessageBindingElement:()=>jo,AmqpOperationBindingElement:()=>ko,AmqpServerBindingElement:()=>qo,AnypointmqChannelBindingElement:()=>Po,AnypointmqMessageBindingElement:()=>Fo,AnypointmqOperationBindingElement:()=>Io,AnypointmqServerBindingElement:()=>To,AsyncAPIMediaTypes:()=>g,AsyncApi2Element:()=>X,AsyncApiVersionElement:()=>Q,BaseAlternatingVisitor:()=>Il,BaseFixedFieldsVisitor:()=>$l,BaseMapVisitor:()=>Pl,BaseMixedFieldsVisitor:()=>Fl,BasePatternedFieldsVisitor:()=>Al,BaseSpecificationVisitor:()=>Cl,ChannelBindingsElement:()=>Z,ChannelItemElement:()=>ee,ChannelsElement:()=>te,ComponentsElement:()=>se,ContactElement:()=>ne,CorrelationIDElement:()=>ie,DefaultContentTypeElement:()=>re,ExternalDocumentationElement:()=>oe,FallbackVisitor:()=>Sl,FixedFieldsVisitor:()=>El,GooglepubsubChannelBindingElement:()=>Do,GooglepubsubMessageBindingElement:()=>Vo,GooglepubsubOperationBindingElement:()=>No,GooglepubsubServerBindingElement:()=>Ro,HttpChannelBindingElement:()=>_o,HttpMessageBindingElement:()=>Lo,HttpOperationBindingElement:()=>Jo,HttpServerBindingElement:()=>Uo,IbmmqChannelBindingElement:()=>Ho,IbmmqMessageBindingElement:()=>zo,IbmmqOperationBindingElement:()=>Go,IbmmqServerBindingElement:()=>Wo,IdentifierElement:()=>ce,InfoElement:()=>ae,JmsChannelBindingElement:()=>Ko,JmsMessageBindingElement:()=>Xo,JmsOperationBindingElement:()=>Yo,JmsServerBindingElement:()=>Qo,KafkaChannelBindingElement:()=>Zo,KafkaMessageBindingElement:()=>ec,KafkaOperationBindingElement:()=>tc,KafkaServerBindingElement:()=>sc,LicenseElement:()=>le,MapVisitor:()=>jl,MercureChannelBindingElement:()=>nc,MercureMessageBindingElement:()=>ic,MercureOperationBindingElement:()=>rc,MercureServerBindingElement:()=>oc,MessageBindingsElement:()=>de,MessageElement:()=>ue,MessageExampleElement:()=>pe,MessageTraitElement:()=>he,MixedFieldsVisitor:()=>Tl,Mqtt5ChannelBindingElement:()=>dc,Mqtt5MessageBindingElement:()=>pc,Mqtt5OperationBindingElement:()=>hc,Mqtt5ServerBindingElement:()=>mc,MqttChannelBindingElement:()=>cc,MqttMessageBindingElement:()=>ac,MqttOperationBindingElement:()=>lc,MqttServerBindingElement:()=>uc,NatsChannelBindingElement:()=>gc,NatsMessageBindingElement:()=>fc,NatsOperationBindingElement:()=>yc,NatsServerBindingElement:()=>bc,OAuthFlowElement:()=>me,OAuthFlowsElement:()=>ge,OperationBindingsElement:()=>ye,OperationElement:()=>fe,OperationTraitElement:()=>be,ParameterElement:()=>ve,ParametersElement:()=>xe,PatternedFieldsVisitor:()=>Ol,PulsarChannelBindingElement:()=>vc,PulsarMessageBindingElement:()=>xc,PulsarOperationBindingElement:()=>Sc,PulsarServerBindingElement:()=>wc,RedisChannelBindingElement:()=>Bc,RedisMessageBindingElement:()=>Ec,RedisOperationBindingElement:()=>Oc,RedisServerBindingElement:()=>jc,ReferenceElement:()=>Se,SchemaElement:()=>fo,SecurityRequirementElement:()=>yo,SecuritySchemeElement:()=>bo,ServerBindingsElement:()=>xo,ServerElement:()=>vo,ServerVariableElement:()=>wo,ServersElement:()=>So,SnsChannelBindingElement:()=>kc,SnsMessageBindingElement:()=>qc,SnsOperationBindingElement:()=>Mc,SnsServerBindingElement:()=>Cc,SolaceChannelBindingElement:()=>$c,SolaceMessageBindingElement:()=>Ac,SolaceOperationBindingElement:()=>Pc,SolaceServerBindingElement:()=>Fc,SpecificationExtensionVisitor:()=>Dl,SpecificationVisitor:()=>wl,SqsChannelBindingElement:()=>Ic,SqsMessageBindingElement:()=>Tc,SqsOperationBindingElement:()=>Dc,SqsServerBindingElement:()=>Vc,StompChannelBindingElement:()=>Nc,StompMessageBindingElement:()=>Rc,StompOperationBindingElement:()=>_c,StompServerBindingElement:()=>Lc,TagElement:()=>Bo,TagsElement:()=>Eo,Visitor:()=>xl,WebSocketChannelBindingElement:()=>Jc,WebSocketMessageBindingElement:()=>Uc,WebSocketOperationBindingElement:()=>Hc,WebSocketServerBindingElement:()=>zc,default:()=>Gc,isAsyncApi2Element:()=>Wa,isAsyncApiExtension:()=>vl,isAsyncApiVersionElement:()=>Ka,isBooleanJSONSchemaElement:()=>Ga,isChannelBindingsElement:()=>Xa,isChannelItemElement:()=>Ya,isChannelsElement:()=>Qa,isComponentsElement:()=>Za,isContactElement:()=>el,isIdentifierElement:()=>tl,isInfoElement:()=>sl,isLicenseElement:()=>nl,isOperationElement:()=>il,isParameterElement:()=>rl,isParametersElement:()=>ol,isReferenceElement:()=>cl,isReferenceLikeElement:()=>bl,isSchemaElement:()=>al,isSecurityRequirementElement:()=>ll,isServerBindingsElement:()=>dl,isServerElement:()=>ul,isServerVariableElement:()=>hl,isServersElement:()=>pl,mediaTypes:()=>f,refract:()=>kg,refractAmqp1ChannelBinding:()=>lm,refractAmqp1MessageBinding:()=>um,refractAmqp1OperationBinding:()=>dm,refractAmqp1ServerBinding:()=>pm,refractAmqpChannelBinding:()=>rm,refractAmqpMessageBinding:()=>om,refractAmqpOperationBinding:()=>cm,refractAmqpServerBinding:()=>am,refractAnypointmqChannelBinding:()=>hm,refractAnypointmqMessageBinding:()=>mm,refractAnypointmqOperationBinding:()=>gm,refractAnypointmqServerBinding:()=>fm,refractAsyncApi2:()=>Oh,refractAsyncApiVersion:()=>jh,refractChannelBindings:()=>Ph,refractChannelItem:()=>Fh,refractChannels:()=>Mh,refractComponents:()=>Ih,refractContact:()=>Th,refractCorrelationID:()=>Dh,refractDefaultContentType:()=>qh,refractExternalDocumentation:()=>Vh,refractGooglepubsubChannelBinding:()=>ym,refractGooglepubsubMessageBinding:()=>bm,refractGooglepubsubOperationBinding:()=>vm,refractGooglepubsubServerBinding:()=>xm,refractHttpChannelBinding:()=>Sm,refractHttpMessageBinding:()=>wm,refractHttpOperationBinding:()=>Bm,refractHttpServerBinding:()=>Em,refractIbmmqChannelBinding:()=>Om,refractIbmmqMessageBinding:()=>jm,refractIbmmqOperationBinding:()=>km,refractIbmmqServerBinding:()=>qm,refractIdentifier:()=>kh,refractInfo:()=>Nh,refractJmsChannelBinding:()=>Mm,refractJmsMessageBinding:()=>Cm,refractJmsOperationBinding:()=>$m,refractJmsServerBinding:()=>Am,refractKafkaChannelBinding:()=>Pm,refractKafkaMessageBinding:()=>Fm,refractKafkaOperationBinding:()=>Im,refractKafkaServerBinding:()=>Tm,refractLicense:()=>Rh,refractMercureChannelBinding:()=>Dm,refractMercureMessageBinding:()=>Vm,refractMercureOperationBinding:()=>Nm,refractMercureServerBinding:()=>Rm,refractMessage:()=>_h,refractMessageBindings:()=>Lh,refractMessageExample:()=>Jh,refractMessageTrait:()=>Uh,refractMqtt5ChannelBinding:()=>Hm,refractMqtt5MessageBinding:()=>zm,refractMqtt5OperationBinding:()=>Gm,refractMqtt5ServerBinding:()=>Wm,refractMqttChannelBinding:()=>_m,refractMqttMessageBinding:()=>Lm,refractMqttOperationBinding:()=>Jm,refractMqttServerBinding:()=>Um,refractNatsChannelBinding:()=>Km,refractNatsMessageBinding:()=>Xm,refractNatsOperationBinding:()=>Ym,refractNatsServerBinding:()=>Qm,refractOAuthFlow:()=>Hh,refractOAuthFlows:()=>zh,refractOperation:()=>Gh,refractOperationBindings:()=>Wh,refractOperationTrait:()=>Kh,refractParameter:()=>Xh,refractParameters:()=>$h,refractPulsarChannelBinding:()=>Zm,refractPulsarMessageBinding:()=>eg,refractPulsarOperationBinding:()=>tg,refractPulsarServerBinding:()=>sg,refractRedisChannelBinding:()=>ng,refractRedisMessageBinding:()=>ig,refractRedisOperationBinding:()=>rg,refractRedisServerBinding:()=>og,refractReference:()=>Yh,refractSchema:()=>Qh,refractSecurityRequirement:()=>Zh,refractSecurityScheme:()=>em,refractServer:()=>tm,refractServerBindings:()=>sm,refractServerVariable:()=>nm,refractServers:()=>Ch,refractSnsChannelBinding:()=>cg,refractSnsMessageBinding:()=>ag,refractSnsOperationBinding:()=>lg,refractSnsServerBinding:()=>ug,refractSolaceChannelBinding:()=>dg,refractSolaceMessageBinding:()=>pg,refractSolaceOperationBinding:()=>hg,refractSolaceServerBinding:()=>mg,refractSqsChannelBinding:()=>gg,refractSqsMessageBinding:()=>fg,refractSqsOperationBinding:()=>yg,refractSqsServerBinding:()=>bg,refractStompChannelBinding:()=>vg,refractStompMessageBinding:()=>xg,refractStompOperationBinding:()=>Sg,refractStompServerBinding:()=>wg,refractTag:()=>im,refractTags:()=>Ah,refractWebSocketChannelBinding:()=>Bg,refractWebSocketMessageBinding:()=>Eg,refractWebSocketOperationBinding:()=>Og,refractWebSocketServerBinding:()=>jg,refractorPluginReplaceEmptyElement:()=>za});var s={};e.r(s),e.d(s,{isAsyncApi2Element:()=>Wa,isAsyncApiVersionElement:()=>Ka,isBooleanJSONSchemaElement:()=>Ga,isChannelBindingsElement:()=>Xa,isChannelItemElement:()=>Ya,isChannelsElement:()=>Qa,isComponentsElement:()=>Za,isContactElement:()=>el,isIdentifierElement:()=>tl,isInfoElement:()=>sl,isLicenseElement:()=>nl,isOperationElement:()=>il,isParameterElement:()=>rl,isParametersElement:()=>ol,isReferenceElement:()=>cl,isSchemaElement:()=>al,isSecurityRequirementElement:()=>ll,isServerBindingsElement:()=>dl,isServerElement:()=>ul,isServerVariableElement:()=>hl,isServersElement:()=>pl});var n={};function i(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function r(e){return function t(s){return 0===arguments.length||i(s)?t:e.apply(this,arguments)}}function o(e,t){return t[e<0?t.length+e:e]}e.r(n),e.d(n,{isAsyncApiExtension:()=>vl,isReferenceLikeElement:()=>bl});const c=r(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 d=u;const p=class extends d{};const h=class extends p{};const m=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new h("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new h("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new h("latest method in MediaTypes class is not yet implemented.")}};class g extends m{filterByFormat(e="generic"){const t="generic"===e?"asyncapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="2.6.0",t="generic"){const s="generic"===t?`vnd.aai.asyncapi;version=${e}`:`vnd.aai.asyncapi+${t};version=${e}`;return this.find(e=>e.includes(s))||this.unknownMediaType}latest(e="generic"){return c(this.filterByFormat(e))}}const f=new g("application/vnd.aai.asyncapi;version=2.0.0","application/vnd.aai.asyncapi+json;version=2.0.0","application/vnd.aai.asyncapi+yaml;version=2.0.0","application/vnd.aai.asyncapi;version=2.1.0","application/vnd.aai.asyncapi+json;version=2.1.0","application/vnd.aai.asyncapi+yaml;version=2.1.0","application/vnd.aai.asyncapi;version=2.2.0","application/vnd.aai.asyncapi+json;version=2.2.0","application/vnd.aai.asyncapi+yaml;version=2.2.0","application/vnd.aai.asyncapi;version=2.3.0","application/vnd.aai.asyncapi+json;version=2.3.0","application/vnd.aai.asyncapi+yaml;version=2.3.0","application/vnd.aai.asyncapi;version=2.4.0","application/vnd.aai.asyncapi+json;version=2.4.0","application/vnd.aai.asyncapi+yaml;version=2.4.0","application/vnd.aai.asyncapi;version=2.5.0","application/vnd.aai.asyncapi+json;version=2.5.0","application/vnd.aai.asyncapi+yaml;version=2.5.0","application/vnd.aai.asyncapi;version=2.6.0","application/vnd.aai.asyncapi+json;version=2.6.0","application/vnd.aai.asyncapi+yaml;version=2.6.0");function y(e){return function t(s,n){switch(arguments.length){case 0:return t;case 1:return i(s)?t:r(function(t){return e(s,t)});default:return i(s)&&i(n)?t:i(s)?r(function(t){return e(t,n)}):i(n)?r(function(t){return e(s,t)}):e(s,n)}}}function b(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function v(e,t,s){for(var n=0,i=s.length;n<i;){if(e(t,s[n]))return!0;n+=1}return!1}function x(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const S="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var w=Object.prototype.toString;const B=function(){return"[object Arguments]"===w.call(arguments)?function(e){return"[object Arguments]"===w.call(e)}:function(e){return x("callee",e)}}();var E=!{toString:null}.propertyIsEnumerable("toString"),O=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=function(){return arguments.propertyIsEnumerable("length")}(),k=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},q="function"!=typeof Object.keys||j?r(function(e){if(Object(e)!==e)return[];var t,s,n=[],i=j&&B(e);for(t in e)!x(t,e)||i&&"length"===t||(n[n.length]=t);if(E)for(s=O.length-1;s>=0;)x(t=O[s],e)&&!k(n,t)&&(n[n.length]=t),s-=1;return n}):r(function(e){return Object(e)!==e?[]:Object.keys(e)});const M=q;const C=r(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function $(e,t,s,n){var i=b(e);function r(e,t){return A(e,t,s.slice(),n.slice())}return!v(function(e,t){return!v(r,t,e)},b(t),i)}function A(e,t,s,n){if(S(e,t))return!0;var i=C(e);if(i!==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(i){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||!S(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!S(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 r=s.length-1;r>=0;){if(s[r]===e)return n[r]===t;r-=1}switch(i){case"Map":return e.size===t.size&&$(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&$(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=M(e);if(o.length!==M(t).length)return!1;var c=s.concat([e]),a=n.concat([t]);for(r=o.length-1;r>=0;){var l=o[r];if(!x(l,t)||!A(t[l],e[l],c,a))return!1;r-=1}return!0}const P=y(function(e,t){return A(e,t,[],[])});function F(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function I(e,t,s){if(s||(s=new T),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n=function(n){var i=s.get(e);if(i)return i;for(var r in s.set(e,n),e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=t?I(e[r],!0,s):e[r]);return n};switch(C(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return F(e);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 T=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((r=s[n])[0]===e)return r[1]}else{var i=this.hash(e);if(s=this.map[i])for(n=0;n<s.length;n+=1){var r;if((r=s[n])[0]===e)return r[1]}}},e}();const D=r(function(e){return null!=e&&"function"==typeof e.clone?e.clone():I(e,!0)});class V{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 V;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 V;for(const[t,s]of Object.entries(this))s instanceof this.Element?e.set(t,this.cloneDeepElement(s)):e.set(t,D(s));return e}}const N=V;const R=class{key;value;constructor(e,t){this.key=e,this.value=t}toValue(){return{key:this.key?.toValue(),value:this.value?.toValue()}}};class _{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,i=s.key;if(void 0===n||void 0===i)throw new Error("MemberElement must have both key and value");return void 0!==t?e.call(t,n,i,s):e(n,i,s)})}filter(e,t){const s=this.elements.filter(s=>{const n=s.value,i=s.key;return void 0!==n&&void 0!==i&&(void 0!==t?e.call(t,n,i,s):e(n,i,s))});return new _(s)}reject(e,t){const s=[];for(const n of this.elements){const i=n.value,r=n.key;void 0!==i&&void 0!==r&&(e.call(t,i,r,n)||s.push(n))}return new _(s)}forEach(e,t){this.elements.forEach((s,n)=>{const i=s.value,r=s.key;void 0!==i&&void 0!==r&&(void 0!==t?e.call(t,i,r,s,n):e(i,r,s,n))})}find(e,t){return this.elements.find(s=>{const n=s.value,i=s.key;return void 0!==n&&void 0!==i&&(void 0!==t?e.call(t,n,i,s):e(n,i,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=_,J=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 R)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 J;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 R){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 R?e.toValue():Array.isArray(e)?e.map(e=>e.toValue()):e}equals(e){const t=e instanceof U?e.toValue():e;return P(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,i=void 0===s.results?[]:s.results;for(let t=0;t<this._content.length;t+=1){const s=this._content[t],r=s;n&&"function"==typeof r.findElements&&r.findElements(e,{results:i,recursive:n}),e(s,t,void 0)&&i.push(s)}return i}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 W=class extends H{constructor(e,t,s,n){super(new R,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 K=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 W(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,i,r)=>{const o=e.call(t,n,i,r);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],i=e(n,s.value,s.key,s,this);n=void 0===i?i:this.refract(i)}return n}empty(){return new this.constructor([])}};const X=class extends K{constructor(e,t,s){super(e,t,s),this.element="asyncApi2",this.classes.push("api")}get asyncapi(){return this.get("asyncapi")}set asyncapi(e){this.set("asyncapi",e)}get idField(){return this.get("id")}set idField(e){this.set("id",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 defaultContentType(){return this.get("defaultContentType")}set defaultContentType(e){this.set("defaultContentType",e)}get channels(){return this.get("channels")}set channels(e){this.set("channels",e)}get components(){return this.get("components")}set components(e){this.set("components",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 Y=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 Q=class extends Y{constructor(e,t,s){super(e,t,s),this.element="asyncApiVersion",this.classes.push("spec-version"),this.classes.push("version")}};const Z=class extends K{constructor(e,t,s){super(e,t,s),this.element="channelBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}};const ee=class extends K{constructor(e,t,s){super(e,t,s),this.element="channelItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get subscribe(){return this.get("subscribe")}set subscribe(e){this.set("subscribe",e)}get publish(){return this.get("publish")}set publish(e){this.set("publish",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}};const te=class extends K{constructor(e,t,s){super(e,t,s),this.element="channels"}};const se=class extends K{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 servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get serverVariables(){return this.get("serverVariables")}set serverVariables(e){this.set("serverVariables",e)}get messages(){return this.get("messages")}set messages(e){this.set("messages",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get correlationIds(){return this.get("correlationIds")}set correlationIds(e){this.set("correlationIds",e)}get operationTraits(){return this.get("operationTraits")}set operationTraits(e){this.set("operationTraits",e)}get messageTraits(){return this.get("messageTraits")}set messageTraits(e){this.set("messageTraits",e)}get serverBindings(){return this.get("serverBindings")}set serverBindings(e){this.set("serverBindings",e)}get channelBindings(){return this.get("channelBindings")}set channelBindings(e){this.set("channelBindings",e)}get operationBindings(){return this.get("operationBindings")}set operationBindings(e){this.set("operationBindings",e)}get messageBindings(){return this.get("messageBindings")}set messageBindings(e){this.set("messageBindings",e)}};const ne=class extends K{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 ie=class extends K{constructor(e,t,s){super(e,t,s),this.element="correlationID"}get description(){return this.get("description")}set description(e){this.set("description",e)}get location(){return this.get("location")}set location(e){this.set("location",e)}};const re=class extends Y{constructor(e,t,s){super(e,t,s),this.element="defaultContentType"}};const oe=class extends K{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 ce=class extends Y{constructor(e,t,s){super(e,t,s),this.element="identifier"}};const ae=class extends K{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 version(){return this.get("version")}set version(e){this.set("version",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}};const le=class extends K{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 ue=class extends K{constructor(e,t,s){super(e,t,s),this.element="message"}get messageId(){return this.get("messageId")}set messageId(e){this.set("messageId",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get payload(){return this.get("payload")}set payload(e){this.set("payload",e)}get correlationId(){return this.get("correlationId")}set correlationId(e){this.set("correlationId",e)}get schemaFormat(){return this.get("schemaFormat")}set schemaFormat(e){this.set("schemaFormat",e)}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get title(){return this.get("title")}set title(e){this.set("title",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 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)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get traits(){return this.get("traits")}set traits(e){this.set("traits",e)}};const de=class extends K{constructor(e,t,s){super(e,t,s),this.element="messageBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}};const pe=class extends K{constructor(e,t,s){super(e,t,s),this.element="messageExample"}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get payload(){return this.get("payload")}set payload(e){this.set("payload",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};const he=class extends K{constructor(e,t,s){super(e,t,s),this.element="messageTrait"}get messageId(){return this.get("messageId")}set messageId(e){this.set("messageId",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get correlationId(){return this.get("correlationId")}set correlationId(e){this.set("correlationId",e)}get schemaFormat(){return this.get("schemaFormat")}set schemaFormat(e){this.set("schemaFormat",e)}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get title(){return this.get("title")}set title(e){this.set("title",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 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)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const me=class extends K{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 ge=class extends K{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 fe=class extends K{constructor(e,t,s){super(e,t,s),this.element="operation"}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",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 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)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get traits(){return this.get("traits")}set traits(e){this.set("traits",e)}get message(){return this.get("message")}set message(e){this.set("message",e)}};const ye=class extends K{constructor(e,t,s){super(e,t,s),this.element="operationBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}};const be=class extends K{constructor(e,t,s){super(e,t,s),this.element="operationTrait"}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",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 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)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}};const ve=class extends K{constructor(e,t,s){super(e,t,s),this.element="parameter"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get location(){return this.get("location")}set location(e){this.set("location",e)}};const xe=class extends K{constructor(e,t,s){super(e,t,s),this.element="parameters"}};const Se=class extends K{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("json-reference"),this.classes.push("asyncapi-reference")}set $ref(e){this.set("$ref",e)}get $ref(){return this.get("$ref")}};function we(e,t,s){for(var n=0,i=s.length;n<i;)t=e(t,s[n]),n+=1;return t}var Be=y(function(e,t){return we(function(s,n){return s[n]=e(t[n],n,t),s},{},M(t))});const Ee=Be;const Oe=r(function(e){return null==e});var je=y(function(e,t){if(0===e.length||Oe(t))return!1;for(var s=t,n=0;n<e.length;){if(Oe(s)||!x(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const ke=je;var qe=y(function(e,t){return ke([e],t)});const Me=qe;function Ce(e){return function t(s,n,o){switch(arguments.length){case 0:return t;case 1:return i(s)?t:y(function(t,n){return e(s,t,n)});case 2:return i(s)&&i(n)?t:i(s)?y(function(t,s){return e(t,n,s)}):i(n)?y(function(t,n){return e(s,t,n)}):r(function(t){return e(s,n,t)});default:return i(s)&&i(n)&&i(o)?t:i(s)&&i(n)?y(function(t,s){return e(t,s,o)}):i(s)&&i(o)?y(function(t,s){return e(t,n,s)}):i(n)&&i(o)?y(function(t,n){return e(s,t,n)}):i(s)?r(function(t){return e(t,n,o)}):i(n)?r(function(t){return e(s,t,o)}):i(o)?r(function(t){return e(s,n,t)}):e(s,n,o)}}}const $e=Number.isInteger||function(e){return(e|0)===e};const Ae=function(e,t){if(null!=t)return $e(e)?o(e,t):t[e]};const Pe=y(Ae);const Fe=Ce(function(e,t,s){return e(Pe(t,s))});function Ie(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var i=e[n];s=$e(i)?o(i,s):s[i]}return s}const Te=y(Ie);function De(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,i){return t.apply(this,arguments)};case 5:return function(e,s,n,i,r){return t.apply(this,arguments)};case 6:return function(e,s,n,i,r,o){return t.apply(this,arguments)};case 7:return function(e,s,n,i,r,o,c){return t.apply(this,arguments)};case 8:return function(e,s,n,i,r,o,c,a){return t.apply(this,arguments)};case 9:return function(e,s,n,i,r,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,s,n,i,r,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 Ve(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Ne=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Re(e){return"[object String]"===Object.prototype.toString.call(e)}const _e=r(function(e){return!!Ne(e)||!!e&&("object"==typeof e&&(!Re(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Le="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Je(e,t,s){return function(n,i,r){if(_e(r))return e(n,i,r);if(null==r)return i;if("function"==typeof r["fantasy-land/reduce"])return t(n,i,r,"fantasy-land/reduce");if(null!=r[Le])return s(n,i,r[Le]());if("function"==typeof r.next)return s(n,i,r);if("function"==typeof r.reduce)return t(n,i,r,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ue(e,t,s){for(var n=0,i=s.length;n<i;){if((t=e["@@transducer/step"](t,s[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var He=y(function(e,t){return De(e.length,function(){return e.apply(t,arguments)})});const ze=He;function Ge(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 We(e,t,s,n){return e["@@transducer/result"](s[n](ze(e["@@transducer/step"],e),t))}const Ke=Je(Ue,We,Ge);var Xe=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 Ye=Ce(function(e,t,s){return Ke("function"==typeof e?new Xe(e):e,t,s)});function Qe(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return Ne(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const Ze=Ce(Qe("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const et=r(Qe("tail",Ze(1,1/0)));function tt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return De(arguments[0].length,Ye(Ve,arguments[0],et(arguments)))}var st=function(e,t){switch(arguments.length){case 0:return st;case 1:return function t(s){return 0===arguments.length?t:S(e,s)};default:return S(e,t)}};const nt=st;function it(e,t){return function(e,t,s){var n,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;s<e.length;){if(0===(i=e[s])&&1/i===n)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(i=e[s])&&i!=i)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(P(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function rt(e,t){for(var s=0,n=t.length,i=Array(n);s<n;)i[s]=e(t[s]),s+=1;return i}function ot(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 ct=function(e){return(e<10?"0":"")+e};const at="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ct(e.getUTCMonth()+1)+"-"+ct(e.getUTCDate())+"T"+ct(e.getUTCHours())+":"+ct(e.getUTCMinutes())+":"+ct(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function lt(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!Ne(n)){for(var i=0;i<e.length;){if("function"==typeof n[e[i]])return n[e[i]].apply(n,Array.prototype.slice.call(arguments,0,-1));i+=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 ut(e){return"[object Object]"===Object.prototype.toString.call(e)}const dt=function(){return this.xf["@@transducer/init"]()},pt=function(e){return this.xf["@@transducer/result"](e)};var ht=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=dt,e.prototype["@@transducer/result"]=pt,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function mt(e){return function(t){return new ht(e,t)}}var gt=y(lt(["fantasy-land/filter","filter"],mt,function(e,t){return ut(t)?we(function(s,n){return e(t[n])&&(s[n]=t[n]),s},{},M(t)):(s=t,"[object Map]"===Object.prototype.toString.call(s)?function(e,t){for(var s=new Map,n=t.entries(),i=n.next();!i.done;)e(i.value[1])&&s.set(i.value[0],i.value[1]),i=n.next();return s}(e,t):function(e,t){for(var s=0,n=t.length,i=[];s<n;)e(t[s])&&(i[i.length]=t[s]),s+=1;return i}(e,t));var s}));const ft=gt;const yt=y(function(e,t){return ft((s=e,function(){return!s.apply(this,arguments)}),t);var s});function bt(e,t){var s=function(s){var n=t.concat([e]);return it(s,n)?"<Circular>":bt(s,n)},n=function(e,t){return rt(function(t){return ot(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+rt(s,e).join(", ")+"))";case"[object Array]":return"["+rt(s,e).concat(n(e,yt(function(e){return/^\d+$/.test(e)},M(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):ot(at(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())+")":ot(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+n(e,M(e)).join(", ")+"}"}}const vt=r(function(e){return bt(e,[])});const xt=Ce(function(e,t,s){return e(Ie(t,s))});function St(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const wt=y(function(e,t){return e&&t});function Bt(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function Et(e,t,s,n){return s[n](e,t)}const Ot=Je(we,Et,Bt);var jt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=dt,e.prototype["@@transducer/result"]=pt,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const kt=function(e){return function(t){return new jt(e,t)}};function qt(e,t,s){return function(){for(var n=[],r=0,o=e,c=0,a=!1;c<t.length||r<arguments.length;){var l;c<t.length&&(!i(t[c])||r>=arguments.length)?l=t[c]:(l=arguments[r],r+=1),n[c]=l,i(l)?a=!0:o-=1,c+=1}return!a&&o<=0?s.apply(this,n):De(Math.max(0,o),qt(e,n,s))}}var Mt=y(function(e,t){return 1===e?r(t):De(e,qt(e,[],t))});const Ct=Mt;var $t=y(lt(["fantasy-land/map","map"],kt,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Ct(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return we(function(s,n){return s[n]=e(t[n]),s},{},M(t));default:return rt(e,t)}}));const At=$t;const Pt=y(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))}:Ot(function(e,s){return function(e,t){var s;t=t||[];var n=(e=e||[]).length,i=t.length,r=[];for(s=0;s<n;)r[r.length]=e[s],s+=1;for(s=0;s<i;)r[r.length]=t[s],s+=1;return r}(e,At(s,t))},[],e)});var Ft=y(function(e,t){var s=Ct(e,t);return Ct(e,function(){return we(Pt,At(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const It=Ft;var Tt=r(function(e){return It(e.length,e)});const Dt=Tt;const Vt=y(function(e,t){return St(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Dt(wt)(e,t)});const Nt=P(null);const Rt=Dt(r(function(e){return!e}));const _t=Rt(Nt);function Lt(e){return Lt="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},Lt(e)}const Jt=function(e){return"object"===Lt(e)};const Ut=Ct(1,Vt(_t,Jt));const Ht=y(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 i=s(typeof e,typeof t);if(void 0!==i)return i===typeof e?e:t;var r=vt(e),o=s(r,vt(t));return void 0!==o&&o===r?e:t});const zt=y(function(e,t){return At(Pe(e),t)});const Gt=r(function(e){return Ct(Ye(Ht,0,zt("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 Wt=Ct(1,tt(C,nt("GeneratorFunction")));const Kt=Ct(1,tt(C,nt("AsyncFunction")));const Xt=Gt([tt(C,nt("Function")),Wt,Kt]);var Yt=tt(C,nt("Object")),Qt=tt(vt,P(vt(Object))),Zt=xt(Vt(Xt,Qt),["constructor"]);const es=Ct(1,function(e){if(!Ut(e)||!Yt(e))return!1;var t=Object.getPrototypeOf(e);return!!Nt(t)||Zt(t)});const ts=Ct(1,tt(C,nt("String")));var ss=r(function(e){return Ct(e.length,e)});const ns=ss;const is=y(function(e,t){return Ct(e+1,function(){var s=arguments[e];if(null!=s&&St(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(vt(s)+' does not have a method named "'+t+'"')})});const rs=is(1,"split");var os=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=dt,e.prototype["@@transducer/result"]=pt,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 cs(e){return function(t){return new os(e,t)}}const as=y(lt(["dropWhile"],cs,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return Ze(s,1/0,t)}));const ls=is(1,"join");var us=r(function(e){return Ct(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 ds=us(y(it));const ps=ns(function(e,t){return tt(rs(""),as(ds(e)),ls(""))(t)}),hs=new WeakMap,ms=e=>{if(hs.has(e))return hs.get(e);const t={},s=(e,n,i)=>("string"==typeof e.element&&(t[e.element]=e.$visitor?[...i,"$visitor"]:i),Ee((e,t)=>{const r=[...i,t];if(es(e)&&Me("$ref",e)&&Fe(ts,"$ref",e)){const t=Te(["$ref"],e),s=ps("#/",t),i=Te(s.split("/"),n),{$ref:r,...o}=e;return Object.keys(o).length>0&&es(i)?{...i,...o}:i}return es(e)?s(e,n,r):e},e)),n=s(e,e,[]);return n.elementMap=t,hs.set(e,n),n};const gs=class extends K{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 fs=class extends K{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 ys=class extends K{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 bs=class extends K{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)}};const vs=class extends H{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}};const xs=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 Ss=class extends H{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}};const ws=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 i=e.call(t,n);i&&s.push(i)}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([])}},Bs=e=>e instanceof H,Es=e=>e instanceof Y,Os=e=>e instanceof vs,js=e=>e instanceof xs,ks=e=>e instanceof Ss,qs=e=>e instanceof ws,Ms=e=>e instanceof K,Cs=e=>e instanceof W,$s=e=>void 0!==e.style,As=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,Ps=(e,t)=>0===t.length||!!Bs(e)&&(!e.isMetaEmpty&&(!!e.hasMetaProperty("classes")&&t.every(t=>e.classes.includes(t))));class Fs extends Y{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:i,endCharacter:r,endOffset:o}=e;if("number"!=typeof t||"number"!=typeof s||"number"!=typeof n||"number"!=typeof i||"number"!=typeof r||"number"!=typeof o)return;const c="sm1:"+[t,s,n,i,r,o].map(Ts).join("");const a=new Fs(c);return a.startLine=t,a.startCharacter=s,a.startOffset=n,a.endLine=i,a.endCharacter=r,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=Ds(t,n);s.push(e.value),n=e.next}return s}(this.content))}}const Is="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ts(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 Ds(e,t=0){let s=0,n=0,i=t;for(;;){const t=e[i++],r=Is.indexOf(t);if(-1===r)throw new Error(`Invalid Base64 VLQ char: ${t}`);if(s|=(31&r)<<n,n+=5,!!!(32&r))break}return{value:s>>>0,next:i}}const Vs=Fs;const Ns=class extends d{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 Ns{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const _s=class extends Rs{};const Ls=class extends Rs{},Js=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const i=Gs(e);s.set(e,i);const{content:r}=e;return Array.isArray(r)?i.content=r.map(e=>Js(e,n)):Bs(r)?i.content=Js(r,n):i.content=r instanceof R?Us(r,n):r,i},Us=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const{key:i,value:r}=e,o=void 0!==i?Js(i,n):void 0,c=void 0!==r?Js(r,n):void 0,a=new R(o,c);return s.set(e,a),a},Hs=(e,t={})=>{if(e instanceof R)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 i=[...e].map(e=>Js(e,n)),r=new L(i);return s.set(e,r),r})(e,t);if(Bs(e))return Js(e,t);throw new _s("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 R(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)),As(e)&&Vs.transfer(e,t),$s(e)&&(t.style=D(e.style));const{content:s}=e;return Bs(s)?t.content=Gs(s):Array.isArray(s)?t.content=[...s]:t.content=s instanceof R?zs(s):s,t},Ws=e=>{if(e instanceof R)return zs(e);if(e instanceof L)return(e=>{const t=[...e];return new L(t)})(e);if(Bs(e))return Gs(e);throw new Ls("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ws.safe=e=>{try{return Ws(e)}catch{return e}};const Ks=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 Xs=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 Ys=class extends Y{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 Qs=class extends Y{constructor(e,t,s){super(e,t,s),this.element="comment"}};const Zs=class extends ws{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.filter(e=>Ps(e,["api"])).first}get results(){return this.filter(e=>Ps(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&&Ps(e,["warning"]))}get errors(){return this.filter(e=>"annotation"===e.element&&Ps(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)}},en=e=>e instanceof Ks,tn=e=>e instanceof Xs,sn=e=>{if(!Bs(e))return e;if(Es(e)||Os(e)||ks(e)||js(e))return e.toValue();const t=new WeakMap,s=e=>{if(!Bs(e))return e;if(Ms(e)){if(t.has(e))return t.get(e);const n={};return t.set(e,n),e.forEach((e,t)=>{const i=s(t),r=s(e);"string"==typeof i&&(n[i]=r)}),n}if(qs(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 tn(e)?String(e.toValue()):en(e)?Es(e.href)?e.href.toValue():"":e.toValue()};return s(e)},nn=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)},rn=(e,t)=>t.clone&&t.isMergeableElement(e)?cn(nn(e),e,t):e,on={clone:!0,isMergeableElement:e=>Ms(e)||qs(e),arrayElementMerge:(e,t,s)=>new(0,e.constructor)(e.concat(t).map(e=>rn(e,s))),objectElementMerge:(e,t,s)=>{const n=Ms(e)?nn(e):nn(t);return Ms(e)&&e.forEach((e,t,i)=>{const r=Ws(i);r.value=rn(e,s),n.content.push(r)}),t.forEach((t,i,r)=>{const o=sn(i);let c;if(Ms(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=Ws(r),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return cn;const s=t.customMerge(e,t);return"function"==typeof s?s:cn})(i,s)(n,t,s)}else c=Ws(r),c.value=rn(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},cn=(e,t,s)=>{const n={...on,...s};n.isMergeableElement=n.isMergeableElement??on.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??on.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??on.objectElementMerge;const i=qs(t);if(!(i===qs(e)))return rn(t,n);const r=i&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(e,t,n):n.objectElementMerge(e,t,n);return e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty?t.isMetaEmpty||(r.meta=t.meta.cloneDeep()):r.meta=e.meta.cloneDeep():r.meta=(e=>"function"!=typeof e.customMetaMerge?e=>e.cloneDeep():e.customMetaMerge)(n)(e.meta,t.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty?t.isAttributesEmpty||(r.attributes=Hs(t.attributes)):r.attributes=Hs(e.attributes):r.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Hs(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),r};cn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new K:e.reduce((e,s)=>cn(e,s,t),nn(e[0]))};const an=cn;class ln extends K{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 ln(e.style)}applyTo(e){e.style=this.toValue()}}const un=ln;const dn=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=an(t.attributes,e.attributes),Vs.transfer(e,t),un.transfer(e,t)}};const pn=class extends dn{enter(e){this.element=this.consume?e.node:Hs(e.node),e.stop()}};const hn=r(function(e){return function(){return e}});const mn=y(function(e,t){return null==t||t!=t?e:t});const gn=hn(void 0);const fn=P(gn());const yn=r(function(e){return Ct(Ye(Ht,0,zt("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 bn=r(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:Ne(e)?[]:Re(e)?"":ut(e)?{}:B(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 vn=bn;const xn=r(function(e){return null!=e&&P(e,vn(e))});const Sn=r(function(e){return!xn(e)});const wn=y(function(e,t){return e||t});const Bn=Ct(1,Vt(_t,y(function(e,t){return St(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Dt(wn)(e,t)})(Jt,Xt)));var En=Rt(Bn);const On=yn([ts,En,Sn]);const jn=y(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});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 qn 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 Mn=qn;const Cn=function(){const e=An,t=$n,s=this,n="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let i,r,o,c,a,l,u,d=0,p=0,h=0,m=0,g=0,f=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(y,b,x,S)=>{const w=`${n}parse(): `;d=0,p=0,h=0,m=0,g=0,i=void 0,r=void 0,o=void 0,c=void 0,f.refresh(),a=void 0,l=void 0,u=void 0,c=t.stringToChars(x),i=y.rules,r=y.udts;const B=b.toLowerCase();let E;for(const e in i)if(i.hasOwnProperty(e)&&B===i[e].lower){E=i[e].index;break}if(void 0===E)throw new Error(`${w}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(a=[],l=[],t=0;t<i.length;t+=1)a[t]=void 0;for(t=0;t<r.length;t+=1)l[t]=void 0;const c=[];for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(t=0;t<r.length;t+=1)c.push(r[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<i.length?a[t]=o:l[t-i.length]=o}})(),s.trace&&s.trace.init(i,r,c),s.stats&&s.stats.init(i,r),s.ast&&s.ast.init(i,r,c),u=S,o=[{type:e.RNM,index:E}],v(0,0),o=void 0;let O=!1;switch(f.state){case e.ACTIVE:throw new Error(`${w}final state should never be 'ACTIVE'`);case e.NOMATCH:O=!1;break;case e.EMPTY:case e.MATCH:O=f.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:O,state:f.state,stateName:e.idName(f.state),length:c.length,matched:f.phraseLength,maxMatched:g,maxTreeDepth:h,nodeHits:m}};const y=(t,s,i,r)=>{if(s.phraseLength>i){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${i}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!r)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}`)}},b=(t,a)=>{let p,h,m;const g=o[t],y=r[g.index];f.UdtIndex=y.index,d||(m=s.ast&&s.ast.udtDefined(g.index),m&&(h=i.length+g.index,p=s.ast.getLength(),s.ast.down(h,y.name)));const b=c.length-a;l[g.index](f,c,a,u),((t,s,i)=>{if(s.phraseLength>i){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${i}`,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}`)}})(y,f,b),d||m&&(f.state===e.NOMATCH?s.ast.setLength(p):s.ast.up(h,y.name,a,f.phraseLength))},v=(t,r)=>{const l=`${n}opExecute(): `,x=o[t];switch(m+=1,p>h&&(h=p),p+=1,f.refresh(),s.trace&&s.trace.down(x,r),x.type){case e.ALT:((t,s)=>{const n=o[t];for(let t=0;t<n.children.length&&(v(n.children[t],s),f.state===e.NOMATCH);t+=1);})(t,r);break;case e.CAT:((t,n)=>{let i,r,c,a;const l=o[t];s.ast&&(r=s.ast.getLength()),i=!0,c=n,a=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],c),f.state===e.NOMATCH){i=!1;break}c+=f.phraseLength,a+=f.phraseLength}i?(f.state=0===a?e.EMPTY:e.MATCH,f.phraseLength=a):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(r))})(t,r);break;case e.REP:((t,n)=>{let i,r,a,l;const u=o[t];if(0===u.max)return f.state=e.EMPTY,void(f.phraseLength=0);for(r=n,a=0,l=0,s.ast&&(i=s.ast.getLength());!(r>=c.length)&&(v(t+1,r),f.state!==e.NOMATCH)&&f.state!==e.EMPTY&&(l+=1,a+=f.phraseLength,r+=f.phraseLength,l!==u.max););f.state===e.EMPTY||l>=u.min?(f.state=0===a?e.EMPTY:e.MATCH,f.phraseLength=a):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,r);break;case e.RNM:((t,n)=>{let r,l,p;const h=o[t],m=i[h.index],g=a[m.index];if(d||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(r=s.ast.getLength(),s.ast.down(h.index,i[h.index].name))),g){const t=c.length-n;g(f,c,n,u),y(m,f,t,!0),f.state===e.ACTIVE&&(p=o,o=m.opcodes,v(0,n),o=p,g(f,c,n,u),y(m,f,t,!1))}else p=o,o=m.opcodes,v(0,n,f),o=p;d||l&&(f.state===e.NOMATCH?s.ast.setLength(r):s.ast.up(h.index,m.name,n,f.phraseLength))})(t,r);break;case e.TRG:((t,s)=>{const n=o[t];f.state=e.NOMATCH,s<c.length&&n.min<=c[s]&&c[s]<=n.max&&(f.state=e.MATCH,f.phraseLength=1)})(t,r);break;case e.TBS:((t,s)=>{const n=o[t],i=n.string.length;if(f.state=e.NOMATCH,s+i<=c.length){for(let e=0;e<i;e+=1)if(c[s+e]!==n.string[e])return;f.state=e.MATCH,f.phraseLength=i}})(t,r);break;case e.TLS:((t,s)=>{let n;const i=o[t];f.state=e.NOMATCH;const r=i.string.length;if(0!==r){if(s+r<=c.length){for(let e=0;e<r;e+=1)if(n=c[s+e],n>=65&&n<=90&&(n+=32),n!==i.string[e])return;f.state=e.MATCH,f.phraseLength=r}}else f.state=e.EMPTY})(t,r);break;case e.UDT:b(t,r);break;case e.AND:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.EMPTY;break;case e.NOMATCH:f.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${f.state}`)}})(t,r);break;case e.NOT:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.NOMATCH;break;case e.NOMATCH:f.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${f.state}`)}})(t,r);break;default:throw new Error(`${l}unrecognized operator`)}d||r+f.phraseLength>g&&(g=r+f.phraseLength),s.stats&&s.stats.collect(x,f),s.trace&&s.trace.up(x,f.state,r,f.phraseLength),p-=1}},$n={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)}},An={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 An.ALT:return"ALT";case An.CAT:return"CAT";case An.REP:return"REP";case An.RNM:return"RNM";case An.TRG:return"TRG";case An.TBS:return"TBS";case An.TLS:return"TLS";case An.UDT:return"UDT";case An.AND:return"AND";case An.NOT:return"NOT";case An.ACTIVE:return"ACTIVE";case An.EMPTY:return"EMPTY";case An.MATCH:return"MATCH";case An.NOMATCH:return"NOMATCH";case An.SEM_PRE:return"SEM_PRE";case An.SEM_POST:return"SEM_POST";case An.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};new kn;new kn,new Cn,new kn,new Cn,new kn,new Cn,new kn,new Cn;const Pn=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 Fn=class extends Mn{},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 Pn(String(e))}).join("/")}`}catch(t){throw new Fn("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class Tn 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 Dn=Tn;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 Vn=class extends Dn{},Nn=e=>{if(!Array.isArray(e))throw new Vn("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 Vn("Failed to compile normalized JSONPath",{cause:t,selectors:e})}},Rn=(e,t,s,n)=>{const{realm:i}=e,{value:r}=s;if(i.isObject(t)&&i.hasProperty(t,r)){n(i.getProperty(t,r),r)}},_n=(e,t,s,n)=>{const{realm:i}=e,{value:r}=s;if(!i.isArray(t))return;const o=i.getLength(t),c=((e,t)=>e>=0?e:t+e)(r,o);if(c>=0&&c<o){n(i.getElement(t,c),c)}},Ln=(e,t,s,n)=>{const{realm:i}=e;for(const[e,s]of i.entries(t))n(s,e)},Jn=(e,t)=>e>=0?Math.min(e,t):Math.max(t+e,0),Un=(e,t,s,n)=>{const{realm:i}=e,{start:r,end:o,step:c}=s;if(!i.isArray(t))return;const a=((e,t,s,n)=>{const i=s??1;if(0===i)return null;let r,o;if(i>0){const s=0,i=n,c=null!==e?Jn(e,n):s,a=null!==t?Jn(t,n):i;r=Math.max(c,0),o=Math.min(a,n)}else{const s=n-1,i=-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):i;o=Math.min(c,n-1),r=Math.max(a,-1)}return{lower:r,upper:o,step:i}})(r,o,c,i.getLength(t));if(null===a)return;const{lower:l,upper:u,step:d}=a;if(d>0)for(let e=l;e<u;e+=d){n(i.getElement(t,e),e)}else for(let e=u;e>l;e+=d){n(i.getElement(t,e),e)}},Hn=(e,t,s,n)=>n.value,zn=(e,t,s)=>{const{realm:n}=e,{selector:i}=s;switch(i.type){case"NameSelector":{const{value:e}=i;return n.isObject(t)&&n.hasProperty(t,e)?n.getProperty(t,e):void 0}case"IndexSelector":{const{value:e}=i;if(!n.isArray(t))return;const s=n.getLength(t),r=e>=0?e:s+e;return r>=0&&r<s?n.getElement(t,r):void 0}default:return}},Gn=(e,t,s,n)=>{const{selectors:i}=s;for(const s of i)ri(e,t,s,n)},Wn=(e,t,s)=>{const n=[],i=e=>{n.push(e)},{selector:r}=s;switch(r.type){case"BracketedSelection":Gn(e,t,r,i);break;case"NameSelector":case"WildcardSelector":case"IndexSelector":case"SliceSelector":case"FilterSelector":ri(e,t,r,i)}return n},Kn=(e,t,s,n)=>{let i=s;for(const t of n){const s=[];if("DescendantSegment"===t.type){const n=i=>{const{realm:r}=e,o=Wn(e,i,t);s.push(...o);for(const[,e]of r.entries(i))n(e)};for(const e of i)n(e)}else for(const n of i){const i=Wn(e,n,t);s.push(...i)}i=s}return i},Xn=(e,t,s,n)=>{const{query:i}=n;let r;switch(i.type){case"RelQuery":r=((e,t,s,n)=>{const{segments:i}=n;return 0===i.length?[s]:Kn(e,0,[s],i)})(e,0,s,i);break;case"JsonPathQuery":r=((e,t,s,n)=>{const{segments:i}=n;return 0===i.length?[t]:Kn(e,0,[t],i)})(e,t,0,i);break;default:r=[]}return o=r,Object.defineProperty(o,"_isNodelist",{value:!0,enumerable:!1,writable:!1}),o;var o};let Yn;const Qn=(e,t,s,n)=>{const{name:i,arguments:r}=n,o=e.functions[i];if("function"!=typeof o)return;const c=r.map(n=>((e,t,s,n)=>{switch(n.type){case"Literal":case"RelSingularQuery":case"AbsSingularQuery":case"FunctionExpr":return Zn(e,t,s,n);case"FilterQuery":return Xn(e,t,s,n);case"TestExpr":return"FilterQuery"===n.expression.type?Xn(e,t,s,n.expression):"FunctionExpr"===n.expression.type?Zn(e,t,s,n.expression):Yn(e,t,s,n);case"LogicalOrExpr":case"LogicalAndExpr":case"LogicalNotExpr":case"ComparisonExpr":return Yn(e,t,s,n);default:return}})(e,t,s,n));return o(e.realm,...c)},Zn=(e,t,s,n)=>{switch(n.type){case"Literal":return Hn(e,t,s,n);case"RelSingularQuery":return((e,t,s,n)=>{let i=s;for(const t of n.segments)if(i=zn(e,i,t),void 0===i)return;return i})(e,0,s,n);case"AbsSingularQuery":return((e,t,s,n)=>{let i=t;for(const t of n.segments)if(i=zn(e,i,t),void 0===i)return;return i})(e,t,0,n);case"FunctionExpr":return Qn(e,t,s,n);default:return}},ei=(e,t,s,n)=>{const{left:i,op:r,right:o}=n,c=Zn(e,t,s,i),a=Zn(e,t,s,o);return e.realm.compare(c,r,a)},ti=e=>Array.isArray(e),si=(e,t,s,n)=>{switch(n.type){case"LogicalOrExpr":return!!si(e,t,s,n.left)||si(e,t,s,n.right);case"LogicalAndExpr":return!!si(e,t,s,n.left)&&si(e,t,s,n.right);case"LogicalNotExpr":return!si(e,t,s,n.expression);case"TestExpr":{const{expression:i}=n;if("FilterQuery"===i.type){return Xn(e,t,s,i).length>0}if("FunctionExpr"===i.type){const n=Qn(e,t,s,i);return"boolean"==typeof n?n:void 0!==n&&(ti(n)?n.length>0:Boolean(n))}return!1}case"ComparisonExpr":return ei(e,t,s,n);default:return!1}};Yn=si;const ni=si,ii=(e,t,s,n)=>{const{realm:i,root:r}=e,{expression:o}=s;for(const[s,c]of i.entries(t)){ni(e,r,c,o)&&n(c,s)}},ri=(e,t,s,n)=>{switch(s.type){case"NameSelector":Rn(e,t,s,n);break;case"IndexSelector":_n(e,t,s,n);break;case"WildcardSelector":Ln(e,t,s,n);break;case"SliceSelector":Un(e,t,s,n);break;case"FilterSelector":ii(e,t,s,n)}};new Map;class oi{node;key;index;parent;parentPath;inList;revisited=!1;#e=!1;#t=!1;#s=!1;#n=!1;#i;#r=!1;constructor(e,t,s,n,i){this.node=e,this.parent=t,this.parentPath=s,this.key=n,this.index=i&&"number"==typeof n?n:void 0,this.inList=i}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:i}=t;if(Cs(n)&&"value"===s){if(!Es(n.key))throw new TypeError("MemberElement.key must be a StringElement");e.unshift(n.key.toValue())}else qs(i?.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):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.#r&&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.#i=e,this.node=e}remove(){this.#r&&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.#i}_wasReplaced(){return this.#n}_reset(){this.#e=!1,this.#t=!1,this.#s=!1,this.#n=!1,this.#i=void 0}_markStale(){this.#r=!0}}const ci=Ct(1,Vt(Bn,tt(vt,P("[object Promise]")))),ai=e=>{const t=e?.element;return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},li=e=>Bs(e),ui=e=>Ws(e),di=(e,t,s)=>{Cs(e)?e.value=s:Array.isArray(e)?e[t]=null===s?void 0:s:null===s?delete e[t]:e[t]=s},pi=e=>Cs(e)?["key","value"]:qs(e)||Ms(e)?["content"]:[],hi=(e,t)=>{if(void 0!==e[t])return e[t];const s=t.length;for(const n in e){if(!n.includes("|"))continue;const i=n.indexOf(t);if(-1===i)continue;const r=0===i||"|"===n[i-1],o=i+s===n.length||"|"===n[i+s];if(r&&o)return e[n]}},mi=(e,t,s)=>{if(void 0===t)return null;const n=e,i=s?"leave":"enter",r=hi(n,t);if(!s&&"function"==typeof r)return r;if(null!=r){const e=r[i];if("function"==typeof e)return e}const o=n[i];if("function"==typeof o)return o;if(null!=o){const e=hi(o,t);if("function"==typeof e)return e}return null},gi=(e,t={})=>{const{visitFnGetter:s=mi,nodeTypeGetter:n=ai,exposeEdits:i=!1}=t,r=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(r);return{enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===r){const r=s(e[u],n(a),!1);if("function"==typeof r){const s=yi(t,a),n=r.call(e[u],s);if(ci(n))throw new Ns("Async visitor not supported in sync mode",{visitor:e[u],visitFn:r});if(s.shouldStop&&(c[u]=o),s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!i)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!i)return t.replaceWith(n),n;a=n,l=!0}}}if(c.every(e=>e===o)&&t.stop(),l)return t.replaceWith(a),a},leave(t){const i=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===r){const r=s(e[a],n(i),!0);if("function"==typeof r){const s=yi(t,i),n=r.call(e[a],s);if(ci(n))throw new Ns("Async visitor not supported in sync mode",{visitor:e[a],visitFn:r});if(s.shouldStop&&(c[a]=o),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]===i&&(c[a]=r);c.every(e=>e===o)&&t.stop()}}},fi=(e,t={})=>{const{visitFnGetter:s=mi,nodeTypeGetter:n=ai,exposeEdits:i=!1}=t,r=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(r);return{async enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===r){const r=s(e[u],n(a),!1);if("function"==typeof r){const s=yi(t,a),n=await r.call(e[u],s);if(s.shouldStop&&(c[u]=o),s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!i)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!i)return t.replaceWith(n),n;a=n,l=!0}}}if(c.every(e=>e===o)&&t.stop(),l)return t.replaceWith(a),a},async leave(t){const i=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===r){const r=s(e[a],n(i),!0);if("function"==typeof r){const s=yi(t,i),n=await r.call(e[a],s);if(s.shouldStop&&(c[a]=o),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]===i&&(c[a]=r);c.every(e=>e===o)&&t.stop()}}};function yi(e,t){const s=new oi(t,e.parent,e.parentPath,e.key,e.inList);return s.revisited=e.revisited,s}gi[Symbol.for("nodejs.util.promisify.custom")]=fi;const bi=e=>!0===e?"skip":!1===e||void 0===e?"never":e;function*vi(e,t,s){const{keyMap:n,state:i,nodeTypeGetter:r,nodePredicate:o,nodeCloneFn:c,detectCycles:a,skipVisited:l,mutable:u,mutationFn:d}=s,p="function"==typeof n,h="never"!==l?new WeakSet:null;let m,g,f=Array.isArray(e),y=[e],b=-1,v=[],x=e,S=null,w=null;const B=[];do{b+=1;const e=b===y.length;let s,E=!1;const O=e&&0!==v.length;if(e){if(s=0===B.length?void 0:S?.key,x=g,g=B.pop(),w=S?.parentPath?.parentPath??null,O)if(u)for(const[e,t]of v)d(x,e,t);else if(f){x=x.slice();let e=0;for(const[t,s]of v){const n=t-e;null===s?(x.splice(n,1),e+=1):x[n]=s}}else{x=c(x);for(const[e,t]of v)x[e]=t}if(void 0!==m){b=m.index,y=m.keys,v=m.edits;const e=m.inArray;if(w=m.parentPath,E=m.revisitNoDescend,m=m.prev,O&&!u){const t=e?b:y[b];v.push([t,x])}f=e}}else if(void 0!==g&&(s=f?b:y[b],x=g[s],void 0===x))continue;if(!Array.isArray(x)){if(!o(x))throw new Ns(`Invalid AST Node: ${String(x)}`,{node:x});if(a&&B.includes(x))continue;if("never"!==l&&!e)if(h.has(x)){if("enter-only"!==l)continue;E=!0}else h.add(x);S=new oi(x,g,w,s,f),S.revisited=E;const n=mi(t,r(x),e);if(n){for(const[e,s]of Object.entries(i))t[e]=s;const r=yield{visitFn:n,path:S,isLeaving:e};if(S.shouldStop)break;if(S.removed){if(v.push([s,null]),!e)continue}else if(S._wasReplaced()){const t=S._getReplacementNode();if(v.push([s,t]),!e){if(S.shouldSkip)continue;if(!o(t))continue;x=t}}else if(S.shouldSkip){if(!e)continue}else if(void 0!==r&&(v.push([s,r]),!e)){if(!o(r))continue;x=r}S._markStale()}}if(!e){if(m={inArray:f,index:b,keys:y,edits:v,parentPath:w,revisitNoDescend:E,prev:m},f=Array.isArray(x),E)y=[];else if(f)y=x;else if(p)y=n(x);else{const e=r(x);y=void 0!==e?n[e]??[]:[]}b=-1,v=[],void 0!==g&&B.push(g),g=x,w=S}}while(void 0!==m);return 0!==v.length?v.at(-1)[1]:e}const xi=(e,t,s={})=>{const n=vi(e,t,{keyMap:s.keyMap??pi,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??ai,nodePredicate:s.nodePredicate??li,nodeCloneFn:s.nodeCloneFn??ui,detectCycles:s.detectCycles??!0,skipVisited:bi(s.skipVisited),mutable:s.mutable??!1,mutationFn:s.mutationFn??di});let i=n.next();for(;!i.done;){const e=i.value,s=e.visitFn.call(t,e.path);if(ci(s))throw new Ns("Async visitor not supported in sync mode",{visitor:t,visitFn:e.visitFn});i=n.next(s)}return i.value},Si=async(e,t,s={})=>{const n=vi(e,t,{keyMap:s.keyMap??pi,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??ai,nodePredicate:s.nodePredicate??li,nodeCloneFn:s.nodeCloneFn??ui,detectCycles:s.detectCycles??!0,skipVisited:bi(s.skipVisited),mutable:s.mutable??!1,mutationFn:s.mutationFn??di});let i=n.next();for(;!i.done;){const e=i.value,s=await e.visitFn.call(t,e.path);i=n.next(s)}return i.value};xi[Symbol.for("nodejs.util.promisify.custom")]=Si,oi.prototype.traverse=function(e,t){return xi(this.node,e,t)},oi.prototype.traverseAsync=function(e,t){return Si(this.node,e,t)};const wi=class extends dn{specObj;passingOptionsNames=["specObj","parent","consume"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Te(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return xt(Xt,["visitors",...e],this.specObj)?Te(["visitors",...e],this.specObj):Te(["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):(xi(t,n,s),n.element)}};const Bi=class extends wi{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,i)=>{const r=sn(t);if(Es(t)&&n.includes(r)&&!this.ignoredFields.includes(r)){const n=this.toRefractedElement([...s,"fixedFields",r],e),o=new W(this.consume?t:Hs(t),n);this.copyMetaAndAttributes(i,o),this.element.content.push(o),this.consume&&this.consumeSafe&&!i.isFrozen&&(i.value=void 0)}else this.ignoredFields.includes(r)||this.element.content.push(this.consume?i:Hs(i))}),this.copyMetaAndAttributes(t,this.element),e.stop()}},Ei=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},Oi=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:Oi(s,[...t,s])},ji=(e,t,s=[])=>{var n;const i=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>Oi(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,r=Object.create(i),o=Oi(i);for(let t of e){let e=Oi(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(Ei(r,n,["constructor",...s]),o.push(n))}}return r.constructor=t,r},ki=e=>e.filter((t,s)=>e.indexOf(t)==s),qi=(e,t)=>{const s=t.map(e=>Oi(e));let n=0,i=!0;for(;i;){i=!1;for(let r=t.length-1;r>=0;r--){const t=s[r][n];if(null!=t&&(i=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[r][0]}n++}},Mi=(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(qi(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==qi(n,e)||void 0!==t[n],get:(s,n)=>(qi(n,e)||t)[n],set(t,s,n){const i=qi(s,e);if(void 0===i)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return i[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)))}),Ci=null,$i="copy",Ai="copy",Pi="deep",Fi=new WeakMap,Ii=e=>Fi.get(e),Ti=(e,t)=>{var s,n;const i=ki([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),r={};for(let o of i)r[o]=ki([...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 r},Di=(e,t)=>{var s,n,i,r;return{property:Ti(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:Ti(null!==(i=null==e?void 0:e.method)&&void 0!==i?i:{},null!==(r=null==t?void 0:t.method)&&void 0!==r?r:{})}},Vi=(e,t)=>{var s,n,i,r,o,c;return{class:ki([...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:Di(null!==(i=null==e?void 0:e.static)&&void 0!==i?i:{},null!==(r=null==t?void 0:t.static)&&void 0!==r?r:{}),instance:Di(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Ni=new Map,Ri=(...e)=>{const t=((...e)=>{var t;const s=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const i=[...Oi(e.prototype).map(e=>e.constructor),...null!==(t=Ii(e))&&void 0!==t?t:[]].filter(e=>!s.has(e));for(let e of i)n.add(e);s.add(e),n.delete(e)}return[...s]})(...e).map(e=>Ni.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>Vi(e,t))},_i=e=>{let t=Ni.get(e);return t||(t={},Ni.set(e,t)),t};function Li(...e){var t,s,n;const i=e.map(e=>e.prototype),r=Ci;if(null!==r){const e=i.map(e=>e[r]).filter(e=>"function"==typeof e),t=function(...t){for(let s of e)s.apply(this,t)},s={[r]:t};i.push(s)}function o(...t){for(const s of e)Ei(this,new s(...t));null!==r&&"function"==typeof this[r]&&this[r].apply(this,t)}var c,a;o.prototype="copy"===Ai?ji(i,o):(c=i,a=o,Mi([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===$i?ji(e,null,["prototype"]):Mi(e,Function.prototype));let l=o;if("none"!==Pi){const i="deep"===Pi?Ri(...e):((...e)=>{const t=e.map(e=>_i(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>Vi(e,t))})(...e);for(let e of null!==(t=null==i?void 0:i.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Ji(null!==(s=null==i?void 0:i.static)&&void 0!==s?s:{},l),Ji(null!==(n=null==i?void 0:i.instance)&&void 0!==n?n:{},l.prototype)}var u,d;return u=l,d=e,Fi.set(u,d),l}const Ji=(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 Ui=function(){return!1};const Hi=class extends wi{specPath;ignoredFields;fieldPatternPredicate=Ui;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=sn(t);if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),i=this.toRefractedElement(n,e),r=new W(this.consume?t:Hs(t),i);this.copyMetaAndAttributes(s,r),r.classes.push("patterned-field"),this.element.content.push(r),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 zi=class extends Hi{constructor(e){super(e),this.fieldPatternPredicate=On}};const Gi=class{parent;constructor({parent:e}){this.parent=e}},Wi=Li(Bi,Gi,pn),Ki=Li(Bi,pn),Xi=Li(Bi,pn),Yi=Li(Bi,pn),Qi=Li(wi,Gi,pn),Zi=Li(wi,Gi,pn),er=Li(wi,Gi,pn),tr=Li(wi,Gi,pn),sr=Li(wi,Gi,pn),nr=Li(zi,Gi,pn),ir=Li(zi,Gi,pn),rr=Li(zi,Gi,pn),or=Li(zi,Gi,pn);const cr=class extends Wi{constructor(e){super(e),this.element=new gs,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,Bi.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(fn(this.parent)&&!Es(e.get("$schema")))this.element.meta.set("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(this.parent instanceof gs&&!Es(e.get("$schema"))){const e=mn(this.parent.meta.get("inheritedDialectIdentifier"),sn(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=sn(e.get(t));On(n)&&s.push(n),this.element.meta.set("ancestorsSchemaIdentifiers",s)}},ar=e=>Ms(e)&&e.hasKey("$ref");const lr=class extends tr{ObjectElement(e){const t=e.node,s=ar(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];this.element=this.toRefractedElement(s,t),e.stop()}ArrayElement(e){const t=e.node;this.element=new ws,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ur=class extends pn{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-required")}};const dr=class extends or{constructor(e){super(e),this.element=new K,this.element.classes.push("json-schema-properties"),this.specPath=e=>ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const pr=class extends rr{constructor(e){super(e),this.element=new K,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const hr=class extends ir{constructor(e){super(e),this.element=new K,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const mr=class extends pn{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-enum")}};const gr=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 fr=class extends Qi{constructor(e){super(e),this.element=new ws,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const yr=class extends Zi{constructor(e){super(e),this.element=new ws,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const br=class extends er{constructor(e){super(e),this.element=new ws,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const vr=class extends nr{constructor(e){super(e),this.element=new K,this.element.classes.push("json-schema-definitions"),this.specPath=e=>ar(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const xr=class extends sr{constructor(e){super(e),this.element=new ws,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 Sr=class extends Ki{constructor(e){super(e),this.element=new fs,this.specPath=hn(["document","objects","JSONReference"])}ObjectElement(e){Bi.prototype.ObjectElement.call(this,e),Es(this.element.$ref)&&this.element.classes.push("reference-element")}};const wr=class extends pn{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Br=function(){return!0};const Er=Ce(function(e,t,s){return Ct(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const Or=r(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var jr=y(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const kr=jr;const qr=r(function(e){return o(0,e)});function Mr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Cr=r(Mr);const $r=Rt(Oe);const Ar=Ct(1,Xt(Array.isArray)?Array.isArray:tt(C,nt("Array")));const Pr=Vt(Ar,Sn);function Fr(e){return function(e){if(Array.isArray(e))return Ir(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 Ir(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)?Ir(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 Ir(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 Tr=tt(kr(Or(function(e,t){return e.length>t.length})),qr,Pe("length")),Dr=ns(function(e,t,s){var n=s.apply(void 0,Fr(e));return $r(n)?Cr(n):t});const Vr=Er(Pr,function(e){var t=Tr(e);return Ct(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return Ye(Dr(s),void 0,e)})},gn);const Nr=class extends wi{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Er(e,hn(t),gn)),n=Vr(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const Rr=class extends Nr{constructor(e){super(e),this.alternator=[{predicate:ar,specPath:["document","objects","JSONReference"]},{predicate:Br,specPath:["document","objects","JSONSchema"]}]}};const _r=class extends Yi{constructor(e){super(e),this.element=new ys,this.specPath=hn(["document","objects","Media"])}};const Lr=class extends Xi{constructor(e){super(e),this.element=new bs,this.specPath=hn(["document","objects","LinkDescription"])}},Jr={visitors:{value:pn,JSONSchemaOrJSONReferenceVisitor:Rr,document:{objects:{JSONSchema:{element:"JSONSchemaDraft4",$visitor:cr,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:Rr,items:{$visitor:lr,alias:"itemsField"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:ur,properties:dr,additionalProperties:Rr,patternProperties:pr,dependencies:hr,enum:mr,type:gr,allOf:fr,anyOf:yr,oneOf:br,not:Rr,definitions:vr,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:{$visitor:xr,alias:"linksField"},media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{element:"JSONReference",$visitor:Sr,fixedFields:{$ref:wr}},Media:{element:"media",$visitor:_r,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{element:"linkDescription",$visitor:Lr,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Rr,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Rr}}}}}},Ur=ms(Jr),Hr=e=>Object.entries(e).map(([e,t])=>es(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(gs,"fixedFields",{get:()=>Hr(Ur.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(fs,"fixedFields",{get:()=>Hr(Ur.visitors.document.objects.JSONReference.fixedFields),enumerable:!0}),Object.defineProperty(ys,"fixedFields",{get:()=>Hr(Ur.visitors.document.objects.Media.fixedFields),enumerable:!0}),Object.defineProperty(bs,"fixedFields",{get:()=>Hr(Ur.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const zr=class extends gs{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idField(){throw new p("id keyword from Core vocabulary has been renamed to $id.")}set idField(e){throw new p("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsField(){return this.get("contains")}set containsField(e){this.set("contains",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Gr=class extends bs{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new p("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new p("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new p("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new p("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new p("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new p("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var Wr=Ce(function e(t,s,n){if(0===t.length)return s;var i=t[0];if(t.length>1){var r=Ae(i,n);(Oe(r)||"object"!=typeof r)&&(r=$e(t[1])?[]:{}),s=e(Array.prototype.slice.call(t,1),s,r)}return function(e,t,s){if($e(e)&&Ne(s)){var n=e<0?s.length+e:e,i=[].concat(s);return i[n]=t,i}var r={};for(var o in s)r[o]=s[o];return r[e]=t,r}(i,s,n)});const Kr=Wr;const Xr=Ce(function(e,t,s){var n=Array.prototype.slice.call(s,0);return n.splice(e,t),n});var Yr=Ce(function(e,t,s){return Kr([e],t,s)});const Qr=Yr;var Zr=y(function e(t,s){if(null==s)return s;switch(t.length){case 0:return s;case 1:return function(e,t){if(null==t)return t;if($e(e)&&Ne(t))return Xr(e,1,t);var s={};for(var n in t)s[n]=t[n];return delete s[e],s}(t[0],s);default:var n=t[0],i=Array.prototype.slice.call(t,1);return null==s[n]?function(e,t){if($e(e)&&Ne(t))return[].concat(t);var s={};for(var n in t)s[n]=t[n];return s}(n,s):Qr(n,e(i,s[n]),s)}});const eo=Zr;const to=class extends cr{constructor(e){super(e),this.element=new zr}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){this.enter(e),this.element.classes.push("boolean-json-schema")}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const so=class extends lr{BooleanElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}};const no=class extends pn{ArrayElement(e){this.enter(e),this.element.classes.push("json-schema-examples")}};const io=class extends Lr{constructor(e){super(e),this.element=new Gr}},ro=tt(Kr(["visitors","document","objects","JSONSchema","element"],"JSONSchemaDraft6"),Kr(["visitors","document","objects","JSONSchema","$visitor"],to),eo(["visitors","document","objects","JSONSchema","fixedFields","id"]),Kr(["visitors","document","objects","JSONSchema","fixedFields","$id"],{$ref:"#/visitors/value"}),Kr(["visitors","document","objects","JSONSchema","fixedFields","contains"],{$visitor:Jr.visitors.JSONSchemaOrJSONReferenceVisitor,alias:"containsField"}),Kr(["visitors","document","objects","JSONSchema","fixedFields","items"],{$visitor:so,alias:"itemsField"}),Kr(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),Kr(["visitors","document","objects","JSONSchema","fixedFields","const"],{$ref:"#/visitors/value"}),Kr(["visitors","document","objects","JSONSchema","fixedFields","examples"],no),Kr(["visitors","document","objects","LinkDescription","$visitor"],io),Kr(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Kr(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","LinkDescription","fixedFields","method"]),eo(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Kr(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],{$ref:"#/visitors/value"}))(Jr),oo=ms(ro),co=e=>Object.entries(e).map(([e,t])=>es(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(zr,"fixedFields",{get:()=>co(oo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(Gr,"fixedFields",{get:()=>co(oo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const ao=class extends zr{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new p('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new p('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const lo=class extends Gr{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new p("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new p("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new p("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new p("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const uo=class extends to{constructor(e){super(e),this.element=new ao}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const po=class extends io{constructor(e){super(e),this.element=new lo}},ho=tt(Kr(["visitors","document","objects","JSONSchema","element"],"JSONSchemaDraft7"),Kr(["visitors","document","objects","JSONSchema","$visitor"],uo),Kr(["visitors","document","objects","JSONSchema","fixedFields","$comment"],ro.visitors.value),Kr(["visitors","document","objects","JSONSchema","fixedFields","if"],ro.visitors.JSONSchemaOrJSONReferenceVisitor),Kr(["visitors","document","objects","JSONSchema","fixedFields","then"],ro.visitors.JSONSchemaOrJSONReferenceVisitor),Kr(["visitors","document","objects","JSONSchema","fixedFields","else"],ro.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","JSONSchema","fixedFields","media"]),Kr(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],ro.visitors.value),Kr(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],ro.visitors.value),Kr(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","$visitor"],po),Kr(["visitors","document","objects","LinkDescription","fixedFields","anchor"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],ro.visitors.value),eo(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Kr(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","fixedFields","description"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","fixedFields","$comment"],ro.visitors.value),Kr(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],ro.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Kr(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],ro.visitors.value))(ro),mo=ms(ho),go=e=>Object.entries(e).map(([e,t])=>es(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(ao,"fixedFields",{get:()=>go(mo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(lo,"fixedFields",{get:()=>go(mo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const fo=class extends ao{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-7")}get not(){return this.get("not")}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get contains(){return this.get("contains")}set contains(e){this.set("contains",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get discriminator(){return this.get("discriminator")}get externalDocs(){return this.get("externalDocs")}get deprecated(){return this.get("deprecated")}};const yo=class extends K{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}};const bo=class extends K{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 vo=class extends K{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 protocol(){return this.get("protocol")}set protocol(e){this.set("protocol",e)}get protocolVersion(){return this.get("protocolVersion")}set protocolVersion(e){this.set("protocolVersion",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)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}};const xo=class extends K{constructor(e,t,s){super(e,t,s),this.element="serverBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}};const So=class extends K{constructor(e,t,s){super(e,t,s),this.element="servers"}};const wo=class extends K{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)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Bo=class extends K{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 Eo=class extends ws{constructor(e,t,s){super(e,t,s),this.element="tags"}};const Oo=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqpChannelBinding",this.classes.push("channel-binding")}get is(){return this.get("is")}set is(e){this.set("is",e)}get exchange(){return this.get("exchange")}set exchange(e){this.set("exchange",e)}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const jo=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqpMessageBinding",this.classes.push("message-binding")}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get messageType(){return this.get("messageType")}set messageType(e){this.set("messageType",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const ko=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqpOperationBinding",this.classes.push("operation-binding")}get expiration(){return this.get("expiration")}set expiration(e){this.set("expiration",e)}get userId(){return this.get("userId")}set userId(e){this.set("userId",e)}get cc(){return this.get("cc")}set cc(e){this.set("cc",e)}get priority(){return this.get("priority")}set priority(e){this.set("priority",e)}get deliveryMode(){return this.get("deliveryMode")}set deliveryMode(e){this.set("deliveryMode",e)}get mandatory(){return this.get("mandatory")}set mandatory(e){this.set("mandatory",e)}get bcc(){return this.get("bcc")}set bcc(e){this.set("bcc",e)}get replyTo(){return this.get("replyTo")}set replyTo(e){this.set("replyTo",e)}get timestamp(){return this.get("timestamp")}set timestamp(e){this.set("timestamp",e)}get ack(){return this.get("ack")}set ack(e){this.set("ack",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const qo=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqpServerBinding",this.classes.push("server-binding")}};const Mo=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqp1ChannelBinding",this.classes.push("channel-binding")}};const Co=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqp1MessageBinding",this.classes.push("message-binding")}};const $o=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqp1OperationBinding",this.classes.push("operation-binding")}};const Ao=class extends K{constructor(e,t,s){super(e,t,s),this.element="amqp1ServerBinding",this.classes.push("server-binding")}};const Po=class extends K{constructor(e,t,s){super(e,t,s),this.element="anypointmqChannelBinding",this.classes.push("channel-binding")}get destination(){return this.get("destination")}set destination(e){this.set("destination",e)}get destinationType(){return this.get("destinationType")}set destinationType(e){this.set("destinationType",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Fo=class extends K{constructor(e,t,s){super(e,t,s),this.element="anypointmqMessageBinding",this.classes.push("message-binding")}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Io=class extends K{constructor(e,t,s){super(e,t,s),this.element="anypointmqOperationBinding",this.classes.push("operation-binding")}};const To=class extends K{constructor(e,t,s){super(e,t,s),this.element="anypointmqServerBinding",this.classes.push("server-binding")}};const Do=class extends K{constructor(e,t,s){super(e,t,s),this.element="googlepubsubChannelBinding",this.classes.push("channel-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get labels(){return this.get("labels")}set labels(e){this.set("labels",e)}get messageRetentionDuration(){return this.get("messageRetentionDuration")}set messageRetentionDuration(e){this.set("messageRetentionDuration",e)}get messageStoragePolicy(){return this.get("messageStoragePolicy")}set messageStoragePolicy(e){this.set("messageStoragePolicy",e)}get schemaSettings(){return this.get("schemaSettings")}set schemaSettings(e){this.set("schemaSettings",e)}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}};const Vo=class extends K{constructor(e,t,s){super(e,t,s),this.element="googlepubsubMessageBinding",this.classes.push("message-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get attributesField(){return this.get("attributes")}set attributesField(e){this.set("attributes",e)}get orderingKey(){return this.get("orderingKey")}set orderingKey(e){this.set("orderingKey",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const No=class extends K{constructor(e,t,s){super(e,t,s),this.element="googlepubsubOperationBinding",this.classes.push("operation-binding")}};const Ro=class extends K{constructor(e,t,s){super(e,t,s),this.element="googlepubsubServerBinding",this.classes.push("server-binding")}};const _o=class extends K{constructor(e,t,s){super(e,t,s),this.element="httpChannelBinding",this.classes.push("channel-binding")}};const Lo=class extends K{constructor(e,t,s){super(e,t,s),this.element="httpMessageBinding",this.classes.push("message-binding")}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Jo=class extends K{constructor(e,t,s){super(e,t,s),this.element="httpOperationBinding",this.classes.push("operation-binding")}get type(){return this.get("type")}set type(e){this.set("type",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get query(){return this.get("query")}set query(e){this.set("query",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Uo=class extends K{constructor(e,t,s){super(e,t,s),this.element="httpServerBinding",this.classes.push("server-binding")}};const Ho=class extends K{constructor(e,t,s){super(e,t,s),this.element="ibmmqChannelBinding",this.classes.push("channel-binding")}get destinationType(){return this.get("destinationType")}set destinationType(e){this.set("destinationType",e)}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}get maxMsgLength(){return this.get("maxMsgLength")}set maxMsgLength(e){this.set("maxMsgLength",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const zo=class extends K{constructor(e,t,s){super(e,t,s),this.element="ibmmqMessageBinding",this.classes.push("message-binding")}get type(){return this.get("type")}set type(e){this.set("type",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get expiry(){return this.get("expiry")}set expiry(e){this.set("expiry",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Go=class extends K{constructor(e,t,s){super(e,t,s),this.element="ibmmqOperationBinding",this.classes.push("operation-binding")}};const Wo=class extends K{constructor(e,t,s){super(e,t,s),this.element="ibmmqServerBinding",this.classes.push("server-binding")}get groupId(){return this.get("groupId")}set groupId(e){this.set("groupId",e)}get ccdtQueueManagerName(){return this.get("ccdtQueueManagerName")}set ccdtQueueManagerName(e){this.set("ccdtQueueManagerName",e)}get cipherSpec(){return this.get("cipherSpec")}set cipherSpec(e){this.set("cipherSpec",e)}get multiEndpointServer(){return this.get("multiEndpointServer")}set multiEndpointServer(e){this.set("multiEndpointServer",e)}get heartBeatInterval(){return this.get("heartBeatInterval")}set heartBeatInterval(e){this.set("heartBeatInterval",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Ko=class extends K{constructor(e,t,s){super(e,t,s),this.element="jmsChannelBinding",this.classes.push("channel-binding")}};const Xo=class extends K{constructor(e,t,s){super(e,t,s),this.element="jmsMessageBinding",this.classes.push("message-binding")}};const Yo=class extends K{constructor(e,t,s){super(e,t,s),this.element="jmsOperationBinding",this.classes.push("operation-binding")}};const Qo=class extends K{constructor(e,t,s){super(e,t,s),this.element="jmsServerBinding",this.classes.push("server-binding")}};const Zo=class extends K{constructor(e,t,s){super(e,t,s),this.element="kafkaChannelBinding",this.classes.push("channel-binding")}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}get partitions(){return this.get("partitions")}set partitions(e){this.set("partitions",e)}get replicas(){return this.get("replicas")}set replicas(e){this.set("replicas",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const ec=class extends K{constructor(e,t,s){super(e,t,s),this.element="kafkaMessageBinding",this.classes.push("message-binding")}get key(){return this.get("key")}set key(e){this.set("key",e)}get schemaIdLocation(){return this.get("schemaIdLocation")}set schemaIdLocation(e){this.set("schemaIdLocation",e)}get schemaIdPayloadEncoding(){return this.get("schemaIdPayloadEncoding")}set schemaIdPayloadEncoding(e){this.set("schemaIdPayloadEncoding",e)}get schemaLookupStrategy(){return this.get("schemaLookupStrategy")}set schemaLookupStrategy(e){this.set("schemaLookupStrategy",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const tc=class extends K{constructor(e,t,s){super(e,t,s),this.element="kafkaOperationBinding",this.classes.push("operation-binding")}get groupId(){return this.get("groupId")}set groupId(e){this.set("groupId",e)}get clientId(){return this.get("clientId")}set clientId(e){this.set("clientId",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const sc=class extends K{constructor(e,t,s){super(e,t,s),this.element="kafkaServerBinding",this.classes.push("server-binding")}get schemaRegistryUrl(){return this.get("schemaRegistryUrl")}set schemaRegistryUrl(e){this.set("schemaRegistryUrl",e)}get schemaRegistryVendor(){return this.get("schemaRegistryVendor")}set schemaRegistryVendor(e){this.set("schemaRegistryVendor",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const nc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mercureChannelBinding",this.classes.push("channel-binding")}};const ic=class extends K{constructor(e,t,s){super(e,t,s),this.element="mercureMessageBinding",this.classes.push("message-binding")}};const rc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mercureOperationBinding",this.classes.push("operation-binding")}};const oc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mercureServerBinding",this.classes.push("server-binding")}};const cc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqttChannelBinding",this.classes.push("channel-binding")}};const ac=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqttMessageBinding",this.classes.push("message-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const lc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqttOperationBinding",this.classes.push("operation-binding")}get qos(){return this.get("qos")}set qos(e){this.set("qos",e)}get retain(){return this.get("retain")}set retain(e){this.set("retain",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const uc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqttServerBinding",this.classes.push("server-binding")}get clientId(){return this.get("clientId")}set clientId(e){this.set("clientId",e)}get cleanSession(){return this.get("cleanSession")}set cleanSession(e){this.set("cleanSession",e)}get lastWill(){return this.get("lastWill")}set lastWill(e){this.set("lastWill",e)}get keepAlive(){return this.get("keepAlive")}set keepAlive(e){this.set("keepAlive",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const dc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqtt5ChannelBinding",this.classes.push("channel-binding")}};const pc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqtt5MessageBinding",this.classes.push("message-binding")}};const hc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqtt5OperationBinding",this.classes.push("operation-binding")}};const mc=class extends K{constructor(e,t,s){super(e,t,s),this.element="mqtt5ServerBinding",this.classes.push("server-binding")}};const gc=class extends K{constructor(e,t,s){super(e,t,s),this.element="natsChannelBinding",this.classes.push("channel-binding")}};const fc=class extends K{constructor(e,t,s){super(e,t,s),this.element="natsMessageBinding",this.classes.push("message-binding")}};const yc=class extends K{constructor(e,t,s){super(e,t,s),this.element="natsOperationBinding",this.classes.push("operation-binding")}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const bc=class extends K{constructor(e,t,s){super(e,t,s),this.element="natsServerBinding",this.classes.push("server-binding")}};const vc=class extends K{constructor(e,t,s){super(e,t,s),this.element="pulsarChannelBinding",this.classes.push("channel-binding")}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get persistence(){return this.get("persistence")}set persistence(e){this.set("persistence",e)}get compaction(){return this.get("compaction")}set compaction(e){this.set("compaction",e)}get"geo-replication"(){return this.get("geo-replication")}set"geo-replication"(e){this.set("geo-replication",e)}get retention(){return this.get("retention")}set retention(e){this.set("retention",e)}get ttl(){return this.get("ttl")}set ttl(e){this.set("ttl",e)}get deduplication(){return this.get("deduplication")}set deduplication(e){this.set("deduplication",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const xc=class extends K{constructor(e,t,s){super(e,t,s),this.element="pulsarMessageBinding",this.classes.push("message-binding")}};const Sc=class extends K{constructor(e,t,s){super(e,t,s),this.element="pulsarOperationBinding",this.classes.push("operation-binding")}};const wc=class extends K{constructor(e,t,s){super(e,t,s),this.element="pulsarServerBinding",this.classes.push("server-binding")}get tenant(){return this.get("tenant")}set tenant(e){this.set("tenant",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Bc=class extends K{constructor(e,t,s){super(e,t,s),this.element="redisChannelBinding",this.classes.push("channel-binding")}};const Ec=class extends K{constructor(e,t,s){super(e,t,s),this.element="redisMessageBinding",this.classes.push("message-binding")}};const Oc=class extends K{constructor(e,t,s){super(e,t,s),this.element="redisOperationBinding",this.classes.push("operation-binding")}};const jc=class extends K{constructor(e,t,s){super(e,t,s),this.element="redisServerBinding",this.classes.push("server-binding")}};const kc=class extends K{constructor(e,t,s){super(e,t,s),this.element="snsChannelBinding",this.classes.push("channel-binding")}};const qc=class extends K{constructor(e,t,s){super(e,t,s),this.element="snsMessageBinding",this.classes.push("message-binding")}};const Mc=class extends K{constructor(e,t,s){super(e,t,s),this.element="snsOperationBinding",this.classes.push("operation-binding")}};const Cc=class extends K{constructor(e,t,s){super(e,t,s),this.element="snsServerBinding",this.classes.push("server-binding")}};const $c=class extends K{constructor(e,t,s){super(e,t,s),this.element="solaceChannelBinding",this.classes.push("channel-binding")}};const Ac=class extends K{constructor(e,t,s){super(e,t,s),this.element="solaceMessageBinding",this.classes.push("message-binding")}};const Pc=class extends K{constructor(e,t,s){super(e,t,s),this.element="solaceOperationBinding",this.classes.push("operation-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get destinations(){return this.get("destinations")}set destinations(e){this.set("destinations",e)}};const Fc=class extends K{constructor(e,t,s){super(e,t,s),this.element="solaceServerBinding",this.classes.push("server-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get msgVpn(){return this.get("msgVpn")}set msgVpn(e){this.set("msgVpn",e)}};const Ic=class extends K{constructor(e,t,s){super(e,t,s),this.element="sqsChannelBinding",this.classes.push("channel-binding")}};const Tc=class extends K{constructor(e,t,s){super(e,t,s),this.element="sqsMessageBinding",this.classes.push("message-binding")}};const Dc=class extends K{constructor(e,t,s){super(e,t,s),this.element="sqsOperationBinding",this.classes.push("operation-binding")}};const Vc=class extends K{constructor(e,t,s){super(e,t,s),this.element="sqsServerBinding",this.classes.push("server-binding")}};const Nc=class extends K{constructor(e,t,s){super(e,t,s),this.element="stompChannelBinding",this.classes.push("channel-binding")}};const Rc=class extends K{constructor(e,t,s){super(e,t,s),this.element="stompMessageBinding",this.classes.push("message-binding")}};const _c=class extends K{constructor(e,t,s){super(e,t,s),this.element="stompOperationBinding",this.classes.push("operation-binding")}};const Lc=class extends K{constructor(e,t,s){super(e,t,s),this.element="stompServerBinding",this.classes.push("server-binding")}};const Jc=class extends K{constructor(e,t,s){super(e,t,s),this.element="webSocketChannelBinding",this.classes.push("channel-binding")}get method(){return this.get("method")}set method(e){this.set("method",e)}get query(){return this.get("query")}set query(e){this.set("query",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}};const Uc=class extends K{constructor(e,t,s){super(e,t,s),this.element="webSocketMessageBinding",this.classes.push("message-binding")}};const Hc=class extends K{constructor(e,t,s){super(e,t,s),this.element="webSocketOperationBinding",this.classes.push("operation-binding")}};const zc=class extends K{constructor(e,t,s){super(e,t,s),this.element="webSocketServerBinding",this.classes.push("server-binding")}},Gc={namespace:e=>{const{base:t}=e;return t.register("asyncApi2",X),t.register("asyncApiVersion",Q),t.register("channelBindings",Z),t.register("channelItem",ee),t.register("channels",te),t.register("components",se),t.register("contact",ne),t.register("correlationID",ie),t.register("defaultContentType",re),t.register("externalDocumentation",oe),t.register("identifier",ce),t.register("info",ae),t.register("license",le),t.register("message",ue),t.register("messageBindings",de),t.register("messageExample",pe),t.register("messageTrait",he),t.register("oAuthFlow",me),t.register("oAuthFlows",ge),t.register("operation",fe),t.register("operationBindings",ye),t.register("operationTrait",be),t.register("parameter",ve),t.register("parameters",xe),t.register("reference",Se),t.register("schema",fo),t.register("securityRequirement",yo),t.register("securityScheme",bo),t.register("server",vo),t.register("serverBindings",xo),t.register("servers",So),t.register("serverVariable",wo),t.register("tag",Bo),t.register("tags",Eo),t.register("amqpChannelBinding",Oo),t.register("amqpMessageBinding",jo),t.register("amqpOperationBinding",ko),t.register("amqpServerBinding",qo),t.register("amqp1ChannelBinding",Mo),t.register("amqp1MessageBinding",Co),t.register("amqp1OperationBinding",$o),t.register("amqp1ServerBinding",Ao),t.register("anypointmqChannelBinding",Po),t.register("anypointmqMessageBinding",Fo),t.register("anypointmqOperationBinding",Io),t.register("anypointmqServerBinding",To),t.register("googlepubsubChannelBinding",Do),t.register("googlepubsubMessageBinding",Vo),t.register("googlepubsubOperationBinding",No),t.register("googlepubsubServerBinding",Ro),t.register("httpChannelBinding",_o),t.register("httpMessageBinding",Lo),t.register("httpOperationBinding",Jo),t.register("httpServerBinding",Uo),t.register("ibmmqChannelBinding",Ho),t.register("ibmmqMessageBinding",zo),t.register("ibmmqOperationBinding",Go),t.register("ibmmqServerBinding",Wo),t.register("jmsChannelBinding",Ko),t.register("jmsMessageBinding",Xo),t.register("jmsOperationBinding",Yo),t.register("jmsServerBinding",Qo),t.register("kafkaChannelBinding",Zo),t.register("kafkaMessageBinding",ec),t.register("kafkaOperationBinding",tc),t.register("kafkaServerBinding",sc),t.register("mercureChannelBinding",nc),t.register("mercureMessageBinding",ic),t.register("mercureOperationBinding",rc),t.register("mercureServerBinding",oc),t.register("mqttChannelBinding",cc),t.register("mqttMessageBinding",ac),t.register("mqttOperationBinding",lc),t.register("mqttServerBinding",uc),t.register("mqtt5ChannelBinding",dc),t.register("mqtt5MessageBinding",pc),t.register("mqtt5OperationBinding",hc),t.register("mqtt5ServerBinding",mc),t.register("natsChannelBinding",gc),t.register("natsMessageBinding",fc),t.register("natsOperationBinding",yc),t.register("natsServerBinding",bc),t.register("pulsarChannelBinding",vc),t.register("pulsarMessageBinding",xc),t.register("pulsarOperationBinding",Sc),t.register("pulsarServerBinding",wc),t.register("redisChannelBinding",Bc),t.register("redisMessageBinding",Ec),t.register("redisOperationBinding",Oc),t.register("redisServerBinding",jc),t.register("snsChannelBinding",kc),t.register("snsMessageBinding",qc),t.register("snsOperationBinding",Mc),t.register("snsServerBinding",Cc),t.register("solaceChannelBinding",$c),t.register("solaceMessageBinding",Ac),t.register("solaceOperationBinding",Pc),t.register("solaceServerBinding",Fc),t.register("sqsChannelBinding",Ic),t.register("sqsMessageBinding",Tc),t.register("sqsOperationBinding",Dc),t.register("sqsServerBinding",Vc),t.register("stompChannelBinding",Nc),t.register("stompMessageBinding",Rc),t.register("stompOperationBinding",_c),t.register("stompServerBinding",Lc),t.register("webSocketChannelBinding",Jc),t.register("webSocketMessageBinding",Uc),t.register("webSocketOperationBinding",Hc),t.register("webSocketServerBinding",zc),t}};class Wc extends K{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Wc.primaryClass)}}const Kc=Wc;class Xc extends K{static primaryClass="components-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Xc.primaryClass)}}const Yc=Xc;class Qc extends K{static primaryClass="components-server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Qc.primaryClass)}}const Zc=Qc;class ea extends K{static primaryClass="components-messages";constructor(e,t,s){super(e,t,s),this.classes.push(ea.primaryClass)}}const ta=ea;class sa extends K{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(sa.primaryClass)}}const na=sa;class ia extends K{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(ia.primaryClass)}}const ra=ia;class oa extends K{static primaryClass="components-correlation-ids";constructor(e,t,s){super(e,t,s),this.classes.push(oa.primaryClass)}}const ca=oa;class aa extends K{static primaryClass="components-operation-traits";constructor(e,t,s){super(e,t,s),this.classes.push(aa.primaryClass)}}const la=aa;class ua extends K{static primaryClass="components-message-traits";constructor(e,t,s){super(e,t,s),this.classes.push(ua.primaryClass)}}const da=ua;class pa extends K{static primaryClass="components-server-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(pa.primaryClass)}}const ha=pa;class ma extends K{static primaryClass="components-channel-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(ma.primaryClass)}}const ga=ma;class fa extends K{static primaryClass="components-operation-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(fa.primaryClass)}}const ya=fa;class ba extends K{static primaryClass="components-message-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(ba.primaryClass)}}const va=ba;class xa extends K{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(xa.primaryClass)}}const Sa=xa;class wa extends ws{static primaryClass="channel-item-server-names-list";constructor(e,t,s){super(e,t,s),this.classes.push(wa.primaryClass)}}const Ba=wa;class Ea extends K{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(Ea.primaryClass)}}const Oa=Ea;class ja extends ws{static primaryClass="operation-traits";constructor(e,t,s){super(e,t,s),this.classes.push(ja.primaryClass)}}const ka=ja;class qa extends ws{static primaryClass="server-security";constructor(e,t,s){super(e,t,s),this.classes.push(qa.primaryClass)}}const Ma=qa;class Ca extends K{static primaryClass="operation-message-map";constructor(e,t,s){super(e,t,s),this.classes.push(Ca.primaryClass)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}}const $a=Ca;class Aa extends ws{static primaryClass="operation-message";constructor(e,t,s){super(e,t,s),this.classes.push(Aa.primaryClass)}}const Pa=Aa;class Fa extends ws{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Fa.primaryClass)}}const Ia=Fa;class Ta extends ws{static primaryClass="operation-trait-security";constructor(e,t,s){super(e,t,s),this.classes.push(Ta.primaryClass)}}const Da=Ta;class Va extends ws{static primaryClass="message-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Va.primaryClass)}}const Na=Va;class Ra extends ws{static primaryClass="message-traits";constructor(e,t,s){super(e,t,s),this.classes.push(Ra.primaryClass)}}const _a=Ra;class La extends ws{static primaryClass="message-trait-examples";constructor(e,t,s){super(e,t,s),this.classes.push(La.primaryClass)}}const Ja=La,Ua={AsyncApi2Element:{asyncapi:(...e)=>new Q(...e),identifier:(...e)=>new ce(...e),info:(...e)=>new ae(...e),servers:(...e)=>new So(...e),defaultContentType:(...e)=>new re(...e),channels:(...e)=>new te(...e),components:(...e)=>new se(...e),tags:(...e)=>new Eo(...e),externalDocs:(...e)=>new oe(...e)},InfoElement:{contact:(...e)=>new ne(...e),license:(...e)=>new le(...e)},ServersElement:{"[key: *]":function(...e){return new vo(...e)}},ServerElement:{variables:(...e)=>new Sa(...e),security:(...e)=>new Ma(...e),tags:(...e)=>new Eo(...e),bindings:(...e)=>new xo(...e)},ServerVariableElement:{enum:(...e)=>new ws(...e),examples:(...e)=>new ws(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new ws(...e)}},ChannelsElement:{"[key: *]":function(...e){return new ee(...e)}},ChannelItemElement:{servers:(...e)=>new Ba(...e),subscribe:(...e)=>new fe(...e),publish:(...e)=>new fe(...e),parameters:(...e)=>new ve(...e),bindings:(...e)=>new Z(...e)},OperationElement:{tags:(...e)=>new Eo(...e),externalDocs:(...e)=>new oe(...e),bindings:(...e)=>new ye(...e),traits:(...e)=>new ka(...e),message:(...e)=>new ue(...e)},ComponentsElement:{schemas:(...e)=>new Kc(...e),servers:(...e)=>new Yc(...e),serverVariables:(...e)=>new Zc(...e),messages:(...e)=>new ta(...e),securitySchemes:(...e)=>new na(...e),parameters:(...e)=>new ra(...e),correlationIds:(...e)=>new ca(...e),operationTraits:(...e)=>new la(...e),messageTraits:(...e)=>new da(...e),serverBindings:(...e)=>new ha(...e),channelBindings:(...e)=>new ga(...e),operationBindings:(...e)=>new ya(...e),messageBindings:(...e)=>new va(...e)},TagElement:{externalDocs:(...e)=>new oe(...e)},MessageElement:{headers:(...e)=>new fo(...e),correlationId:(...e)=>new ie(...e),tags:(...e)=>new Eo(...e),externalDocs:(...e)=>new oe(...e),bindings:(...e)=>new de(...e),examples:(...e)=>new ws(...e),traits:(...e)=>new ws(...e),payload(...e){const{context:t}=this,s=mn(f.latest(),sn(t.schemaFormat));return f.includes(s)?new fo(...e):new K(...e)}},SecuritySchemeElement:{flows:(...e)=>new ge(...e)},OAuthFlowsElement:{implicit:(...e)=>new me(...e),password:(...e)=>new me(...e),clientCredentials:(...e)=>new me(...e),authorizationCode:(...e)=>new me(...e)},OAuthFlow:{scopes:(...e)=>new Oa(...e)},ParametersElement:{"[key: *]":function(...e){return new ve(...e)}},ParameterElement:{schema:(...e)=>new fo(...e)},OperationTraitElement:{tags:(...e)=>new Eo(...e),externalDocs:(...e)=>new oe(...e),bindings:(...e)=>new ye(...e)},MessageTraitElement:{headers:(...e)=>new fo(...e),correlationId:(...e)=>new ie(...e),tags:(...e)=>new Eo(...e),externalDocs:(...e)=>new oe(...e),bindings:(...e)=>new de(...e),examples:(...e)=>new ws(...e)},MessageExampleElement:{headers:(...e)=>new K(...e)},OperationBindingsElement:{http:(...e)=>new Jo(...e),ws:(...e)=>new Hc(...e),kafka:(...e)=>new tc(...e),anypointmq:(...e)=>new Io(...e),amqp:(...e)=>new ko(...e),amqp1:(...e)=>new $o(...e),mqtt:(...e)=>new lc(...e),mqtt5:(...e)=>new hc(...e),nats:(...e)=>new yc(...e),jms:(...e)=>new Yo(...e),sns:(...e)=>new Mc(...e),solace:(...e)=>new Pc(...e),sqs:(...e)=>new Dc(...e),stomp:(...e)=>new _c(...e),redis:(...e)=>new Oc(...e),mercure:(...e)=>new rc(...e),googlepubsub:(...e)=>new No(...e),ibmmq:(...e)=>new Go(...e),pulsar:(...e)=>new Sc(...e)},MessageBindingsElement:{http:(...e)=>new Lo(...e),ws:(...e)=>new Uc(...e),kafka:(...e)=>new ec(...e),anypointmq:(...e)=>new Fo(...e),amqp:(...e)=>new jo(...e),amqp1:(...e)=>new Co(...e),mqtt:(...e)=>new ac(...e),mqtt5:(...e)=>new pc(...e),nats:(...e)=>new fc(...e),jms:(...e)=>new Xo(...e),sns:(...e)=>new qc(...e),solace:(...e)=>new Ac(...e),sqs:(...e)=>new Tc(...e),stomp:(...e)=>new Rc(...e),redis:(...e)=>new Ec(...e),mercure:(...e)=>new ic(...e),ibmmq:(...e)=>new zo(...e),googlepubsub:(...e)=>new Vo(...e),pulsar:(...e)=>new xc(...e)},ServerBindingsElement:{http:(...e)=>new Uo(...e),ws:(...e)=>new zc(...e),kafka:(...e)=>new sc(...e),anypointmq:(...e)=>new To(...e),amqp:(...e)=>new qo(...e),amqp1:(...e)=>new Ao(...e),mqtt:(...e)=>new uc(...e),mqtt5:(...e)=>new mc(...e),nats:(...e)=>new bc(...e),jms:(...e)=>new Qo(...e),sns:(...e)=>new Cc(...e),solace:(...e)=>new Fc(...e),sqs:(...e)=>new Vc(...e),stomp:(...e)=>new Lc(...e),redis:(...e)=>new jc(...e),mercure:(...e)=>new oc(...e),ibmmq:(...e)=>new Wo(...e),googlepubsub:(...e)=>new Ro(...e),pulsar:(...e)=>new wc(...e)},ChannelBindingsElement:{http:(...e)=>new _o(...e),ws:(...e)=>new Jc(...e),kafka:(...e)=>new Zo(...e),anypointmq:(...e)=>new Po(...e),amqp:(...e)=>new Oo(...e),amqp1:(...e)=>new Mo(...e),mqtt:(...e)=>new cc(...e),mqtt5:(...e)=>new dc(...e),nats:(...e)=>new gc(...e),jms:(...e)=>new Ko(...e),sns:(...e)=>new kc(...e),solace:(...e)=>new $c(...e),sqs:(...e)=>new Ic(...e),stomp:(...e)=>new Nc(...e),redis:(...e)=>new Bc(...e),mercure:(...e)=>new nc(...e),ibmmq:(...e)=>new Ho(...e),googlepubsub:(...e)=>new Do(...e),pulsar:(...e)=>new vc(...e)},SchemaElement:{allOf(...e){const t=new ws(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new ws(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new ws(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new fo(...e),if:(...e)=>new fo(...e),then:(...e)=>new fo(...e),else:(...e)=>new fo(...e),enum:(...e)=>new ws(...e),items:(...e)=>new fo(...e),additionalItems:(...e)=>new fo(...e),contains:(...e)=>new fo(...e),required(...e){const t=new ws(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new K(...e);return t.classes.push("json-schema-properties"),t},patternProperties(...e){const t=new K(...e);return t.classes.push("json-schema-patternProperties"),t},additionalProperties:(...e)=>new fo(...e),dependencies(...e){const t=new K(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new fo(...e),examples(...e){const t=new ws(...e);return t.classes.push("json-schema-examples"),t},definitions(...e){const t=new K(...e);return t.classes.push("json-schema-definitions"),t},externalDocs:(...e)=>new oe(...e)},HttpOperationBindingElement:{query:(...e)=>new fo(...e)},HttpMessageBindingElement:{headers:(...e)=>new fo(...e)},WebSocketChannelBindingElement:{query:(...e)=>new fo(...e),headers:(...e)=>new fo(...e)},KafkaOperationBindingElement:{groupId:(...e)=>new fo(...e),clientId:(...e)=>new fo(...e)},KafkaMessageBindingElement:{key:(...e)=>new fo(...e)},AnypointmqMessageBindingElement:{headers:(...e)=>new fo(...e)},AmqpChannelBindingElement:{exchange:(...e)=>new K(...e),queue:(...e)=>new K(...e)},AmqpOperationBindingElement:{cc:(...e)=>new ws(...e),bcc:(...e)=>new ws(...e)},IbmmqChannelBindingElement:{queue:(...e)=>new K(...e),topic:(...e)=>new K(...e)},MqttServerBindingElement:{lastWill:(...e)=>new K(...e)},SolaceOperationBindingElement:{destinations:(...e)=>new ws(...e)},GooglepubsubChannelBindingElement:{labels:(...e)=>new K(...e),messageStoragePolicy:(...e)=>new K(...e),schemaSettings:(...e)=>new K(...e)},GooglepubsubMessageBindingElement:{attributes:(...e)=>new K(...e),schema:(...e)=>new K(...e)},PulsarChannelBindingElement:{"geo-replication":function(...e){return new ws(...e)},retention:(...e)=>new K(...e)},TagsElement:{"<*>":function(...e){return new Bo(...e)}},[Kc.primaryClass]:{"[key: *]":function(...e){return new fo(...e)}},[Yc.primaryClass]:{"[key: *]":function(...e){return new vo(...e)}},[Zc.primaryClass]:{"[key: *]":function(...e){return new wo(...e)}},[ta.primaryClass]:{"[key: *]":function(...e){return new ue(...e)}},[na.primaryClass]:{"[key: *]":function(...e){return new bo(...e)}},[ra.primaryClass]:{"[key: *]":function(...e){return new ve(...e)}},[ca.primaryClass]:{"[key: *]":function(...e){return new ie(...e)}},[la.primaryClass]:{"[key: *]":function(...e){return new be(...e)}},[da.primaryClass]:{"[key: *]":function(...e){return new he(...e)}},[ha.primaryClass]:{"[key: *]":function(...e){return new xo(...e)}},[ga.primaryClass]:{"[key: *]":function(...e){return new Z(...e)}},[ya.primaryClass]:{"[key: *]":function(...e){return new ye(...e)}},[va.primaryClass]:{"[key: *]":function(...e){return new de(...e)}},[Sa.primaryClass]:{"[key: *]":function(...e){return new wo(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new fo(...e)}},[Ma.primaryClass]:{"<*>":function(...e){return new yo(...e)}},[ka.primaryClass]:{"<*>":function(...e){return new be(...e)}},[$a.primaryClass]:{oneOf:(...e)=>new Pa(...e)},[Pa.primaryClass]:{"<*>":function(...e){return new ue(...e)}},[Ia.primaryClass]:{"<*>":function(...e){return new yo(...e)}},[Da.primaryClass]:{"<*>":function(...e){return new yo(...e)}},[Na.primaryClass]:{"<*>":function(...e){return new pe(...e)}},[_a.primaryClass]:{"<*>":function(...e){return new he(...e)}},[Ja.primaryClass]:{"<*>":function(...e){return new pe(...e)}},"json-schema-allOf":{"<*>":function(...e){return new fo(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new fo(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new fo(...e)}}},Ha=(e,t)=>{const s=ai(e),n=e.isMetaEmpty?void 0:e.classes.at(0),i=Ua[s]||Ua[n];return void 0===i?void 0:Object.hasOwn(i,"[key: *]")?i["[key: *]"]:i[t]},za=()=>()=>({visitor:{StringElement(e){const t=e.node;if(!(e=>Es(e)&&Ps(e,["yaml-e-node","yaml-e-scalar"]))(t))return;const s=e.getAncestorNodes().reverse().filter(Bs),n=s.at(-1);let i,r;if(qs(n)?(r=t,i=Ha(n,"<*>")):Cs(n)&&(r=s.at(-2),i=Ha(r,sn(n.key))),"function"!=typeof i)return;const o=i.call({context:r},void 0,t.isMetaEmpty?void 0:t.meta.cloneDeep(),t.isAttributesEmpty?void 0:Hs(t.attributes));Vs.transfer(t,o),un.transfer(t,o),e.replaceWith(o)}}});const Ga=e=>ks(e)&&Ps(e,["boolean-json-schema"]),Wa=e=>e instanceof X,Ka=e=>e instanceof Q,Xa=e=>e instanceof Z,Ya=e=>e instanceof ee,Qa=e=>e instanceof te,Za=e=>e instanceof se,el=e=>e instanceof ne,tl=e=>e instanceof ce,sl=e=>e instanceof ae,nl=e=>e instanceof le,il=e=>e instanceof fe,rl=e=>e instanceof ve,ol=e=>e instanceof xe,cl=e=>e instanceof Se,al=e=>e instanceof fo,ll=e=>e instanceof yo,ul=e=>e instanceof vo,dl=e=>e instanceof xo,pl=e=>e instanceof So,hl=e=>e instanceof wo;var ml=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=dt,e.prototype["@@transducer/result"]=pt,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?Mr(s):s},e}();function gl(e){return function(t){return new ml(e,t)}}const fl=y(lt(["take"],gl,function(e,t){return Ze(0,e<0?1/0:e,t)}));const yl=y(function(e,t){return P(fl(e.length,t),e)}),bl=e=>Ms(e)&&e.hasKey("$ref"),vl=e=>Es(e.key)&&yl("x-",sn(e.key));const xl=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=an(t.attributes,e.attributes),Vs.transfer(e,t),un.transfer(e,t)}};const Sl=class extends xl{enter(e){this.element=this.consume?e.node:Hs(e.node),e.stop()}};const wl=class extends xl{specObj;passingOptionsNames=["specObj","consume"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Te(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return xt(Xt,["visitors",...e],this.specObj)?Te(["visitors",...e],this.specObj):Te(["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 Sl&&n?.constructor===Sl?this.consume?t:Hs(t):(xi(t,n),n.element)}};const Bl=class extends wl{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Er(e,hn(t),gn)),n=Vr(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const El=class extends wl{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=vl;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),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,i)=>{const r=sn(t);if(Es(t)&&n.includes(r)&&!this.ignoredFields.includes(r)){const n=this.toRefractedElement([...s,"fixedFields",r],e),o=new W(this.consume?t:Hs(t),n);this.copyMetaAndAttributes(i,o),this.element.content.push(o),this.consume&&this.consumeSafe&&!i.isFrozen&&(i.value=void 0)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(i)){const e=this.toRefractedElement(["document","extension"],i);this.element.content.push(e),this.consume&&this.consumeSafe&&!i.isFrozen&&(i.value=void 0)}else this.ignoredFields.includes(r)||this.element.content.push(this.consume?i:Hs(i))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ol=class extends wl{specPath;ignoredFields;fieldPatternPredicate=Ui;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=vl;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:n,specificationExtensionPredicate:i,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof i&&(this.specificationExtensionPredicate=i)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=sn(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),i=this.toRefractedElement(n,e),r=new W(this.consume?t:Hs(t),i);this.copyMetaAndAttributes(s,r),r.classes.push("patterned-field"),this.element.content.push(r),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 jl=class extends Ol{constructor(e){super(e),this.fieldPatternPredicate=On}};function kl(e,t,s){var n,i=typeof e;switch(i){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):i in s._items?e in s._items[i]||(t&&(s._items[i][e]=!0),!1):(t&&(s._items[i]={},s._items[i][e]=!0),!1);case"boolean":if(i in s._items){var r=e?1:0;return!!s._items[i][r]||(t&&(s._items[i][r]=!0),!1)}return t&&(s._items[i]=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):i in s._items?!!it(e,s._items[i])||(t&&s._items[i].push(e),!1):(t&&(s._items[i]=[e]),!1);case"undefined":return!!s._items[i]||(t&&(s._items[i]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in s._items?!!it(e,s._items[i])||(t&&s._items[i].push(e),!1):(t&&(s._items[i]=[e]),!1)}}const ql=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!kl(e,!0,this)},e.prototype.has=function(e){return kl(e,!1,this)},e}();const Ml=y(function(e,t){for(var s=[],n=0,i=e.length,r=t.length,o=new ql,c=0;c<r;c+=1)o.add(t[c]);for(;n<i;)o.add(e[n])&&(s[s.length]=e[n]),n+=1;return s}),Cl=Li(wl,Sl),$l=Li(El,Sl),Al=Li(Ol,Sl),Pl=Li(jl,Sl),Fl=Li(El,Ol),Il=Li(Bl,Sl);const Tl=class extends Fl{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,...Ml(t.keys(),s)],El.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,Ol.prototype.ObjectElement.call(this,e);const i=t.keys();this.element.content.sort((e,t)=>i.indexOf(sn(e.key))-i.indexOf(sn(t.key)))}catch(e){throw this.specPath=s,e}e.stop()}};const Dl=class extends wl{MemberElement(e){const t=e.node;this.element=Hs(t),this.element.classes.push("specification-extension"),e.stop()}};function Vl(e){return void 0===e?new xs:Nl(e)}function Nl(e){if(e instanceof H)return e;if("string"==typeof e)return new Y(e);if("number"==typeof e)return new vs(e);if("boolean"==typeof e)return new Ss(e);if(null===e)return new xs;if(Array.isArray(e))return new ws(e.map(Vl));if("object"==typeof e)return new K(e);throw new Error("Cannot refract value of type "+typeof e)}H.prototype.ObjectElement=K,H.prototype.ArrayElement=ws,H.prototype.RefElement=Xs,H.prototype.MemberElement=W,H.prototype.refract=Nl,N.prototype.Element=H,N.prototype.cloneDeepElement=e=>Hs(e);var Rl=Ce(function(e,t,s){var n,i={};for(n in s=s||{},t=t||{})x(n,t)&&(i[n]=x(n,s)?e(n,t[n],s[n]):t[n]);for(n in s)x(n,s)&&!x(n,i)&&(i[n]=s[n]);return i});const _l=Rl;var Ll=Ce(function e(t,s,n){return _l(function(s,n,i){return ut(n)&&ut(i)?e(t,n,i):t(s,n,i)},s,n)});const Jl=Ll;const Ul=y(function(e,t){return Jl(function(e,t,s){return s},e,t)});const Hl=Ce(function(e,t,s){return mn(e,Pe(t,s))});const zl=Ze(0,-1);var Gl=y(function(e,t){return e.apply(this,t)});const Wl=Gl;const Kl=Rt(Xt);const Xl=Vt(Ar,xn);const Yl=Ct(3,function(e,t,s){var n=Te(e,s),i=Te(zl(e),s);if(!Kl(n)&&!Xl(e)){var r=ze(n,i);return Wl(r,t)}});const Ql=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 Vs)){const s=Vs.from(e);s&&(t.meta||(t.meta={}),t.meta.__mappings__=this.serialise(s))}if(!(e instanceof un)){const s=un.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 i=e.meta;if(e.meta?.__mappings__||e.meta?.__styles__){const{__mappings__:t,__styles__:r,...o}=e.meta;s=t,n=r,i=Object.keys(o).length>0?o:void 0}const r=e.__meta_raw__?new Set(e.__meta_raw__):void 0;if(i)for(const[e,s]of Object.entries(i)){const n=this.deserialise(s);t.setMetaProperty(e,r?.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[i,r]of Object.entries(e.meta))if(r instanceof this.namespace.elements.Element)t[i]=this.serialise(r),n=!0;else if(void 0!==r){const o=e.refract(r);t[i]=this.serialise(o),s.push(i),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]))})}},Zl=e=>null===e,eu=e=>"string"==typeof e,tu=e=>"number"==typeof e,su=e=>"boolean"==typeof e,nu=e=>null!==e&&"object"==typeof e;class iu{elementMap={};elementDetection=[];Element;KeyValuePair;_elements;_attributeElementKeys=[];_attributeElementArrayKeys=[];constructor(e){this.Element=H,this.KeyValuePair=R,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",xs).register("string",Y).register("number",vs).register("boolean",Ss).register("array",ws).register("object",K).register("member",W).register("ref",Xs).register("link",Ks).register("sourceMap",Vs).register("annotation",Ys).register("comment",Qs).register("parseResult",Zs),this.detect(Zl,xs,!1).detect(eu,Y,!1).detect(tu,vs,!1).detect(su,Ss,!1).detect(Array.isArray,ws,!1).detect(nu,K,!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 Ql(this)}}Ql.prototype.Namespace=iu;const ru=iu,ou=new ru,cu={isElement:Bs,isStringElement:Es,isNumberElement:Os,isNullElement:js,isBooleanElement:ks,isArrayElement:qs,isObjectElement:Ms,isMemberElement:Cs,isPrimitiveElement:e=>Ms(e)&&"object"===e.element||qs(e)&&"array"===e.element||ks(e)&&"boolean"===e.element||Os(e)&&"number"===e.element||Es(e)&&"string"===e.element||js(e)&&"null"===e.element||Cs(e)&&"member"===e.element,isLinkElement:en,isRefElement:tn,isAnnotationElement:e=>e instanceof Ys,isCommentElement:e=>e instanceof Qs,isParseResultElement:e=>e instanceof Zs,isSourceMapElement:e=>e instanceof Vs,hasElementStyle:$s,hasElementSourceMap:As,includesSymbols:(e,t)=>{if(0===t.length)return!0;if(!e.hasAttributesProperty("symbols"))return!1;const s=e.attributes.get("symbols");return!!qs(s)&&t.every(e=>s.includes(e))},includesClasses:Ps},au={toolboxCreator:()=>({predicates:cu,namespace:ou}),visitorOptions:{exposeEdits:!0}},lu=(e,t,s={})=>{if(0===t.length)return e;const n=Ul(au,s),{toolboxCreator:i,visitorOptions:r,traverseOptions:o}=n,c=i(),a=t.map(e=>e(c)),l=gi(a.map(Hl({},"visitor")),r);a.forEach(Yl(["pre"],[]));const u=xi(e,l,o);return a.forEach(Yl(["post"],[])),u};lu[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=Ul(au,s),{toolboxCreator:i,visitorOptions:r,traverseOptions:o}=n,c=i(),a=t.map(e=>e(c)),l=fi(a.map(Hl({},"visitor")),r);await Promise.allSettled(a.map(Yl(["pre"],[])));const u=await Si(e,l,o);return await Promise.allSettled(a.map(Yl(["post"],[]))),u};const uu=class extends $l{constructor(e){super(e),this.element=new X,this.consumeSafe=!0,this.specPath=hn(["document","objects","AsyncApi"]),this.canSupportSpecificationExtensions=!0}};const du=class extends Cl{StringElement(e){const t=e.node,s=new Q(sn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const pu=class extends Cl{StringElement(e){const t=e.node,s=new ce(sn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const hu=class extends $l{constructor(e){super(e),this.element=new ae,this.specPath=hn(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};const mu=class extends Sl{StringElement(e){const t=e.node;this.element=new Y(sn(t)),this.copyMetaAndAttributes(t,this.element),this.element.classes.push("api-version"),this.element.classes.push("version"),e.stop()}};const gu=class extends $l{constructor(e){super(e),this.element=new ne,this.specPath=hn(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}};const fu=class extends $l{constructor(e){super(e),this.element=new ie,this.specPath=hn(["document","objects","CorrelationID"]),this.canSupportSpecificationExtensions=!0}};const yu=class extends Cl{StringElement(e){const t=e.node,s=new re(sn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const bu=class extends $l{constructor(e){super(e),this.element=new le,this.specPath=hn(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}};const vu=class extends $l{constructor(e){super(e),this.element=new ge,this.specPath=hn(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}};const xu=class extends $l{constructor(e){super(e),this.element=new me,this.specPath=hn(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};const Su=class extends Pl{constructor(e){super(e),this.element=new Oa,this.specPath=hn(["value"])}};const wu=y(function(e,t){if(s=e,"[object RegExp]"!==Object.prototype.toString.call(s))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+vt(e));var s;return F(e).test(t)});const Bu=class extends Al{constructor(e){super(e),this.element=new So,this.element.classes.push("servers"),this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Server"],this.canSupportSpecificationExtensions=!1,this.fieldPatternPredicate=wu(/^[A-Za-z0-9_-]+$/)}ObjectElement(e){Al.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","server")})}};const Eu=class extends $l{constructor(e){super(e),this.element=new vo,this.specPath=hn(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};const Ou=class extends Sl{StringElement(e){super.enter(e),this.element.classes.push("server-url")}};const ju=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","ServerBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","serverBindings")}};const ku=class extends Pl{constructor(e){super(e),this.element=new Sa,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","ServerVariable"]}};const qu=class extends Cl{constructor(e){super(e),this.element=new Ma}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Mu=class extends $l{constructor(e){super(e),this.element=new wo,this.specPath=hn(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};const Cu=class extends $l{constructor(e){super(e),this.element=new xo,this.specPath=hn(["document","objects","ServerBindings"]),this.canSupportSpecificationExtensions=!0}};const $u=class extends $l{constructor(e){super(e),this.element=new bo,this.specPath=hn(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}};const Au=class extends Pl{constructor(e){super(e),this.element=new yo,this.specPath=hn(["value"])}};const Pu=class extends $l{constructor(e){super(e),this.element=new Se,this.specPath=hn(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){$l.prototype.ObjectElement.call(this,e),Es(this.element.$ref)&&this.element.classes.push("reference-element")}};const Fu=class extends Sl{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Iu=class extends $l{constructor(e){super(e),this.specPath=hn(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){this.element=new fo,$l.prototype.ObjectElement.call(this,e)}BooleanElement(e){super.enter(e),this.element.classes.push("boolean-json-schema")}},Tu=ho.visitors.JSONSchemaOrJSONReferenceVisitor;const Du=class extends Tu{enter(e){Tu.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","schema")}},Vu=ho.visitors.document.objects.JSONSchema.fixedFields.allOf;const Nu=class extends Vu{ArrayElement(e){Vu.prototype.ArrayElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Ru=ho.visitors.document.objects.JSONSchema.fixedFields.anyOf;const _u=class extends Ru{ArrayElement(e){Ru.prototype.ArrayElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Lu=ho.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Ju=class extends Lu{ArrayElement(e){Lu.prototype.ArrayElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Uu=ho.visitors.document.objects.JSONSchema.fixedFields.definitions;const Hu=class extends Uu{ObjectElement(e){Uu.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},zu=ho.visitors.document.objects.JSONSchema.fixedFields.dependencies;const Gu=class extends zu{ObjectElement(e){zu.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Wu=ho.visitors.document.objects.JSONSchema.fixedFields.items.$visitor;const Ku=class extends Wu{ObjectElement(e){Wu.prototype.ObjectElement.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","schema")}ArrayElement(e){Wu.prototype.ArrayElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Xu=ho.visitors.document.objects.JSONSchema.fixedFields.patternProperties;const Yu=class extends Xu{ObjectElement(e){Xu.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},Qu=ho.visitors.document.objects.JSONSchema.fixedFields.properties;const Zu=class extends Qu{ObjectElement(e){Qu.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}},ed=At(e=>e===ho.visitors.JSONSchemaOrJSONReferenceVisitor?Du:e,ho.visitors.document.objects.JSONSchema.fixedFields);const td=class extends Al{constructor(e){super(e),this.element=new xe,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Parameter"],this.canSupportSpecificationExtensions=!1,this.fieldPatternPredicate=e=>"string"==typeof e&&/^[A-Za-z0-9_-]+$/.test(e)}ObjectElement(e){Al.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const sd=class extends $l{constructor(e){super(e),this.element=new ve,this.specPath=hn(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}};const nd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","Schema"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","schema")}};const id=class extends $l{constructor(e){super(e),this.element=new oe,this.specPath=hn(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}};const rd=class extends $l{constructor(e){super(e),this.element=new se,this.specPath=hn(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}};const od=class extends Pl{constructor(e){super(e),this.element=new Kc,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","schema")})}};const cd=class extends Pl{constructor(e){super(e),this.element=new Yc,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Server"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","server")})}};const ad=class extends Pl{constructor(e){super(e),this.element=new Zc,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","ServerVariable"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","serverVariable")})}};class ld extends K{static primaryClass="components-channels";constructor(e,t,s){super(e,t,s),this.classes.push(ld.primaryClass)}}const ud=ld;const dd=class extends Pl{constructor(e){super(e),this.element=new ud,this.specPath=hn(["document","objects","ChannelItem"])}};const pd=class extends Pl{constructor(e){super(e),this.element=new ta,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Message"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","message")})}};const hd=class extends Pl{constructor(e){super(e),this.element=new na,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","securityScheme")})}};const md=class extends Pl{constructor(e){super(e),this.element=new ra,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const gd=class extends Pl{constructor(e){super(e),this.element=new ca,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","CorrelationID"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","correlationID")})}};const fd=class extends Pl{constructor(e){super(e),this.element=new la,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","OperationTrait"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","operationTrait")})}};const yd=class extends Pl{constructor(e){super(e),this.element=new da,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","MessageTrait"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","messageTrait")})}};const bd=class extends Pl{constructor(e){super(e),this.element=new ha,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","ServerBindings"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","serverBindings")})}};const vd=class extends Pl{constructor(e){super(e),this.element=new ga,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","ChannelBindings"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","channelBindings")})}};const xd=class extends Pl{constructor(e){super(e),this.element=new ya,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","OperationBindings"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","operationBindings")})}};const Sd=class extends Pl{constructor(e){super(e),this.element=new va,this.specPath=e=>bl(e)?["document","objects","Reference"]:["document","objects","MessageBindings"]}ObjectElement(e){Pl.prototype.ObjectElement.call(this,e),this.element.filter(cl).forEach(e=>{e.meta.set("referenced-element","messageBindings")})}};const wd=class extends $l{constructor(e){super(e),this.element=new fe,this.specPath=hn(["document","objects","Operation"])}};const Bd=class extends Cl{constructor(e){super(e),this.element=new Ia}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ed=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","OperationBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","operationBindings")}};const Od=class extends Cl{constructor(e){super(e),this.element=new ka}ArrayElement(e){const t=e.node;t.forEach(e=>{let t;bl(e)?(t=this.toRefractedElement(["document","objects","Reference"],e),t.meta.set("referenced-element","operationTrait")):t=this.toRefractedElement(["document","objects","OperationTrait"],e),this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const jd=class extends Cl{ObjectElement(e){const t=e.node;if(bl(t))this.element=this.toRefractedElement(["document","objects","Reference"],t),this.element.meta.set("referenced-element","message");else if(qs(t.get("oneOf"))){this.element=new $a;const e=new Pa;t.get("oneOf").forEach(t=>{let s;const n=t;bl(n)?(s=this.toRefractedElement(["document","objects","Reference"],n),s.meta.set("referenced-element","message")):s=this.toRefractedElement(["document","objects","Message"],n),e.push(s)}),this.element.oneOf=e}else this.element=this.toRefractedElement(["document","objects","Message"],t);this.copyMetaAndAttributes(t,this.element),e.stop()}};const kd=class extends Cl{constructor(e){super(e),this.element=new Eo}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const qd=class extends $l{constructor(e){super(e),this.element=new Bo,this.specPath=hn(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}};const Md=class extends Pl{constructor(e){super(e),this.element=new te,this.specPath=hn(["document","objects","ChannelItem"])}};const Cd=class extends $l{constructor(e){super(e),this.element=new Z,this.specPath=hn(["document","objects","ChannelBindings"]),this.canSupportSpecificationExtensions=!0}};const $d=class extends $l{constructor(e){super(e),this.element=new ee,this.specPath=hn(["document","objects","ChannelItem"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){$l.prototype.ObjectElement.call(this,e),Es(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.meta.set("referenced-element","channelItem"))}};const Ad=class extends Sl{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Pd=class extends Cl{constructor(e){super(e),this.element=new Ba}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Hs(e);Es(t)&&t.classes.push("server-name"),this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Fd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","ChannelBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","channelBindings")}};const Id=class extends $l{constructor(e){super(e),this.element=new de,this.specPath=hn(["document","objects","MessageBindings"]),this.canSupportSpecificationExtensions=!0}};const Td=class extends $l{constructor(e){super(e),this.element=new pe,this.specPath=hn(["document","objects","MessageExample"]),this.canSupportSpecificationExtensions=!0}};const Dd=class extends $l{constructor(e){super(e),this.element=new he,this.specPath=hn(["document","objects","MessageTrait"]),this.canSupportSpecificationExtensions=!0}};const Vd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","Schema"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","schema")}};const Nd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","CorrelationID"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","correlationID")}};const Rd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","MessageBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","messageBindings")}};const _d=class extends Cl{constructor(e){super(e),this.element=new Ja}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","MessageExample"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ld=class extends $l{constructor(e){super(e),this.element=new ue,this.specPath=hn(["document","objects","Message"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){$l.prototype.ObjectElement.call(this,e);const t=e.node,s=this.element.get("payload"),n=mn(f.latest(),sn(t.get("schemaFormat")));if(f.includes(n)&&bl(s)){const e=this.toRefractedElement(["document","objects","Reference"],s);e.meta.set("referenced-element","schema"),this.element.payload=e}else f.includes(n)&&Ms(this.element.payload)&&(this.element.payload=this.toRefractedElement(["document","objects","Schema"],s))}};const Jd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","Schema"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","schema")}};const Ud=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","CorrelationID"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","correlationID")}};const Hd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","MessageBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","messageBindings")}};const zd=class extends Cl{constructor(e){super(e),this.element=new Na}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","MessageExample"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Gd=class extends Cl{constructor(e){super(e),this.element=new _a}ArrayElement(e){const t=e.node;t.forEach(e=>{let t;bl(e)?(t=this.toRefractedElement(["document","objects","Reference"],e),t.meta.set("referenced-element","messageTrait")):t=this.toRefractedElement(["document","objects","MessageTrait"],e),this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Wd=class extends $l{constructor(e){super(e),this.element=new ye,this.specPath=hn(["document","objects","OperationBindings"]),this.canSupportSpecificationExtensions=!0}};const Kd=class extends $l{constructor(e){super(e),this.element=new be,this.specPath=hn(["document","objects","OperationTrait"]),this.canSupportSpecificationExtensions=!0}};const Xd=class extends Cl{constructor(e){super(e),this.element=new Da}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Yd=class extends Il{constructor(e){super(e),this.alternator=[{predicate:bl,specPath:["document","objects","Reference"]},{predicate:Br,specPath:["document","objects","OperationBindings"]}]}ObjectElement(e){Bl.prototype.enter.call(this,e),cl(this.element)&&this.element.meta.set("referenced-element","operationBindings")}};const Qd=class extends $l{constructor(e){super(e),this.element=new Oo,this.specPath=hn(["document","objects","bindings","amqp","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Zd=class extends $l{constructor(e){super(e),this.element=new jo,this.specPath=hn(["document","objects","bindings","amqp","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const ep=class extends $l{constructor(e){super(e),this.element=new ko,this.specPath=hn(["document","objects","bindings","amqp","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const tp=class extends $l{constructor(e){super(e),this.element=new qo,this.specPath=hn(["document","objects","bindings","amqp","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const sp=class extends $l{constructor(e){super(e),this.element=new Mo,this.specPath=hn(["document","objects","bindings","amqp1","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const np=class extends $l{constructor(e){super(e),this.element=new Co,this.specPath=hn(["document","objects","bindings","amqp1","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const ip=class extends $l{constructor(e){super(e),this.element=new $o,this.specPath=hn(["document","objects","bindings","amqp1","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const rp=class extends $l{constructor(e){super(e),this.element=new Ao,this.specPath=hn(["document","objects","bindings","amqp1","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const op=class extends $l{constructor(e){super(e),this.element=new Po,this.specPath=hn(["document","objects","bindings","anypointmq","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const cp=class extends $l{constructor(e){super(e),this.element=new Fo,this.specPath=hn(["document","objects","bindings","anypointmq","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const ap=class extends $l{constructor(e){super(e),this.element=new Io,this.specPath=hn(["document","objects","bindings","anypointmq","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const lp=class extends $l{constructor(e){super(e),this.element=new To,this.specPath=hn(["document","objects","bindings","anypointmq","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const up=class extends $l{constructor(e){super(e),this.element=new _o,this.specPath=hn(["document","objects","bindings","http","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const dp=class extends $l{constructor(e){super(e),this.element=new Lo,this.specPath=hn(["document","objects","bindings","http","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const pp=class extends $l{constructor(e){super(e),this.element=new Jo,this.specPath=hn(["document","objects","bindings","http","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const hp=class extends $l{constructor(e){super(e),this.element=new Uo,this.specPath=hn(["document","objects","bindings","http","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const mp=class extends $l{constructor(e){super(e),this.element=new Do,this.specPath=hn(["document","objects","bindings","googlepubsub","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const gp=class extends $l{constructor(e){super(e),this.element=new Vo,this.specPath=hn(["document","objects","bindings","googlepubusb","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const fp=class extends $l{constructor(e){super(e),this.element=new No,this.specPath=hn(["document","objects","bindings","googlepubsub","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const yp=class extends $l{constructor(e){super(e),this.element=new Ro,this.specPath=hn(["document","objects","bindings","googlepubsub","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const bp=class extends $l{constructor(e){super(e),this.element=new Ho,this.specPath=hn(["document","objects","bindings","ibmmq","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const vp=class extends $l{constructor(e){super(e),this.element=new zo,this.specPath=hn(["document","objects","bindings","ibmmq","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const xp=class extends $l{constructor(e){super(e),this.element=new Go,this.specPath=hn(["document","objects","bindings","ibmmq","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Sp=class extends $l{constructor(e){super(e),this.element=new Wo,this.specPath=hn(["document","objects","bindings","ibmmq","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const wp=class extends $l{constructor(e){super(e),this.element=new Ko,this.specPath=hn(["document","objects","bindings","jms","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Bp=class extends $l{constructor(e){super(e),this.element=new Xo,this.specPath=hn(["document","objects","bindings","jms","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Ep=class extends $l{constructor(e){super(e),this.element=new Yo,this.specPath=hn(["document","objects","bindings","jms","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Op=class extends $l{constructor(e){super(e),this.element=new Qo,this.specPath=hn(["document","objects","bindings","jms","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const jp=class extends $l{constructor(e){super(e),this.element=new Zo,this.specPath=hn(["document","objects","bindings","kafka","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const kp=class extends $l{constructor(e){super(e),this.element=new ec,this.specPath=hn(["document","objects","bindings","kafka","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const qp=class extends $l{constructor(e){super(e),this.element=new tc,this.specPath=hn(["document","objects","bindings","kafka","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Mp=class extends $l{constructor(e){super(e),this.element=new sc,this.specPath=hn(["document","objects","bindings","kafka","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const Cp=class extends $l{constructor(e){super(e),this.element=new nc,this.specPath=hn(["document","objects","bindings","mercure","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const $p=class extends $l{constructor(e){super(e),this.element=new ic,this.specPath=hn(["document","objects","bindings","mercure","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Ap=class extends $l{constructor(e){super(e),this.element=new rc,this.specPath=hn(["document","objects","bindings","mercure","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Pp=class extends $l{constructor(e){super(e),this.element=new oc,this.specPath=hn(["document","objects","bindings","mercure","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const Fp=class extends $l{constructor(e){super(e),this.element=new cc,this.specPath=hn(["document","objects","bindings","mqtt","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Ip=class extends $l{constructor(e){super(e),this.element=new ac,this.specPath=hn(["document","objects","bindings","mqtt","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Tp=class extends $l{constructor(e){super(e),this.element=new lc,this.specPath=hn(["document","objects","bindings","mqtt","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Dp=class extends $l{constructor(e){super(e),this.element=new uc,this.specPath=hn(["document","objects","bindings","mqtt","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const Vp=class extends $l{constructor(e){super(e),this.element=new dc,this.specPath=hn(["document","objects","bindings","mqtt5","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Np=class extends $l{constructor(e){super(e),this.element=new pc,this.specPath=hn(["document","objects","bindings","mqtt5","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Rp=class extends $l{constructor(e){super(e),this.element=new hc,this.specPath=hn(["document","objects","bindings","mqtt5","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const _p=class extends $l{constructor(e){super(e),this.element=new mc,this.specPath=hn(["document","objects","bindings","mqtt5","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const Lp=class extends $l{constructor(e){super(e),this.element=new gc,this.specPath=hn(["document","objects","bindings","nats","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Jp=class extends $l{constructor(e){super(e),this.element=new fc,this.specPath=hn(["document","objects","bindings","nats","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Up=class extends $l{constructor(e){super(e),this.element=new yc,this.specPath=hn(["document","objects","bindings","nats","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Hp=class extends $l{constructor(e){super(e),this.element=new bc,this.specPath=hn(["document","objects","bindings","nats","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const zp=class extends $l{constructor(e){super(e),this.element=new vc,this.specPath=hn(["document","objects","bindings","pulsar","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Gp=class extends $l{constructor(e){super(e),this.element=new xc,this.specPath=hn(["document","objects","bindings","pulsar","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Wp=class extends $l{constructor(e){super(e),this.element=new Sc,this.specPath=hn(["document","objects","bindings","pulsar","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Kp=class extends $l{constructor(e){super(e),this.element=new wc,this.specPath=hn(["document","objects","bindings","pulsar","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const Xp=class extends $l{constructor(e){super(e),this.element=new Bc,this.specPath=hn(["document","objects","bindings","redis","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const Yp=class extends $l{constructor(e){super(e),this.element=new Ec,this.specPath=hn(["document","objects","bindings","redis","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const Qp=class extends $l{constructor(e){super(e),this.element=new Oc,this.specPath=hn(["document","objects","bindings","redis","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const Zp=class extends $l{constructor(e){super(e),this.element=new jc,this.specPath=hn(["document","objects","bindings","redis","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const eh=class extends $l{constructor(e){super(e),this.element=new kc,this.specPath=hn(["document","objects","bindings","sns","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const th=class extends $l{constructor(e){super(e),this.element=new qc,this.specPath=hn(["document","objects","bindings","sns","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const sh=class extends $l{constructor(e){super(e),this.element=new Mc,this.specPath=hn(["document","objects","bindings","sns","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const nh=class extends $l{constructor(e){super(e),this.element=new Cc,this.specPath=hn(["document","objects","bindings","sns","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const ih=class extends $l{constructor(e){super(e),this.element=new $c,this.specPath=hn(["document","objects","bindings","solace","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const rh=class extends $l{constructor(e){super(e),this.element=new Ac,this.specPath=hn(["document","objects","bindings","solace","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const oh=class extends $l{constructor(e){super(e),this.element=new Pc,this.specPath=hn(["document","objects","bindings","solace","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const ch=class extends $l{constructor(e){super(e),this.element=new Fc,this.specPath=hn(["document","objects","bindings","solace","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const ah=class extends $l{constructor(e){super(e),this.element=new Ic,this.specPath=hn(["document","objects","bindings","sqs","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const lh=class extends $l{constructor(e){super(e),this.element=new Tc,this.specPath=hn(["document","objects","bindings","sqs","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const uh=class extends $l{constructor(e){super(e),this.element=new Dc,this.specPath=hn(["document","objects","bindings","sqs","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const dh=class extends $l{constructor(e){super(e),this.element=new Vc,this.specPath=hn(["document","objects","bindings","sqs","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const ph=class extends $l{constructor(e){super(e),this.element=new Nc,this.specPath=hn(["document","objects","bindings","stomp","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const hh=class extends $l{constructor(e){super(e),this.element=new Rc,this.specPath=hn(["document","objects","bindings","stomp","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const mh=class extends $l{constructor(e){super(e),this.element=new _c,this.specPath=hn(["document","objects","bindings","stomp","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const gh=class extends $l{constructor(e){super(e),this.element=new Lc,this.specPath=hn(["document","objects","bindings","stomp","ServerBinding"]),this.canSupportSpecificationExtensions=!1}};const fh=class extends $l{constructor(e){super(e),this.element=new Jc,this.specPath=hn(["document","objects","bindings","ws","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}};const yh=class extends $l{constructor(e){super(e),this.element=new Uc,this.specPath=hn(["document","objects","bindings","ws","MessageBinding"]),this.canSupportSpecificationExtensions=!1}};const bh=class extends $l{constructor(e){super(e),this.element=new Hc,this.specPath=hn(["document","objects","bindings","ws","OperationBinding"]),this.canSupportSpecificationExtensions=!1}};const vh=class extends $l{constructor(e){super(e),this.element=new zc,this.specPath=hn(["document","objects","bindings","ws","ServerBinding"]),this.canSupportSpecificationExtensions=!1}},xh={element:"reference",$visitor:Pu,fixedFields:{$ref:Fu}},Sh={element:"schema",$visitor:Iu,fixedFields:{...ed,allOf:Nu,anyOf:_u,oneOf:Ju,items:{$visitor:Ku,alias:"itemsField"},properties:Zu,patternProperties:Yu,dependencies:Gu,definitions:Hu,discriminator:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},deprecated:{$ref:"#/visitors/value"}}},wh={visitors:{value:Sl,document:{objects:{AsyncApi:{element:"asyncApi2",$visitor:uu,fixedFields:{asyncapi:{$ref:"#/visitors/document/objects/AsyncApiVersion"},id:{$visitor:pu,alias:"idField"},info:{$ref:"#/visitors/document/objects/Info"},servers:{$ref:"#/visitors/document/objects/Servers"},defaultContentType:{$ref:"#/visitors/document/objects/DefaultContentType"},channels:{$ref:"#/visitors/document/objects/Channels"},components:{$ref:"#/visitors/document/objects/Components"},tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},AsyncApiVersion:{element:"asyncApiVersion",$visitor:du},Identifier:{element:"identifier",$visitor:pu},Info:{element:"info",$visitor:hu,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},version:mu,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"}}},Contact:{element:"contact",$visitor:gu,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{element:"license",$visitor:bu,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Servers:{element:"servers",$visitor:Bu},Server:{element:"server",$visitor:Eu,fixedFields:{url:Ou,protocol:{$ref:"#/visitors/value"},protocolVersion:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},variables:ku,security:qu,tags:{$ref:"#/visitors/document/objects/Tags"},bindings:ju}},ServerVariable:{element:"serverVariable",$visitor:Mu,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},examples:{$ref:"#/visitors/value"}}},DefaultContentType:{element:"defaultContentType",$visitor:yu},Channels:{element:"channels",$visitor:Md},ChannelItem:{element:"channelItem",$visitor:$d,fixedFields:{$ref:Ad,description:{$ref:"#/visitors/value"},servers:Pd,subscribe:{$ref:"#/visitors/document/objects/Operation"},publish:{$ref:"#/visitors/document/objects/Operation"},parameters:{$ref:"#/visitors/document/objects/Parameters"},bindings:Fd}},Operation:{element:"operation",$visitor:wd,fixedFields:{operationId:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},security:Bd,tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Ed,traits:Od,message:jd}},OperationTrait:{element:"operationTrait",$visitor:Kd,fixedFields:{operationId:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},security:Xd,tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Yd}},Message:{element:"message",$visitor:Ld,fixedFields:{messageId:{$ref:"#/visitors/value"},headers:Jd,payload:{$ref:"#/visitors/value"},correlationId:Ud,schemaFormat:{$ref:"#/visitors/value"},contentType:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Hd,examples:zd,traits:Gd}},MessageTrait:{element:"messageTrait",$visitor:Dd,fixedFields:{messageId:{$ref:"#/visitors/value"},headers:Vd,correlationId:Nd,schemaFormat:{$ref:"#/visitors/value"},contentType:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Rd,examples:_d}},MessageExample:{element:"messageExample",$visitor:Td,fixedFields:{headers:{$ref:"#/visitors/value"},payload:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"}}},Tags:{element:"tags",$visitor:kd},Tag:{element:"tag",$visitor:qd,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},ExternalDocumentation:{element:"externalDocumentation",$visitor:id,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Components:{element:"components",$visitor:rd,fixedFields:{schemas:od,servers:cd,serverVariables:ad,channels:dd,messages:pd,securitySchemes:hd,parameters:md,correlationIds:gd,operationTraits:fd,messageTraits:yd,serverBindings:bd,channelBindings:vd,operationBindings:xd,messageBindings:Sd}},JSONReference:xh,Reference:xh,JSONSchema:Sh,Schema:Sh,LinkDescription:ho.visitors.document.objects.LinkDescription,SecurityScheme:{element:"securityScheme",$visitor:$u,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"}}},SecurityRequirement:{element:"securityRequirement",$visitor:Au},OAuthFlows:{element:"oAuthFlows",$visitor:vu,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:{element:"oAuthFlow",$visitor:xu,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Su}},ServerBindings:{element:"serverBindings",$visitor:Cu,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/ServerBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/ServerBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/ServerBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/ServerBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/ServerBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/ServerBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/ServerBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/ServerBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/ServerBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/ServerBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/ServerBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/ServerBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/ServerBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/ServerBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/ServerBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/ServerBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/ServerBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/ServerBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/ServerBinding"}}},Parameters:{element:"parameters",$visitor:td},Parameter:{element:"parameter",$visitor:sd,fixedFields:{description:{$ref:"#/visitors/value"},schema:nd,location:{$ref:"#/visitors/value"}}},ChannelBindings:{element:"channelBindings",$visitor:Cd,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/ChannelBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/ChannelBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/ChannelBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/ChannelBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/ChannelBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/ChannelBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/ChannelBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/ChannelBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/ChannelBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/ChannelBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/ChannelBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/ChannelBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/ChannelBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/ChannelBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/ChannelBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/ChannelBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/ChannelBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/ChannelBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/ChannelBinding"}}},OperationBindings:{element:"operationBindings",$visitor:Wd,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/OperationBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/OperationBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/OperationBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/OperationBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/OperationBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/OperationBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/OperationBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/OperationBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/OperationBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/OperationBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/OperationBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/OperationBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/OperationBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/OperationBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/OperationBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/OperationBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/OperationBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/OperationBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/OperationBinding"}}},MessageBindings:{element:"messageBindings",$visitor:Id,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/MessageBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/MessageBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/MessageBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/MessageBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/MessageBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/MessageBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/MessageBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/MessageBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/MessageBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/MessageBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/MessageBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/MessageBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/MessageBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/MessageBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/MessageBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/MessageBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/MessageBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/MessageBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/MessageBinding"}}},CorrelationID:{element:"correlationID",$visitor:fu,fixedFields:{description:{$ref:"#/visitors/value"},location:{$ref:"#/visitors/value"}}},bindings:{http:{ServerBinding:{element:"httpServerBinding",$visitor:hp},ChannelBinding:{element:"httpChannelBinding",$visitor:up},OperationBinding:{element:"httpOperationBinding",$visitor:pp,fixedFields:{type:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},query:Du,bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"httpMessageBinding",$visitor:dp,fixedFields:{headers:Du,bindingVersion:{$ref:"#/visitors/value"}}}},ws:{ServerBinding:{element:"webSocketServerBinding",$visitor:vh},ChannelBinding:{element:"webSocketChannelBinding",$visitor:fh,fixedFields:{method:{$ref:"#/visitors/value"},query:Du,headers:Du,bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"webSocketOperationBinding",$visitor:bh},MessageBinding:{element:"webSocketMessageBinding",$visitor:yh}},kafka:{ServerBinding:{element:"kafkaServerBinding",$visitor:Mp,fixedFields:{schemaRegistryUrl:{$ref:"#/visitors/value"},schemaRegistryVendor:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{element:"kafkaChannelBinding",$visitor:jp,fixedFields:{topic:{$ref:"#/visitors/value"},partitions:{$ref:"#/visitors/value"},replicas:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"kafkaOperationBinding",$visitor:qp,fixedFields:{groupId:Du,clientId:Du,bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"kafkaMessageBinding",$visitor:kp,fixedFields:{key:Du,schemaIdLocation:{$ref:"#/visitors/value"},schemaIdPayloadEncoding:{$ref:"#/visitors/value"},schemaLookupStrategy:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}}},anypointmq:{ServerBinding:{element:"anypointmqServerBinding",$visitor:lp},ChannelBinding:{element:"anypointmqChannelBinding",$visitor:op,fixedFields:{destination:{$ref:"#/visitors/value"},destinationType:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"anypointmqOperationBinding",$visitor:ap},MessageBinding:{element:"anypointmqMessageBinding",$visitor:cp,fixedFields:{headers:Du,bindingVersion:{$ref:"#/visitors/value"}}}},amqp:{ServerBinding:{element:"amqpServerBinding",$visitor:tp},ChannelBinding:{element:"amqpChannelBinding",$visitor:Qd,fixedFields:{is:{$ref:"#/visitors/value"},exchange:{$ref:"#/visitors/value"},queue:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"amqpOperationBinding",$visitor:ep,fixedFields:{expiration:{$ref:"#/visitors/value"},userId:{$ref:"#/visitors/value"},cc:{$ref:"#/visitors/value"},priority:{$ref:"#/visitors/value"},deliveryMode:{$ref:"#/visitors/value"},mandatory:{$ref:"#/visitors/value"},bcc:{$ref:"#/visitors/value"},replyTo:{$ref:"#/visitors/value"},timestamp:{$ref:"#/visitors/value"},ack:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"amqpMessageBinding",$visitor:Zd,fixedFields:{contentEncoding:{$ref:"#/visitors/value"},messageType:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}}},amqp1:{ServerBinding:{element:"amqp1ServerBinding",$visitor:rp},ChannelBinding:{element:"amqp1ChannelBinding",$visitor:sp},OperationBinding:{element:"amqp1OperationBinding",$visitor:ip},MessageBinding:{element:"amqp1MessageBinding",$visitor:np}},mqtt:{ServerBinding:{element:"mqttServerBinding",$visitor:Dp,fixedFields:{clientId:{$ref:"#/visitors/value"},cleanSession:{$ref:"#/visitors/value"},lastWill:{$ref:"#/visitors/value"},keepAlive:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{element:"mqttChannelBinding",$visitor:Fp},OperationBinding:{element:"mqttOperationBinding",$visitor:Tp,fixedFields:{qos:{$ref:"#/visitors/value"},retain:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"mqttMessageBinding",$visitor:Ip,fixedFields:{bindingVersion:{$ref:"#/visitors/value"}}}},mqtt5:{ServerBinding:{element:"mqtt5ServerBinding",$visitor:_p},ChannelBinding:{element:"mqtt5ChannelBinding",$visitor:Vp},OperationBinding:{element:"mqtt5OperationBinding",$visitor:Rp},MessageBinding:{element:"mqtt5MessageBinding",$visitor:Np}},nats:{ServerBinding:{element:"natsServerBinding",$visitor:Hp},ChannelBinding:{element:"natsChannelBinding",$visitor:Lp},OperationBinding:{element:"natsOperationBinding",$visitor:Up,fixedFields:{queue:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"natsMessageBinding",$visitor:Jp}},pulsar:{ServerBinding:{element:"pulsarServerBinding",$visitor:Kp,fixedFields:{tenant:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{element:"pulsarChannelBinding",$visitor:zp,fixedFields:{namespace:{$ref:"#/visitors/value"},persistence:{$ref:"#/visitors/value"},compaction:{$ref:"#/visitors/value"},"geo-replication":{$ref:"#/visitors/value"},retention:{$ref:"#/visitors/value"},ttl:{$ref:"#/visitors/value"},deduplication:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"pulsarOperationBinding",$visitor:Wp},MessageBinding:{element:"pulsarMessageBinding",$visitor:Gp}},jms:{ServerBinding:{element:"jmsServerBinding",$visitor:Op},ChannelBinding:{element:"jmsChannelBinding",$visitor:wp},OperationBinding:{element:"jmsOperationBinding",$visitor:Ep},MessageBinding:{element:"jmsMessageBinding",$visitor:Bp}},sns:{ServerBinding:{element:"snsServerBinding",$visitor:nh},ChannelBinding:{element:"snsChannelBinding",$visitor:eh},OperationBinding:{element:"snsOperationBinding",$visitor:sh},MessageBinding:{element:"snsMessageBinding",$visitor:th}},solace:{ServerBinding:{element:"solaceServerBinding",$visitor:ch,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},msgVpn:{$ref:"#/visitors/value"}}},ChannelBinding:{element:"solaceChannelBinding",$visitor:ih},OperationBinding:{element:"solaceOperationBinding",$visitor:oh,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},destinations:{$ref:"#/visitors/value"}}},MessageBinding:{element:"solaceMessageBinding",$visitor:rh}},sqs:{ServerBinding:{element:"sqsServerBinding",$visitor:dh},ChannelBinding:{element:"sqsChannelBinding",$visitor:ah},OperationBinding:{element:"sqsOperationBinding",$visitor:uh},MessageBinding:{element:"sqsMessageBinding",$visitor:lh}},stomp:{ServerBinding:{element:"stompServerBinding",$visitor:gh},ChannelBinding:{element:"stompChannelBinding",$visitor:ph},OperationBinding:{element:"stompOperationBinding",$visitor:mh},MessageBinding:{element:"stompMessageBinding",$visitor:hh}},redis:{ServerBinding:{element:"redisServerBinding",$visitor:Zp},ChannelBinding:{element:"redisChannelBinding",$visitor:Xp},OperationBinding:{element:"redisOperationBinding",$visitor:Qp},MessageBinding:{element:"redisMessageBinding",$visitor:Yp}},mercure:{ServerBinding:{element:"mercureServerBinding",$visitor:Pp},ChannelBinding:{element:"mercureChannelBinding",$visitor:Cp},OperationBinding:{element:"mercureOperationBinding",$visitor:Ap},MessageBinding:{element:"mercureMessageBinding",$visitor:$p}},googlepubsub:{ServerBinding:{element:"googlepubsubServerBinding",$visitor:yp},ChannelBinding:{element:"googlepubsubChannelBinding",$visitor:mp,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},labels:{$ref:"#/visitors/value"},messageRetentionDuration:{$ref:"#/visitors/value"},messageStoragePolicy:{$ref:"#/visitors/value"},schemaSettings:{$ref:"#/visitors/value"},topic:{$ref:"#/visitors/value"}}},OperationBinding:{element:"googlepubsubOperationBinding",$visitor:fp},MessageBinding:{element:"googlepubsubMessageBinding",$visitor:gp,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},attributes:{$ref:"#/visitors/value",alias:"attributesField"},orderingKey:{$ref:"#/visitors/value"},schema:{$ref:"#/visitors/value"}}}},ibmmq:{ServerBinding:{element:"ibmmqServerBinding",$visitor:Sp,fixedFields:{groupId:{$ref:"#/visitors/value"},ccdtQueueManagerName:{$ref:"#/visitors/value"},cipherSpec:{$ref:"#/visitors/value"},multiEndpointServer:{$ref:"#/visitors/value"},heartBeatInterval:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{element:"ibmmqChannelBinding",$visitor:bp,fixedFields:{destinationType:{$ref:"#/visitors/value"},queue:{$ref:"#/visitors/value"},topic:{$ref:"#/visitors/value"},maxMsgLength:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{element:"ibmmqMessageBinding",$visitor:vp,fixedFields:{type:{$ref:"#/visitors/value"},headers:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},expiry:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{element:"ibmmqOperationBinding",$visitor:xp}}}},extension:{$visitor:Dl}}}},Bh=()=>{const e=new ru,t={...n,...s,isStringElement:Es};return e.use(Gc),{predicates:t,namespace:e}},Eh=(e,{element:t="asyncApi2",plugins:s=[],specificationObj:n=wh,consume:i=!1}={})=>{const r=Nl(e),o=ms(n),c=o.elementMap[t];if(!c)throw new Error(`Unknown element type: "${t}"`);const a=new(Te(c,o))({specObj:o,consume:i});return xi(r,a),lu(a.element,s,{toolboxCreator:Bh})},Oh=(e,t={})=>Eh(e,{...t,element:"asyncApi2"}),jh=(e,t={})=>Eh(e,{...t,element:"asyncApiVersion"}),kh=(e,t={})=>Eh(e,{...t,element:"identifier"}),qh=(e,t={})=>Eh(e,{...t,element:"defaultContentType"}),Mh=(e,t={})=>Eh(e,{...t,element:"channels"}),Ch=(e,t={})=>Eh(e,{...t,element:"servers"}),$h=(e,t={})=>Eh(e,{...t,element:"parameters"}),Ah=(e,t={})=>Eh(e,{...t,element:"tags"}),Ph=(e,t={})=>Eh(e,{...t,element:"channelBindings"}),Fh=(e,t={})=>Eh(e,{...t,element:"channelItem"}),Ih=(e,t={})=>Eh(e,{...t,element:"components"}),Th=(e,t={})=>Eh(e,{...t,element:"contact"}),Dh=(e,t={})=>Eh(e,{...t,element:"correlationID"}),Vh=(e,t={})=>Eh(e,{...t,element:"externalDocumentation"}),Nh=(e,t={})=>Eh(e,{...t,element:"info"}),Rh=(e,t={})=>Eh(e,{...t,element:"license"}),_h=(e,t={})=>Eh(e,{...t,element:"message"}),Lh=(e,t={})=>Eh(e,{...t,element:"messageBindings"}),Jh=(e,t={})=>Eh(e,{...t,element:"messageExample"}),Uh=(e,t={})=>Eh(e,{...t,element:"messageTrait"}),Hh=(e,t={})=>Eh(e,{...t,element:"oAuthFlow"}),zh=(e,t={})=>Eh(e,{...t,element:"oAuthFlows"}),Gh=(e,t={})=>Eh(e,{...t,element:"operation"}),Wh=(e,t={})=>Eh(e,{...t,element:"operationBindings"}),Kh=(e,t={})=>Eh(e,{...t,element:"operationTrait"}),Xh=(e,t={})=>Eh(e,{...t,element:"parameter"}),Yh=(e,t={})=>Eh(e,{...t,element:"reference"}),Qh=(e,t={})=>Eh(e,{...t,element:"schema"}),Zh=(e,t={})=>Eh(e,{...t,element:"securityRequirement"}),em=(e,t={})=>Eh(e,{...t,element:"securityScheme"}),tm=(e,t={})=>Eh(e,{...t,element:"server"}),sm=(e,t={})=>Eh(e,{...t,element:"serverBindings"}),nm=(e,t={})=>Eh(e,{...t,element:"serverVariable"}),im=(e,t={})=>Eh(e,{...t,element:"tag"}),rm=(e,t={})=>Eh(e,{...t,element:"amqpChannelBinding"}),om=(e,t={})=>Eh(e,{...t,element:"amqpMessageBinding"}),cm=(e,t={})=>Eh(e,{...t,element:"amqpOperationBinding"}),am=(e,t={})=>Eh(e,{...t,element:"amqpServerBinding"}),lm=(e,t={})=>Eh(e,{...t,element:"amqp1ChannelBinding"}),um=(e,t={})=>Eh(e,{...t,element:"amqp1MessageBinding"}),dm=(e,t={})=>Eh(e,{...t,element:"amqp1OperationBinding"}),pm=(e,t={})=>Eh(e,{...t,element:"amqp1ServerBinding"}),hm=(e,t={})=>Eh(e,{...t,element:"anypointmqChannelBinding"}),mm=(e,t={})=>Eh(e,{...t,element:"anypointmqMessageBinding"}),gm=(e,t={})=>Eh(e,{...t,element:"anypointmqOperationBinding"}),fm=(e,t={})=>Eh(e,{...t,element:"anypointmqServerBinding"}),ym=(e,t={})=>Eh(e,{...t,element:"googlepubsubChannelBinding"}),bm=(e,t={})=>Eh(e,{...t,element:"googlepubsubMessageBinding"}),vm=(e,t={})=>Eh(e,{...t,element:"googlepubsubOperationBinding"}),xm=(e,t={})=>Eh(e,{...t,element:"googlepubsubServerBinding"}),Sm=(e,t={})=>Eh(e,{...t,element:"httpChannelBinding"}),wm=(e,t={})=>Eh(e,{...t,element:"httpMessageBinding"}),Bm=(e,t={})=>Eh(e,{...t,element:"httpOperationBinding"}),Em=(e,t={})=>Eh(e,{...t,element:"httpServerBinding"}),Om=(e,t={})=>Eh(e,{...t,element:"ibmmqChannelBinding"}),jm=(e,t={})=>Eh(e,{...t,element:"ibmmqMessageBinding"}),km=(e,t={})=>Eh(e,{...t,element:"ibmmqOperationBinding"}),qm=(e,t={})=>Eh(e,{...t,element:"ibmmqServerBinding"}),Mm=(e,t={})=>Eh(e,{...t,element:"jmsChannelBinding"}),Cm=(e,t={})=>Eh(e,{...t,element:"jmsMessageBinding"}),$m=(e,t={})=>Eh(e,{...t,element:"jmsOperationBinding"}),Am=(e,t={})=>Eh(e,{...t,element:"jmsServerBinding"}),Pm=(e,t={})=>Eh(e,{...t,element:"kafkaChannelBinding"}),Fm=(e,t={})=>Eh(e,{...t,element:"kafkaMessageBinding"}),Im=(e,t={})=>Eh(e,{...t,element:"kafkaOperationBinding"}),Tm=(e,t={})=>Eh(e,{...t,element:"kafkaServerBinding"}),Dm=(e,t={})=>Eh(e,{...t,element:"mercureChannelBinding"}),Vm=(e,t={})=>Eh(e,{...t,element:"mercureMessageBinding"}),Nm=(e,t={})=>Eh(e,{...t,element:"mercureOperationBinding"}),Rm=(e,t={})=>Eh(e,{...t,element:"mercureServerBinding"}),_m=(e,t={})=>Eh(e,{...t,element:"mqttChannelBinding"}),Lm=(e,t={})=>Eh(e,{...t,element:"mqttMessageBinding"}),Jm=(e,t={})=>Eh(e,{...t,element:"mqttOperationBinding"}),Um=(e,t={})=>Eh(e,{...t,element:"mqttServerBinding"}),Hm=(e,t={})=>Eh(e,{...t,element:"mqtt5ChannelBinding"}),zm=(e,t={})=>Eh(e,{...t,element:"mqtt5MessageBinding"}),Gm=(e,t={})=>Eh(e,{...t,element:"mqtt5OperationBinding"}),Wm=(e,t={})=>Eh(e,{...t,element:"mqtt5ServerBinding"}),Km=(e,t={})=>Eh(e,{...t,element:"natsChannelBinding"}),Xm=(e,t={})=>Eh(e,{...t,element:"natsMessageBinding"}),Ym=(e,t={})=>Eh(e,{...t,element:"natsOperationBinding"}),Qm=(e,t={})=>Eh(e,{...t,element:"natsServerBinding"}),Zm=(e,t={})=>Eh(e,{...t,element:"pulsarChannelBinding"}),eg=(e,t={})=>Eh(e,{...t,element:"pulsarMessageBinding"}),tg=(e,t={})=>Eh(e,{...t,element:"pulsarOperationBinding"}),sg=(e,t={})=>Eh(e,{...t,element:"pulsarServerBinding"}),ng=(e,t={})=>Eh(e,{...t,element:"redisChannelBinding"}),ig=(e,t={})=>Eh(e,{...t,element:"redisMessageBinding"}),rg=(e,t={})=>Eh(e,{...t,element:"redisOperationBinding"}),og=(e,t={})=>Eh(e,{...t,element:"redisServerBinding"}),cg=(e,t={})=>Eh(e,{...t,element:"snsChannelBinding"}),ag=(e,t={})=>Eh(e,{...t,element:"snsMessageBinding"}),lg=(e,t={})=>Eh(e,{...t,element:"snsOperationBinding"}),ug=(e,t={})=>Eh(e,{...t,element:"snsServerBinding"}),dg=(e,t={})=>Eh(e,{...t,element:"solaceChannelBinding"}),pg=(e,t={})=>Eh(e,{...t,element:"solaceMessageBinding"}),hg=(e,t={})=>Eh(e,{...t,element:"solaceOperationBinding"}),mg=(e,t={})=>Eh(e,{...t,element:"solaceServerBinding"}),gg=(e,t={})=>Eh(e,{...t,element:"sqsChannelBinding"}),fg=(e,t={})=>Eh(e,{...t,element:"sqsMessageBinding"}),yg=(e,t={})=>Eh(e,{...t,element:"sqsOperationBinding"}),bg=(e,t={})=>Eh(e,{...t,element:"sqsServerBinding"}),vg=(e,t={})=>Eh(e,{...t,element:"stompChannelBinding"}),xg=(e,t={})=>Eh(e,{...t,element:"stompMessageBinding"}),Sg=(e,t={})=>Eh(e,{...t,element:"stompOperationBinding"}),wg=(e,t={})=>Eh(e,{...t,element:"stompServerBinding"}),Bg=(e,t={})=>Eh(e,{...t,element:"webSocketChannelBinding"}),Eg=(e,t={})=>Eh(e,{...t,element:"webSocketMessageBinding"}),Og=(e,t={})=>Eh(e,{...t,element:"webSocketOperationBinding"}),jg=(e,t={})=>Eh(e,{...t,element:"webSocketServerBinding"}),kg=Eh;return t})());